2015-12-28から1日間の記事一覧
スタック class Stack: def __init__(self, stack = None,max = 100): self.max = max if type(stack) is type([]): self.stack = stack elif stack is None: self.stack = [] else: print('Please list type!\n') def push(self, e): if not self.is_full()…