{"id":1954,"date":"2019-01-19T02:42:50","date_gmt":"2020-02-12T13:56:21","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1954"},"modified":"2020-02-12T21:56:24","modified_gmt":"2020-02-12T13:56:24","slug":"b44ea88ff4","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1954","title":{"rendered":"python\u722c\u866b03\uff1a\u90a3\u4e2a\u53eb\u505a Urllib \u7684\u5e93\u8ba9\u6211\u4eec\u7684 python \u5047\u88c5\u662f\u6d4f\u89c8\u5668"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\" >\u76f8\u4fe1\u4f60\u5df2\u7ecf\u6478\u6e05\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6d4f\u89c8\u5668\u5404\u79cd\u8bf7\u6c42\u7684\u5957\u8def<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e5f\u77e5\u9053\u4e86\u600e\u4e48\u5728\u624b\u673a\u4e0a\u8fdb\u884c\u8bf7\u6c42\u548c\u8fd4\u56de\u6570\u636e\u7684\u6293\u53d6<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u5f00\u59cb\u6765\u4f7f\u7528 python \u4e86<br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4ee3\u7801 lu \u8d77\u6765<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515781.gif\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u600e\u4e48\u7528 python \u5199\u5404\u79cd\u8bf7\u6c42\u5462\uff1f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4eca\u5929\u8981\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u7684\u5c31\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><span style=\"font-size: 20px;\">Urllib<\/span><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><span style=\"font-size: 20px;\"><br  \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u53ef\u662f python \u5185\u7f6e\u7684\u5e93<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u4e86\u5b83<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u5199\u4ee3\u7801\u5c31\u8f7b\u677e\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8170\u4e5f\u4e0d\u75bc\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u817f\u4e5f\u4e0d\u9178\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5934\u53d1\u4e5f\u4e0d\u79c3\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"   style=\"width: 56%;height: auto !important;\"   src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515781-1.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48\u600e\u4e48\u4f7f\u7528&nbsp;<strong style=\"letter-spacing: 2px;text-align: center;white-space: normal;\"><span style=\"font-size: 20px;\">Urllib <\/span><\/strong>\u5462\uff1f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6069<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u63a5\u4e0b\u6765<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong>\u5b66\u4e60 python \u7684\u6b63\u786e\u59ff\u52bf<\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581515782.gif\" alt=\"python\" title=\"python\"  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5728 Python \u8fd9\u4e2a\u5185\u7f6e\u7684 Urllib \u5e93\u4e2d<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6709\u8fd9\u4e48 4 \u4e2a\u6a21\u5757<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color: rgb(255, 76, 0);\">request<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">request\u6a21\u5757\u662f\u6211\u4eec\u7528\u7684\u6bd4\u8f83\u591a\u7684<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u662f\u7528\u5b83\u6765\u53d1\u8d77\u8bf7\u6c42<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6240\u4ee5\u6211\u4eec\u91cd\u70b9\u8bf4\u8bf4\u8fd9\u4e2a\u6a21\u5757<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color: rgb(255, 76, 0);\">error<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">error\u6a21\u5757\u5462\uff0c\u5c31\u662f\u5f53\u6211\u4eec\u5728\u4f7f\u7528 request \u6a21\u5757\u9047\u5230\u9519\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u53ef\u4ee5\u7528\u5b83\u6765\u8fdb\u884c\u5f02\u5e38\u5904\u7406<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color: rgb(255, 76, 0);\">parse<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">parse\u6a21\u5757\u5c31\u662f\u7528\u6765\u89e3\u6790\u6211\u4eec\u7684 URL \u5730\u5740\u7684\uff0c\u6bd4\u5982\u89e3\u6790\u57df\u540d\u5730\u5740\u5566\uff0cURL\u6307\u5b9a\u7684\u76ee\u5f55\u7b49<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color: rgb(255, 76, 0);\">robotparser<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u4e2a\u7528\u7684\u5c31\u6bd4\u8f83\u5c11\u4e86\uff0c\u5b83\u5c31\u662f\u7528\u6765\u89e3\u6790\u7f51\u7ad9\u7684 robot.txt<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">ok<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e86\u89e3\u4e86 urllib \u4e4b\u540e<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u5c31\u7528 python \u4ee3\u7801\u6765\u6a21\u62df\u8bf7\u6c42\u5427<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"   style=\"width: 61%;height: auto !important;\"   src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python5-1581515782.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6253\u5f00 pycharm<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5982\u679c\u4f60\u8fd8\u4e0d\u592a\u77e5\u9053 pycharm \u8fd9\u4e2a\u5f00\u53d1\u5de5\u5177\u600e\u4e48\u73a9\u7684\u8bdd<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f60\u53ef\u4ee5\u770b\u770b\u8fd9\u73a9\u610f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247483976&amp;idx=1&amp;sn=ffb8362d88371c805823da9ba408b9b2&amp;chksm=fc8bbad9cbfc33cfccdb68caaea78b412b016302826312beeae09317d98aeb495736b80e1f02&amp;scene=21#wechat_redirect\" target=\"_blank\" >PyCharm\u4f7f\u7528\u6559\u7a0b\uff1aPyCharm\u5e38\u7528\u6280\u5de7\u6307\u5357<\/a><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5f53\u7136<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f60\u559c\u6b22\u522b\u7684\u7f16\u8f91\u5668\u4e5f\u65e0\u6240\u8c13<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u53cd\u6b63\u6211\u89c9\u5f97<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">Pycharm<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515782.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u9996\u5148\u6211\u4eec\u6765\u6a21\u62df\u8bf7\u6c42\u767e\u5ea6\u5427<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8d85\u7b80\u5355<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color: rgb(255, 76, 0);\">request \u6a21\u5757\u4e2d\u7684 urlopen \u65b9\u6cd5<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u9996\u5148\u6211\u4eec\u5bfc\u5165 urllib \u7684\u8bf7\u6c42\u6a21\u5757<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"color:#cc7832;\">import <\/span>urllib.request<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u5728\u6d4f\u89c8\u5668\u8bbf\u95ee\u767e\u5ea6\u7684\u65f6\u5019<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5bf9\u4e8e python \u6765\u8bf4<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u662f\u4e00\u53e5\u4ee3\u7801\u7684\u4e8b\u60c5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">urllib.request.urlopen(<span style=\"color:#6a8759;\">'http:\/\/www.baidu.com'<\/span>)<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u770b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u901a\u8fc7 request \u6a21\u5757\u7684 urlopen \u65b9\u6cd5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u76f4\u63a5\u7528 Get \u8bf7\u6c42\u65b9\u5f0f\u8bf7\u6c42\u767e\u5ea6\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48\u8fd4\u56de\u7684\u5185\u5bb9\u5c31\u662f\u548c\u6d4f\u89c8\u5668\u4e00\u6837\u7684<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u53ef\u4ee5\u6253\u5370\u51fa\u6765<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">response = urllib.request.urlopen(<span style=\"color:#6a8759;\">'http:\/\/www.baidu.com'<\/span>)<br  \/><span style=\"color:#8888c6;\">print<\/span>(response.read().decode(<span style=\"color:#6a8759;\">'utf-8'<\/span>))<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u6267\u884c<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python3-1581515782.jpg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u767e\u5ea6\u628a\u6e90\u7801\u8fd4\u56de\u7ed9\u6211\u4eec\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581515783.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">request \u7684 urlopen \u65b9\u6cd5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u53ef\u4ee5\u4f20\u5165\u7684\u53c2\u6570<strong>\u4e3b\u8981<\/strong>\u6709 3 \u4e2a<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><code class=\"descclassname\" style=\"background-color: rgb(255, 255, 255);padding-right: 1px;padding-left: 1px;font-size: 15.44px;font-family: monospace, sans-serif;border-radius: 3px;color: rgb(34, 34, 34);text-align: start;white-space: normal;\">urllib.request.<\/code><code class=\"descname\" style=\"background-color: rgb(255, 255, 255);padding-right: 1px;padding-left: 1px;font-size: 19.2px;font-family: monospace, sans-serif;font-weight: bold;border-radius: 3px;color: rgb(34, 34, 34);text-align: start;white-space: normal;\">urlopen<\/code><span class=\"sig-paren\" style=\"font-size: larger;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\">(<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">url<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">data=None<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><span class=\"optional\" style=\"font-size: 1.3em;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\">[<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">timeout<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><span class=\"optional\" style=\"font-size: 1.3em;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\">]<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">*<span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 19.2px;text-align: start;background-color: rgb(255, 255, 255);\">)<\/span><\/em><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u7b2c\u4e00\u4e2a <strong>url <\/strong>\u5c31\u662f\u6211\u4eec\u8bf7\u6c42\u7684\u94fe\u63a5<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6bd4\u5982\u6211\u4eec\u521a\u521a\u5c31\u8bf7\u6c42\u767e\u5ea6<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u7b2c\u4e8c\u4e2a\u53c2\u6570 <strong>data<\/strong><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u662f\u4e13\u95e8\u7ed9\u6211\u4eec post \u8bf7\u6c42\u643a\u5e26\u53c2\u6570\u7684<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6bd4\u5982\u6211\u4eec\u5728\u767b\u5f55\u7684\u65f6\u5019<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u53ef\u4ee5\u628a\u7528\u6237\u540d\u5bc6\u7801\u5c01\u88c5\u6210 data \u4f20\u8fc7\u53bb<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5728\u8fd9\u91cc\u7684 data \u7684\u503c\u6211\u4eec\u53ef\u4ee5\u7528 byte \u7684\u7c7b\u578b\u4f20\u9012<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u7b2c\u4e09\u4e2a\u53c2\u6570 <strong>timeout <\/strong>\u5c31\u662f\u8bbe\u7f6e\u8bf7\u6c42\u8d85\u65f6\u65f6\u95f4<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5982\u679c\u7b49\u597d\u4e45\u670d\u52a1\u5668\u90fd\u6ca1\u6709\u7ed9\u6211\u4eec\u8fd4\u56de\u6570\u636e<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u5c31\u4e0d\u9e1f\u4ed6\u4e86\uff01<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u5c31\u662f&nbsp;<span style=\"letter-spacing: 2px;text-align: center;\">&nbsp;<\/span><span style=\"letter-spacing: 2px;text-align: center;\">reque<\/span><span style=\"letter-spacing: 2px;text-align: center;\">st \u7684 urlopen \u4e3b\u8981\u7528\u6cd5\u3002<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python8-1581515783.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">urlopen \u597d\u50cf\u4e0d\u9519<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4f46\u662f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5982\u679c\u6211\u4eec\u8981\u6b3a\u9a97\u670d\u52a1\u5668\u8bf4\u6211\u4eec\u662f\u6d4f\u89c8\u5668\u6216\u8005\u624b\u673a\u8bf7\u6c42\u7684\u5462\uff1f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u4e2a\u65f6\u5019\u6211\u4eec\u9700\u8981\u6dfb\u52a0\u8bf7\u6c42\u5934\u4fe1\u606f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e5f\u5c31\u662f\u6211\u4eec\u4e0a\u6b21\u8bf4\u7684<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">request header<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u90a3\u4e48<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u4e2a\u65f6\u5019<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5c31\u8be5\u8ba9 <span style=\"color: rgb(255, 76, 0);\">request \u6a21\u5757\u4e2d\u7684 Request<\/span> \u65b9\u6cd5\u51fa\u573a\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u4e2a Request \u65b9\u6cd5\u7684\u53c2\u6570\u591a\u4e00\u4e9b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u4e3b\u8981\u7684\u53c2\u6570<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><code class=\"descclassname\" style=\"background-color: rgb(255, 255, 255);padding-right: 1px;padding-left: 1px;font-size: 15.44px;font-family: monospace, sans-serif;border-radius: 3px;color: rgb(34, 34, 34);text-align: start;white-space: normal;\">urllib.request.<\/code><code class=\"descname\" style=\"background-color: rgb(255, 255, 255);padding-right: 1px;padding-left: 1px;font-size: 19.2px;font-family: monospace, sans-serif;font-weight: bold;border-radius: 3px;color: rgb(34, 34, 34);text-align: start;white-space: normal;\">Request<\/code><span class=\"sig-paren\" style=\"font-size: larger;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\">(<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">url<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">data=None<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">headers={}<\/em><span style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;background-color: rgb(255, 255, 255);\">,&nbsp;<\/span><em style=\"color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;font-size: 16px;text-align: start;white-space: normal;background-color: rgb(255, 255, 255);\">method=None<\/em><span class=\"sig-paren\" style=\"font-size: larger;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\">)<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span class=\"sig-paren\" style=\"font-size: larger;color: rgb(34, 34, 34);font-family: &quot;Lucida Grande&quot;, Arial, sans-serif;text-align: start;background-color: rgb(255, 255, 255);\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u9664\u4e86\u5b9a\u4e49 url \u548c data \u4e4b\u5916<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u8fd8\u53ef\u4ee5\u5b9a\u4e49\u8bf7\u6c42\u5934\u4fe1\u606f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">urlopen \u9ed8\u8ba4\u662f Get \u8bf7\u6c42<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5f53\u6211\u4eec\u4f20\u5165\u53c2\u6570\u5b83\u5c31\u4e3a Post \u8bf7\u6c42\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u800c Request \u53ef\u4ee5\u8ba9\u6211\u4eec\u81ea\u5df1\u5b9a\u4e49\u8bf7\u6c42\u7684\u65b9\u5f0f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528 Request \u6765\u5c01\u88c5\u6211\u4eec\u7684\u8bf7\u6c42\u4fe1\u606f<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python4-1581515783.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u6765\u7528&nbsp;<span style=\"letter-spacing: 2px;text-align: center;\">Request \u73a9\u4e00\u4e0b\u5427<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u6211\u4eec\u6765\u6a21\u62df\u767b\u9646\u300c\u903c\u4e4e\u300d\u5427<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;color: rgb(2, 30, 170);\">https:\/\/biihu.cc\/<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u6ca1\u9519<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5c31\u662f\u90a3\u4e2a\u5c71\u5be8\u77e5\u4e4e\u7684\u7f51\u7ad9<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u4e0e\u4e16\u754c\u5206\u4eab\u4f60\u7684\u88c5\u903c\u6280\u5de7\u4e0e\u89c1\u89e3<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python10-1581515783.jpg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u8fdb\u5165\u7f51\u7ad9\u8fdb\u884c\u767b\u5f55<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u6211\u4eec\u6765\u6293\u4e00\u4e0b\u6570\u636e\u5148<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u901a\u8fc7 Fiddler \u53ef\u4ee5\u770b\u5230\u6211\u4eec\u7684\u8bf7\u6c42\u53c2\u6570<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581515783.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u8fd9\u5bc6\u7801\u4e0d\u52a0\u5bc6\u7684<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581515784.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u7136\u540e\u6211\u4eec\u518d\u770b\u770b\u6211\u4eec\u7684\u8bf7\u6c42\u5934\u4fe1\u606f<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python4-1581515784.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u597d\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u77e5\u9053\u8fd9\u4e9b\u4e4b\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u6765\u6a21\u62df\u767b\u5f55\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u5bfc\u5165 urllib<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;margin-left: 0.5em;margin-right: 0.5em;text-align: center;\"><span style=\"color:#cc7832;\">from <\/span>urllib <span style=\"color:#cc7832;\">import <\/span>request<span style=\"color:#cc7832;\">,<\/span>parse<br  \/><span style=\"color:#cc7832;\">import <\/span>ssl<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u5728\u8fd9\u91cc\u6211\u4eec\u8fd8\u8981\u5bfc\u5165 ssl<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u56e0\u4e3a\u903c\u4e4e\u8fd9\u4e2ab\u7528\u7684\u662f https<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 ssl \u672a\u7ecf\u9a8c\u8bc1\u7684\u4e0a\u4e0b\u6587<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;margin-left: 0.5em;margin-right: 0.5em;text-align: center;\">context = ssl._create_unverified_context()<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u63a5\u7740\u5b9a\u4e49\u4e00\u4e0b\u6211\u4eec\u7684\u8bf7\u6c42 url \u548c header<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;margin-left: 0.5em;margin-right: 0.5em;text-align: left;\">url = <span style=\"color:#6a8759;\">'https:\/\/biihu.cc\/\/account\/ajax\/login_process\/'<br  \/><\/span>headers = {<br  \/>    <span style=\"color:#808080;\">#\u5047\u88c5\u81ea\u5df1\u662f\u6d4f\u89c8\u5668<br  \/><\/span><span style=\"color:#808080;\"> &nbsp; &nbsp;<\/span><span style=\"color:#6a8759;\">'User-Agent'<\/span>:<span style=\"color:#6a8759;\">' Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36'<\/span><span style=\"color:#cc7832;\">,<br  \/><\/span>}<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u518d\u5b9a\u4e49\u4e00\u4e0b\u6211\u4eec\u7684\u8bf7\u6c42\u53c2\u6570<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<pre style=\"background-color: rgb(43, 43, 43);color: rgb(169, 183, 198);font-family: \u5b8b\u4f53;font-size: 12pt;margin-left: 0.5em;margin-right: 0.5em;\">dict = {<br  \/>    <span style=\"color:#6a8759;\">'return_url'<\/span>:<span style=\"color:#6a8759;\">'https:\/\/biihu.cc\/'<\/span><span style=\"color:#cc7832;\">,<br  \/><\/span><span style=\"color:#cc7832;\"> &nbsp; &nbsp;<\/span><span style=\"color:#6a8759;\">'user_name'<\/span>:<span style=\"color:#6a8759;\">'xiaoshuaib@gmail.com'<\/span><span style=\"color:#cc7832;\">,<br  \/><\/span><span style=\"color:#cc7832;\"> &nbsp; &nbsp;<\/span><span style=\"color:#6a8759;\">'password'<\/span>:<span style=\"color:#6a8759;\">'123456789'<\/span><span style=\"color:#cc7832;\">,<br  \/><\/span><span style=\"color:#cc7832;\"> &nbsp; &nbsp;<\/span><span style=\"color:#6a8759;\">'_post_type'<\/span>:<span style=\"color:#6a8759;\">'ajax'<\/span><span style=\"color:#cc7832;\">,<br  \/><\/span>}<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6211\u4eec\u628a\u8bf7\u6c42\u7684\u53c2\u6570\u8f6c\u5316\u4e3a byte<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color:#2b2b2b;color:#a9b7c6;font-family:&#39;\u5b8b\u4f53&#39;;font-size:12.0pt;\">data = <span style=\"color:#8888c6;\">bytes<\/span>(parse.urlencode(dict)<span style=\"color:#cc7832;\">,<\/span><span style=\"color:#6a8759;\">'utf-8'<\/span>)<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u7136\u540e\u6211\u4eec\u5c31\u53ef\u4ee5\u5c01\u88c5 request \u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color:#2b2b2b;color:#a9b7c6;font-family:&#39;\u5b8b\u4f53&#39;;font-size:12.0pt;\">req = request.Request(url<span style=\"color:#cc7832;\">,<\/span><span style=\"color:#aa4926;\">data<\/span>=data<span style=\"color:#cc7832;\">,<\/span><span style=\"color:#aa4926;\">headers<\/span>=headers<span style=\"color:#cc7832;\">,<\/span><span style=\"color:#aa4926;\">method<\/span>=<span style=\"color:#6a8759;\">'POST'<\/span>)<\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u6700\u540e\u6211\u4eec\u8fdb\u884c\u8bf7\u6c42<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<pre style=\"background-color:#2b2b2b;color:#a9b7c6;font-family:&#39;\u5b8b\u4f53&#39;;font-size:12.0pt;\">response = request.urlopen(req<span style=\"color:#cc7832;\">,<\/span><span style=\"color:#aa4926;\">context<\/span>=context)<br  \/><span style=\"color:#8888c6;\">print<\/span>(response.read().decode(<span style=\"color:#6a8759;\">'utf-8'<\/span>))<br  \/><\/pre>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">ok<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd9\u6837\u6211\u4eec\u5c31\u6a21\u62df\u767b\u5f55\u4e86<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\u8fd0\u884c\u4e00\u4e0b\u770b\u770b<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"background-color: rgb(0, 0, 0);color: rgb(255, 255, 255);\">{&#8220;rsm&#8221;:{&#8220;url&#8221;:&#8221;https:\/\/biihu.cc\/home\/first_login-TRUE&#8221;},&#8221;errno&#8221;:1,&#8221;err&#8221;:null}<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u53ef\u4ee5\u770b\u5230\u6211\u4eec\u6210\u529f\u767b\u5f55\u903c\u4e4e\u4e86<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python10-1581515784.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">ok<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\">\u4ee5\u4e0a\u5c31\u662f Urllib \u7684\u5e38\u7528\u4f7f\u7528\u65b9\u6cd5\u4e86<\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\">\uff08\u5b8c\uff09<\/p>\n<p style=\"text-align: center;margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 2px;\"><br  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python5-1581515784.gif\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\">\u626b\u4e00\u626b<\/span><\/strong><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"width: 69%;height: auto !important;box-shadow: rgb(170, 170, 170) 0em 0em 1em 0px;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python6-1581515784.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: justify;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;letter-spacing: 3px;text-align: center;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;letter-spacing: 3px;text-align: justify;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;letter-spacing: 3px;text-align: justify;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;text-align: justify;letter-spacing: 3px;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;text-align: right;letter-spacing: 3px;\"><strong><br  \/><\/strong><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;text-align: right;letter-spacing: 3px;\"><br  \/><\/p>\n<p style=\"margin-right: 0.5em;margin-left: 0.5em;white-space: normal;letter-spacing: 3px;text-align: right;\"><span style=\"text-align: justify;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong style=\"text-align: right;\">\u987a\u624b<img decoding=\"async\" class=\"mpa-image aligncenter\"    style=\"height: 20px !important;max-height: 20px !important;width: 20px !important;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python6-1581515784.png\" alt=\"python\" title=\"python\"  \/>\uff0c\u70b9\u4e2a<\/strong><\/span><span style=\"text-align: justify;color: rgb(255, 76, 0);\"><strong style=\"text-align: right;\">\u597d\u770b<\/strong><\/span><span style=\"text-align: justify;\"><strong style=\"text-align: right;\">\u5427<\/strong><\/span><\/p>\n<blockquote class=\"keep-source\">\n<p>\u539f\u6587\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff08\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09\uff1a<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&#038;mid=2247484110&#038;idx=1&#038;sn=94156b5693931aebe9d1708b87c98488&#038;chksm=fc8bba5fcbfc3349547842cbd201e05937dfa5f93009f9b2bd815e68149cb39fb4f7b6865be7\">python<\/a><\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u76f8\u4fe1\u4f60\u5df2\u7ecf\u6478\u6e05\u4e86 \u6d4f\u89c8\u5668\u5404\u79cd\u8bf7\u6c42\u7684\u5957\u8def \u4e5f\u77e5\u9053\u4e86\u600e\u4e48\u5728\u624b\u673a\u4e0a\u8fdb\u884c\u8bf7\u6c42\u548c\u8fd4\u56de\u6570\u636e\u7684\u6293\u53d6 \u90a3\u4e48\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u5f00\u59cb\u6765\u4f7f\u7528 python \u4e86 \u4ee3\u7801 lu \u8d77\u6765 \u90a3\u4e48 \u600e\u4e48\u7528 python \u5199\u5404\u79cd\u8bf7\u6c42\u5462\uff1f \u4eca\u5929\u8981\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u7684\u5c31\u662f Urllib \u8fd9\u53ef\u662f pytho&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1955,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[302,19,300,301],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1954"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1954"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1954\/revisions"}],"predecessor-version":[{"id":1973,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1954\/revisions\/1973"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/1955"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}