ImportError: cannot import name ‘quote’ from ‘urllib’
当我使用python 3.7导入quote
时出现ImportError: cannot import name 'quote' from 'urllib'
,查了一下urllib
模块文档
在Python 3.x中,我们需要导入urllib.parse.quote
时:
使用from urllib.parse import quote
现在就可以使用quote
了