摘要:
函数input() 比较大小要同类型: age=iput() 21 age=int(age) age>=10 true 1 prompt = "If you tell us who you are, we can personalize the messages you see." 2 prompt 阅读全文
摘要:
1.遍历整个列表 a=[] for '' in a print('') for 临时变量 in 列表 : print(临时变量) 注意缩进 , 注意冒号;for后面缩进的代码都是循环的一部分。 深入研究循环: 2.创建数值列表 (1)使用range()函数 , 函数的范围左闭右开, 例子 for v 阅读全文