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

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

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

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

captcha