with open(r'C:Usersadminpycdtestwanyuellduizhang_2018020733_1517970821000304388_119061116',encoding='utf-8') as f: line = f.readline() #print(type(line)) while line: #对line进行操作 line = f.readline()#最后