黄色电影一区二区,韩国少妇自慰A片免费看,精品人妻少妇一级毛片免费蜜桃AV按摩师 ,超碰 香蕉

Python 練習(xí)實(shí)例45

python 練習(xí)實(shí)例45

python 編程100例python 編程100例

題目:統(tǒng)計(jì) 1 到 100 之和。

程序分析:無

程序源代碼:

實(shí)例:

#!/usr/bin/python
# -*- coding: utf-8 -*-
 
tmp = 0
for i in range(1,101):
    tmp += i
print ('the sum is %d' % tmp)

以上實(shí)例輸出結(jié)果為:

the sum is 5050

python 編程100例python 編程100例

下一節(jié):python 練習(xí)實(shí)例46

python 編程100例

相關(guān)文章