[Python] python从文件读取文本 →→→→→进入此内容的聊天室

来自 , 2020-05-21, 写在 Python, 查看 141 次.
URL http://www.code666.cn/view/b1adda14
  1. # get contents of file as a list, one line per element  
  2. data = open('/path/to/file').readlines()  

回复 "python从文件读取文本"

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

captcha