AttributeError: ‘list’ object has no attribute ‘split’ 报错 tf = open("D:/test.txt","w+") tf.write('本人姓名-班级-学号') tf = open("D:/test.txt","w+") ls=tf.readlines(