fPath = 'D:\\info\\testRead.txt'with open(fPath, 'r', encoding='UTF-8') as f: s = f.read() print(f) print(s) with open(fPath, 'w', encoding='UTF-8') as f: f.write('今天是个好日子')
Sign in to make a reply
°Destiny