一、for循环遍历列表 使用for循环,for elem in list:#需要注意的是for循环内的操作要有格式上的缩进 1.若代码段为: list = [1,2,3] for elem in list: print(elem) #此处注意缩进 print("此时的elem是:"