import os

file=open("123.txt","r")
for line in file.readlines():
    print line,
file.close()

file=open("123.txt","w")
file.write("sdfsdfsdf")
file.close()

file=open("123.txt","a")
file.write("erertyerty")
file.close()

file=open("123.txt","r")
for line in file.readlines():
    print line,
file.close()

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2021-04-23
  • 2021-12-06
  • 2021-12-05
  • 2021-11-22
  • 2022-01-21
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-05
  • 2021-08-23
  • 2021-12-29
相关资源
相似解决方案