📅  最后修改于: 2022-03-11 14:45:30.123000             🧑  作者: Mango
#write
f = open('helloworld.txt','wb')
f.write('hello world')
f.close()
#read
f = open('helloworld.txt','r')
message = f.read()
print(message)
f.close()