赞
踩
xml_path = './'
with open(xml_path , 'rb+') as f:
content = f.read()
codeType = detect(content)['encoding']
content = content.decode(codeType, "ignore").encode("utf8")
fp.seek(0)
fp.write(content)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。