#!/usr/bin/env python
#ecoding=utf-8
f=open(r"D:\opsdev\olduser\oldused.txt","a+")
newline=raw_input('input a string:')
f.writelines(newline+"\n")
f.close()
#!/usr/bin/env python
#ecoding=utf-8
f=open(r"D:\opsdev\olduser\oldused.txt","a+")
newline=raw_input('input a string:')
f.writelines(newline+"\n")
f.close()
转载于:https://www.cnblogs.com/jamespython/p/8509985.html