---恢复内容开始---

open打开一个txt文件,如果不存在则创建

1 file=open('/Users/Administrator/Desktop/file.txt','w')
2 file.write('hellp world!')
View Code

相关文章:

  • 2021-10-09
  • 2021-11-03
  • 2021-11-15
  • 2021-04-25
  • 2021-05-19
  • 2021-10-10
  • 2021-12-09
  • 2021-07-06
猜你喜欢
  • 2021-05-15
  • 2021-07-18
  • 2022-12-23
  • 2021-10-30
  • 2021-12-12
  • 2022-12-23
相关资源
相似解决方案