Python 文件readline() 方法. Python 文件方法 ... f = open("demofile.txt", "r") print(f.readline()) ... 调用readline() 两次以返回第一行和第二行:
確定! 回上一頁