L = ['Bart', 'Lisa', 'Adam']
for i in L:
print("这是for循环的" + "输出 hello:" + i.upper())
i = 0
while i < len(L):
print("这是while 循环的输出 hello:" + L[i])
i = i + 1
标签:输出,Bart,while,循环,print,hello,Python3
来源: https://www.cnblogs.com/RHadoop-Hive/p/10432219.html