phyton
文章平均质量分 70
niulihui007
这个作者很懒,什么都没留下…
展开
-
猜数字
from random import randint num=randint(1,100)print’guess what I think?’ bingo=Falsewhile bingo==False: answer=input()if answer<num: print'too small!'if answer>num: print'too big!'if answ原创 2016-03-19 21:56:36 · 179 阅读 · 0 评论 -
phyton从1加到100
s=0 m=0while s<100: s+=1 m=s+m print s print m运行结果 ================================ RESTART ================================ 1 1 2 3原创 2016-03-19 22:27:10 · 1031 阅读 · 0 评论