跟着GitHub里面的内容码代码,在连接数据库那段实验代码时出现了以下的错误:
Traceback (most recent call last):
File "D:\Python\lib\site-packages\aiomysql\connection.py", line 461, in _connect
self.host_info = "socket %s:%d" % (self._host, self._port)
TypeError: %d format: a number is required, not str
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "G:/awesome-python3-webapp1/www/test.py", line 17, in <module>
loop.run_until_complete(test())
File "D:\Python\lib\asyncio\base_events.py"