发布时间:2019-09-07 08:12:42编辑:auto阅读(2187)
只要把python脚本保存为utf-8的格式,那么无论是eclipse还是Python shell都可以正常使用中文了,哈哈,太爽了!!!!通杀所有2.7以上python版本
另外在使用pymssql时,这样调用:
conn = pymssql.connect(host =strServer,database =strDBName,user=strUser,password=strPassword, charset="utf8")
就可以正常处理中文了!
上一篇: Python 连接Access数据库
下一篇: 多版本python下,安装pip
51570
51157
41666
38424
32912
29886
28602
23563
23498
21845
1996°
2708°
2268°
2189°
2650°
2208°
2963°
4898°
4732°
3371°