打印1到100的数
for i in range(0,100):
print(i)
fruits = [‘banana’, ‘apple’, ‘mango’]
for fruit in fruits:
print (‘当前水果: %s’% fruit)
博客列表 >四.Python循环
打印1到100的数
for i in range(0,100):
print(i)
fruits = [‘banana’, ‘apple’, ‘mango’]
for fruit in fruits:
print (‘当前水果: %s’% fruit)