摘要: dict = { 'hello': 'hello'}flag = 'c'work = Trueprint 'hi,my name is python.'print 'do you want chat with me?'while flag == 'c' or 't': flag = raw_inpu 阅读全文
posted @ 2019-01-27 21:39 kzkzkz 阅读(1217) 评论(0) 推荐(0) 编辑
摘要: a=[1,2,3,4,5,6,7,8,9,10] #连加 b=0 for i in a: b+=i print(b) #连乘 c=1 for i in a: c*=i print(c) 阅读全文
posted @ 2019-01-27 21:25 kzkzkz 阅读(3733) 评论(0) 推荐(0) 编辑