names=['yangyuying','zilingxi','ziye','muziyi'] for name in names: print(name) >>> yangyuying zilingxi ziye muziyi i=0 while i<3: i+=1 print(i) >>> 1 2 3 for i in range(5): print(i) >>> 0 1 2 3 4 actor=[['黄景瑜','刘昊然','吴亦凡'],['朴海镇','宋钟基','朴灿烈']] for i in actor: for j in i: print(j) >>> 黄景瑜 刘昊然 吴亦凡 朴海镇 宋钟基 朴灿烈