python day9

文件操作

f = open('test', 'r+', encoding='utf-8')
l = f.read()
f.write('666666')
print(l)
f.close()

猜你喜欢

转载自www.cnblogs.com/ethan2018/p/9171862.html