python讀取.txt文本文件全部內容

with open("1.txt") as f: while True: line=f.readline() if not line: break; print(line.rstrip())
相關文章
相關標籤/搜索