1,遍历列表 遍历列表的所有元素,对每个元素执行相同的操作.可使用for循环 magicians = ['alice','david','carolina'] for magician in magicians: print(magician) 运行结果alice david carolina magicians = ['alice','david','carolina'] for magician in magicians: #print(magician) print(magician.ti…