python3
說實話,一大堆錯誤,一大堆未定義變量跟無法導入的變量(urlli3,getcode,Rquest,urlopen,cookielib,build_opener,install_opener,urlopen),更可恨的是,utf-8指定了依然報錯,搞毛喔
說實話,一大堆錯誤,一大堆未定義變量跟無法導入的變量(urlli3,getcode,Rquest,urlopen,cookielib,build_opener,install_opener,urlopen),更可恨的是,utf-8指定了依然報錯,搞毛喔
2019-11-12
最新回答 / 慕俠8547482
你把“Missing parentheses in call to 'print'. Did you mean print(bs4)?”這一段翻譯一下就知道怎么回事了。應該是print(bs4)
2019-11-07
老師教的是python2,比如print漢字報錯呀 python3確把urllib-urllib2合并了 需要urllib.request
response = urllib.request.urlopen(url)
print中文不報錯我是直接file--sttings--project interpreter --python2.7-換成了3.5 如果沒有快捷路徑可以自己在終端中python3 會看到路徑
#coding=utf-8這個方法我也使用過依舊報錯 不知道神碼原因無所謂了python2我可不想用。
response = urllib.request.urlopen(url)
print中文不報錯我是直接file--sttings--project interpreter --python2.7-換成了3.5 如果沒有快捷路徑可以自己在終端中python3 會看到路徑
#coding=utf-8這個方法我也使用過依舊報錯 不知道神碼原因無所謂了python2我可不想用。
2019-10-26
最新回答 / 慕勒215309
urllib模塊沒有Request屬性,Request是在urllib.request這個模塊下,應改成?import urllib.requestrequest = urllib.request.Request(url)
2019-09-25