这是2.x转3.x问题 2.x写法: from urlparse import urlparse 3.x写法: from urllib.parse import urlparse 问题解决。 相关文章: 2021-09-05 2021-04-18 2022-01-18 2021-07-03 2021-10-27 2021-12-09 2021-10-20 2021-06-22