Python中for循环和while循环的基本使用方法
while循环: while expression: suite_to_repeat while 条件: 语句块 不需要括号哦! >>> x 1.2 >>> while x < 2 xss=removed>>> 经常用 : while True: .... if ... : break .... for循环: for iter_var in iterable: suite_to_repeat for
用户评论