初入python

python学习网 2020-02-20 06:00:19

初入python

一定要学好python

求1-100的和:

 

i=1
s=0
while i<101:
    s=s+i
    i=i+1
print(s)

 

阅读(2440) 评论(0)