不覆盖输入:
1 with open('1.txt','rt')as f: 2 data=f.read() 3 print(data+" ")
读取txt:
1 with open('1.txt','at')as f: 2 f.write(' 111111')