zl程序教程

您现在的位置是:首页 >  后端

当前栏目

Python 学习笔记 列表 for 循环 xxx XXX

2023-06-13 09:11:01 时间

大家好,又见面了,我是你们的朋友全栈君。

Python 学习笔记 列表 for 循环 xxx XXX

print("-" * 30)
magicians = ['alice', 'david', 'carolina']
for magician in magicians:
	print(magician)

for magician in magicians:
	print(magician.title() + ", that was a great trick!")
	print("I can't wait to see your next trick, " + magician.title() + ".\n")
print("Thank you, everyone. That was a great maigc show!")

print("-" * 30)
xjjl = ['bl', 'hrb', 'bj']
for c in xjjl:
	print("wh: {}".format(c))

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/172145.html原文链接:https://javaforall.cn