}
print buildConnectionString(myParams)
运行结果:
SyntaxError: Non-ASCII character '\xe6' in file D:\work\aa\src\d\two.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
原因:
doc string有中文
解决:
#coding=GB2312
再次运行结果:
pwd=xian;database=KYES1;uid=sa;server=192.168.1.16
print buildConnectionString(myParams)
运行结果:
SyntaxError: Non-ASCII character '\xe6' in file D:\work\aa\src\d\two.py on line 3, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
原因:
doc string有中文
解决:
#coding=GB2312
再次运行结果:
pwd=xian;database=KYES1;uid=sa;server=192.168.1.16