[Python] python打开和关闭文件 →→→→→进入此内容的聊天室

来自 , 2019-08-18, 写在 Python, 查看 116 次.
URL http://www.code666.cn/view/5291822d
  1. #!/usr/bin/python
  2.  
  3. # Open a file
  4. fo = open("foo.txt", "wb")
  5. print "Name of the file: ", fo.name
  6.  
  7. # Close opend file
  8. fo.close()

回复 "python打开和关闭文件"

这儿你可以回复上面这条便签

captcha