折磨好多回 有一个官方文档 https://dev.mysql.com/doc/relnotes/connector-python/en/news-8-0-30.html 【这个好像没啥用。。。】 试了一下啊这个黄字的提示就可以了。