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