日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > python >内容正文

python

python requests 10041报错_pythonrequests返回unicode异常消息(或如何设置请求区域设置)...

發布時間:2023/12/2 python 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 python requests 10041报错_pythonrequests返回unicode异常消息(或如何设置请求区域设置)... 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

您可以嘗試os.strerror,但它可能不會返回任何內容或相同的非英語字符串。在ENGLISH_WINDOWS_SOCKET_MESSAGES = {

10004: "Interrupted function call.",

10013: "Permission denied.",

10014: "Bad address.",

10022: "Invalid argument.",

10024: "Too many open files.",

10035: "Resource temporarily unavailable.",

10036: "Operation now in progress.",

10037: "Operation already in progress.",

10038: "Socket operation on nonsocket.",

10039: "Destination address required.",

10040: "Message too long.",

10041: "Protocol wrong type for socket.",

10042: "Bad protocol option.",

10043: "Protocol not supported.",

10044: "Socket type not supported.",

10045: "Operation not supported.",

10046: "Protocol family not supported.",

10047: "Address family not supported by protocol family.",

10048: "Address already in use.",

10049: "Cannot assign requested address.",

10050: "Network is down.",

10051: "Network is unreachable.",

10052: "Network dropped connection on reset.",

10053: "Software caused connection abort.",

10054: "Connection reset by peer.",

10055: "No buffer space available.",

10056: "Socket is already connected.",

10057: "Socket is not connected.",

10058: "Cannot send after socket shutdown.",

10060: "Connection timed out.",

10061: "Connection refused.",

10064: "Host is down.",

10065: "No route to host.",

10067: "Too many processes.",

10091: "Network subsystem is unavailable.",

10092: "Winsock.dll version out of range.",

10093: "Successful WSAStartup not yet performed.",

10101: "Graceful shutdown in progress.",

10109: "Class type not found.",

11001: "Host not found. No such host is known.",

11002: "Nonauthoritative host not found.",

11003: "This is a nonrecoverable error.",

11004: "Valid name, no data record of requested type.",

}

(對于將來的scraper:使用了以下xpath://div[@id="MT1"]//h3和{})

總結

以上是生活随笔為你收集整理的python requests 10041报错_pythonrequests返回unicode异常消息(或如何设置请求区域设置)...的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。