代码:
__author__ = "Xiaocong" count=1 number=0 while count<=100: # 当count小于100时,不断循环 number+=count # number+count,刚开始0+1=1 。。。。 count+=1 # count自加,直到count大于100 print(number)
代码:
__author__ = "Xiaocong" count=1 number=0 while count<=100: # 当count小于100时,不断循环 number+=count # number+count,刚开始0+1=1 。。。。 count+=1 # count自加,直到count大于100 print(number)