最近没事干学习了下python,简单记录一下。
1.循环和数字(循环打印0-9)
1.循环和数字(循环打印0-9)
c = 0
while (c < 10):
print c
c += 1
for num in range(10):
print num
c += 1
for num in [0,1,2,3,4,5,6,7,8,9]:
print num