讀文件:ide
with open("a.txt") as file:data = file.read()it
寫文件:class
with open("a.txt") as f:f.write("hello")file