f = open("list.txt", "r") for line in f: print(line) f.close()
개행을 제거 하려면 line.rstrip()
Python File Open
Last updated 5 years ago
Was this helpful?