from urllib import quote_plus ImportError: cannot import name 'quote_plus' from 'urllib'
时间: 2023-09-12 08:07:31 浏览: 242
Python3的urllib.parse常用函数小结(urlencode,quote,quote_plus,unquote,unquote_plus等)
`quote_plus` is a function that is present in the `urllib.parse` module in Python 3.x. It seems like you are using Python 2.x, where this function is present in the `urllib` module. However, the correct way to import it in Python 2.x is:
```python
from urllib import quote_plus
```
If you are still facing issues, please check if you are using the correct version of Python and if the module is installed correctly.
阅读全文