我的源代码:
#!/usr/bin/env python# -*- coding: utf-8 -*-file = open(r"D:\Android\python\test.txt","w+") file.write('hello') file.read()
python test1.py后,用记事本打开文件显示乱码,请问这是怎么回事啊?
相关分类