标签:ima src png 技术分享 int truck 技术 .com for 循环
1.for 循环
①for num in range(1,11):
print(str(num)+‘ + 1 = ‘,num + 1)
②song_list = [‘Holy Diver‘,‘Thunderstruck‘,‘rebel rebel‘]
for song in song_list:
if song == ‘Holy Diver‘:
print(song,‘-Dio‘)
elif song == ‘Thunderstruck‘:
print(song,‘-AC/DC‘)
elif song == ‘rebel rebel‘:
print(song,‘- DAVAID BOWIE‘)
标签:ima src png 技术分享 int truck 技术 .com for 循环
原文地址:http://www.cnblogs.com/Jiang190/p/6723179.html