- 博客(1)
- 收藏
- 关注
原创 AttributeError: ‘list‘ object has no attribute ‘split‘ 报错
tf = open("D:/test.txt","w+")tf.write('本人姓名-班级-学号')tf = open("D:/test.txt","w+")ls=tf.readlines()ls=ls.split("-")print(ls)tf.close()
2020-11-24 11:34:38
65519
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人