读取txt,无需引入任何包: user_file = open('user_info.txt','r') lines = user_file.readlines() user_file.close() for line in lines: mail = line.split(',')[0] username = line.split(',')[1] pwd = line.split(',')[2] print(mail,username,pwd) user_info.txt www.126.co