Python循环语句 此文主要记录一些python循环语句区别其他高级语言(如c)的特性。 1.while循环 stack = ['1',2,'3',4,'5'] even = [] odd = [] while len(stack)>0: temp = stack.pop() if type(temp) == str: temp = int(temp