Python 文件readlines() 方法 ... f = open("demofile.txt", "r") print(f.readlines()) ... readlines() 方法返回一个列表,其中包含文件中的每一行作为列表项。
確定! 回上一頁