在python3的版本中导入
from urllib import urlencode
出现如下错误
cannot import name 'urlencode'
这是因为from urllib import urlencode是python2的导入方式
python3导入方式from urllib.parse import urlencode
在python3的版本中导入
from urllib import urlencode
出现如下错误
cannot import name 'urlencode'
这是因为from urllib import urlencode是python2的导入方式
python3导入方式from urllib.parse import urlencode
本文标题:python3 导入 from urllib import ur
本文链接:https://www.haomeiwen.com/subject/czaaeftx.html
网友评论