f = open("list.txt", "r") for line in f: print(line) f.close()
개행을 제거 하려면 line.rstrip()
Python File Openarrow-up-right
Last updated 6 years ago