跟着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
loop.run_until_complete(test())
File "D:\Python\lib\asyncio\base_events.py", line 466, in run_until_complete
return future.result()
File "D:\Python\lib\asyncio\futures.py", line 293, in result
raise self._exception
File "D:\Python\lib\asyncio\tasks.py", line 239, in _step
result = coro.send(None)
File "G:/awesome-python3-we