初入python

初入python

一定要学好python

求1-100的和:

 

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

 

posted @ 2020-02-19 21:00  彡心如止水彡  阅读(213)  评论(0)    收藏  举报