python 列表遍历循环

代码如下:

for item in["I","LOVE","YOU",520,1314]:
    print(item,end=",")

运行结果如下:

发布了83 篇原创文章 · 获赞 1 · 访问量 2934

猜你喜欢

转载自blog.csdn.net/qq_40253803/article/details/105470273