Discuss / Python / 2022/10/12

2022/10/12

Topic source
fpath = 'D:/月月/exercise.txt'with open(fpath, 'r') as f:    s = f.read()    print(s)with open(fpath,'w') as f:    f.write('哈哈哈')

  • 1

Reply