为了更有效率的输出列表的每个数据,可以使用循环来完成
Demo
A = ['xiaoWang','xiaoZhang','xiaoHua'] for tempName in A: print (tempName)
运行结果:
xiaoWang xiaoZhang xiaoHua
xiaoWang
xiaoZhang
xiaoHua
posted on 2017-03-15 00:02 LoaderMan 阅读(189) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 LoaderMan Powered by .NET 9.0 on Kubernetes