['hello world\n', 'I love you\n', 'How are you?'] 复制. f = open('./files/readme.txt', 'r') print(f.readlines(3)) # 如果指定n,只会读取行 ...
確定! 回上一頁