-1
enUrl='res.iweshow.com'
sr = requests.get(enUrl)
print(sr)
當我將使用python的請求模塊的HTTP請求,這裏是回溯:如何在python中沒有方案的情況下發送http請求?
raise InvalidSchema("No connection adapters were found for '%s'" % url)requests.exceptions.InvalidSchema: No connection adapters were found for
你爲什麼不能在前面加上'HTTP:在你的URL //'? – metatoaster
@metatoaster有時你可能不會沒有,如果它是一個http或https – The6thSense
那麼你如何期待你使用的庫知道? – metatoaster