Python3 循环

Posted 因为专注。所以专业

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

 

以上是关于Python3 循环的主要内容,如果未能解决你的问题,请参考以下文章