Python 当前离线
少校
rFile = open('a.txt', 'r') wFile = open('b.txt', 'w') allLine = rFile.readlines() rFile.close() for i in allLine: wFile.write(i.strip() + ',abc\n')复制代码