Python3 循环

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

 

posted @ 2019-02-25 17:38  因为专注。所以专业  阅读(154)  评论(0编辑  收藏  举报