为了更有效率的输出列表的每个数据,可以使用循环来完成
Demo
A = ['xiaoWang','xiaoZhang','xiaoHua'] for tempName in A: print (tempName)
运行结果:
xiaoWang xiaoZhang xiaoHua
xiaoWang
xiaoZhang
xiaoHua