该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
不好意思
Traceback (most recent call last):
File "d:\Python\practice2\mydbconn.py", line 5, in
conn = pymysql.connect(user='testuser', passwd='testpasswd',host='192.168.1.3', db='test',charset='utf8')
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\__init__.py", line 93, in Connect
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\connections.py", line 510, in __init__
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\connections.py", line 676, in _connect
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\connections.py", line 830, in _get_server_information
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\charset.py", line 173, in charset_by_id
File "C:\Users\testuser\AppData\Local\Programs\Python\Python35-32\lib\site-packages\pymysql3-0.5-py3.5.egg\pymysql\charset.py", line 21, in by_id
KeyError: 224