Python Read Text File · with open('readme.txt') as f: lines = f. · f = open('the-zen-of-python.txt','r') · f.close() · with open(path_to_file) as f: contents = f.
確定! 回上一頁