{"id":4803,"date":"2019-03-19T08:14:45","date_gmt":"2020-04-22T06:31:04","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=4803"},"modified":"2021-08-31T02:44:39","modified_gmt":"2021-08-30T18:44:39","slug":"42636868fb","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=4803","title":{"rendered":"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8fd9\u4e24\u5929<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6709\u5c0f\u4f19\u4f34\u95ee\u5c0f\u5e05b<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4e3a\u4ec0\u4e48\u6211\u722c\u53d6 xx \u7f51\u7ad9\u7684\u65f6\u5019<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4e0d\u8fd4\u56de\u7ed9\u6211\u6570\u636e<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u800c\u4e14\u8fd8\u7529\u4e00\u53e5\u8bdd\u7ed9\u6211<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff4c00; color: #ffffff;\">\u201c\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u9891\u7e41\u8bbf\u95ee\uff0c\u8bf7\u7a0d\u540e\u518d\u6765\u201d<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python5-1587537064.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c0f\u5e05b\u770b\u4e86\u4e00\u4e0b\u4ed6\u7684\u4ee3\u7801<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"background-color: #2b2b2b; color: #a9b7c6; font-family: \u5b8b\u4f53; font-size: 12pt; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"color: #cc7832;\">for <\/span>i <span style=\"color: #cc7832;\">in <\/span><span style=\"color: #8888c6;\">range<\/span>(<span style=\"color: #6897bb;\">1<\/span><span style=\"color: #cc7832;\">,<\/span><span style=\"color: #6897bb;\">10000<\/span>):<\/p>\n<p style=\"background-color: #2b2b2b; color: #a9b7c6; font-family: \u5b8b\u4f53; font-size: 12pt; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u00a0\u00a0\u00a0\u00a0<span style=\"font-size: 12pt;\">requests.get(url)<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u77ac\u95f4\u9707\u60ca\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"margin-right: 0.5em; margin-left: 0.5em; white-space: normal; text-align: center; letter-spacing: 1.5px;\">\u8fd9\u5c31\u611f\u89c9<\/p>\n<p style=\"margin-right: 0.5em; margin-left: 0.5em; white-space: normal; text-align: center; letter-spacing: 1.5px;\">\n<p style=\"margin-right: 0.5em; margin-left: 0.5em; white-space: normal; text-align: center; letter-spacing: 1.5px;\">\u88ab\u8fde\u7eed fxxk \u4e86 1w \u6b21<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u8bf4\u5bf9\u65b9\u53d7\u5f97\u4e86\uff1f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python9-1587537064.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4e0d\u5c01\u4f60 IP \u5c01\u8c01\uff1f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8981\u4f1a\u4f2a\u88c5<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8981\u60f3\u60f3\u770b<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4eba\u662f\u600e\u4e48\u8bbf\u95ee\u7f51\u7ad9\u7684<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8fd9\u6b21\u6211\u4eec\u6765\u8bf4\u8bf4\u4f2a\u88c5 Header<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python2-1587537064.jpg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u90a3\u4e48<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u63a5\u4e0b\u6765\u5c31\u662f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff4c00; color: #ffffff;\">\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python1-1587537064.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f53\u4f60\u8981\u53bb\u722c\u53d6\u67d0\u4e2a\u7f51\u7ad9\u7684\u6570\u636e\u7684\u65f6\u5019<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u8981\u60f3\u60f3\u770b<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5982\u679c\u662f\u522b\u4eba\u722c\u53d6\u4f60\u7684\u6570\u636e<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u4f1a\u505a\u4ec0\u4e48\u64cd\u4f5c<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u662f\u4e0d\u662f\u4e5f\u4e0d\u60f3<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8ba9\u522b\u4eba\u968f\u968f\u4fbf\u4fbf\u5c31\u75af\u72c2\u8bf7\u6c42\u4f60\u7684\u670d\u52a1\u5668<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u662f\u4e0d\u662f\u4e5f\u4f1a<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u91c7\u53d6\u4e00\u5b9a\u7684\u63aa\u65bd<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python10-1587537065.jpg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6bd4\u5982<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c0f\u5e05b\u6709\u4e00\u4e2a\u7f51\u7ad9<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u5206\u6790\u5230\u4e86\u5c0f\u5e05b\u7684\u5730\u5740<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f53\u4f60\u60f3\u8981\u901a\u8fc7 python \u6765\u722c\u53d6\u7684\u65f6\u5019&#8230;<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6069<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c0f\u5e05b\u6765\u5199\u4e00\u4e2a\u7b80\u5355\u7684\u53ef\u4ee5\u88ab\u8bf7\u6c42\u7684\u4f8b\u5b50<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">from<\/span> flask <span class=\"code-snippet__keyword\">import<\/span> Flask\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">app = Flask(__name__)\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">@app.route('\/getInfo')\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">hello_world<\/span><span class=\"code-snippet__params\">()<\/span>:\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">return<\/span> <span class=\"code-snippet__string\">\"\u8fd9\u91cc\u5047\u88c5\u6709\u5f88\u591a\u6570\u636e\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> __name__ == <span class=\"code-snippet__string\">\"__main__\"<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">    app.run(debug=<span class=\"code-snippet__keyword\">True<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">ok<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5047\u8bbe\u4f60\u73b0\u5728\u5206\u6790\u5230\u4e86\u5c0f\u5e05b\u7684\u5730\u5740\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4e5f\u5c31\u662f\u53ef\u4ee5\u901a\u8fc7 \/getInfo \u5c31\u53ef\u4ee5\u83b7\u53d6\u5230\u5c0f\u5e05b\u7f51\u7ad9\u4e0a\u7684\u6570\u636e\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u611f\u89c9\u5f88\u723d<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c31\u5f00\u59cb\u8bf7\u6c42\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"> url = 'http:<span class=\"code-snippet__comment\">\/\/127.0.0.1:5000\/getInfo'\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    response = requests.<span class=\"code-snippet__keyword\">get<\/span>(url)\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__built_in\">print<\/span>(response.text)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6ca1\u9519<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8fd9\u4e2a\u65f6\u5019\u4f60\u786e\u5b9e\u83b7\u53d6\u5230\u6570\u636e\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python2-1587537065.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c0f\u5e05b\u89c9\u5f97\u6709\u70b9\u4e0d\u5bf9\u52b2\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u60f3\u770b\u770b\u8bf7\u6c42\u7684 header \u4fe1\u606f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">@app.route('\/getInfo')\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">hello_world<\/span><span class=\"code-snippet__params\">()<\/span>:\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    print(request.headers)\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">return<\/span> <span class=\"code-snippet__string\">\"\u8fd9\u91cc\u5047\u88c5\u6709\u5f88\u591a\u6570\u636e\"\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> __name__ == <span class=\"code-snippet__string\">\"__main__\"<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">    app.run(debug=<span class=\"code-snippet__keyword\">True<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u7ed3\u679c\u770b\u5230\u7684 headers \u4fe1\u606f\u662f\u8fd9\u6837\u7684<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">Host<\/span>: 127.0.0.1:5000\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">User-Agent<\/span>: python-requests\/2.21.0<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">Accept-Encoding<\/span>: gzip, deflate\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">Accept<\/span>: *\/*<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__attribute\">Connection<\/span>: keep-alive<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u54c7\u9760<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span class=\"code-snippet__attribute\" style=\"font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; text-align: left; white-space: pre; background-color: rgba(0, 0, 0, 0.03);\">User-Agent<\/span><span style=\"font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; text-align: left; white-space: pre; background-color: rgba(0, 0, 0, 0.03);\">: python-requests\/2.21.0<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 14px; text-align: left; white-space: pre; background-color: rgba(0, 0, 0, 0.03);\">\u00a0<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c45\u7136\u4f7f\u7528 python \u7684\u5e93\u6765\u8bf7\u6c42<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u8bf4\u5c0f\u5e05b\u4e0d\u5c01\u4f60\u5c01\u8c01\u5462\uff1f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python6-1587537065.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6240\u4ee5\u5c0f\u5e05b\u8fd9\u4e2a\u65f6\u5019\u8fdb\u884c\u5224\u65ad<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u5c31\u83b7\u53d6\u4e0d\u5230\u6570\u636e\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__meta\">@app.route('\/getInfo')\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">def<\/span> <span class=\"code-snippet__title\">hello_world<\/span><span class=\"code-snippet__params\">()<\/span>:\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">if<\/span>(str(request.headers.get(<span class=\"code-snippet__string\">'User-Agent'<\/span>)).startswith(<span class=\"code-snippet__string\">'python'<\/span>)):\n<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">return<\/span> <span class=\"code-snippet__string\">\"\u5c0f\u5b50\uff0c\u4f7f\u7528\u722c\u866b\u662f\u5427\uff1f\u6eda\u4f60\u7684\"\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">else<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__keyword\">return<\/span> <span class=\"code-snippet__string\">\"\u8fd9\u91cc\u5047\u88c5\u6709\u5f88\u591a\u6570\u636e\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> __name__ == <span class=\"code-snippet__string\">\"__main__\"<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">    app.run(debug=<span class=\"code-snippet__keyword\">True<\/span>)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u8fd9\u4e2a\u65f6\u5019\u7684\u8bf7\u6c42<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> __name__ == <span class=\"code-snippet__string\">'__main__'<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">    url = <span class=\"code-snippet__string\">'http:\/\/127.0.0.1:5000\/getInfo'\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    response = requests.get(url)\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__built_in\">print<\/span>(response.text)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f97\u5230\u7684\u7ed3\u679c\u5c31\u662f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff0000; color: #ffffff;\">\u5c0f\u5b50\uff0c\u4f7f\u7528\u722c\u866b\u662f<\/span><span style=\"background-color: #ff0000; color: #ffffff;\">\u5427\uff1f\u6eda\u4f60\u7684<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff0000; color: #ffffff;\">\u00a0<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u5df2\u7ecf\u5728\u5c0f\u5e05b\u9762\u524d\u66b4\u9732\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u90a3\u4e48\u600e\u4e48\u529e\u5462\uff1f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f2a\u88c5\u81ea\u5df1\u5457<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">python \u4e0d\u53ef\u4ee5\u8bbf\u95ee<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6d4f\u89c8\u5668\u53ef\u4ee5\u8bbf\u95ee\u5440<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6240\u4ee5\u4f60\u53ef\u4ee5\u4fee\u6539\u4f60\u7684\u8bf7\u6c42\u5934<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8fd8\u8bb0\u5f97 <a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484103&amp;idx=1&amp;sn=e6535981a331d391ff05260e47d1e5d6&amp;chksm=fc8bba56cbfc3340d9a9c08d40c2f74e4f8cb71fec806396de85b7b697e1fc7fd75ca5a754c4&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">Fiddler\uff08\u53ef\u70b9\u51fb\uff09\u00a0<\/a>\u5417\uff1f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4f60\u53ef\u4ee5\u5148\u5728\u6d4f\u89c8\u5668\u8bbf\u95ee<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u7136\u540e\u5728\u6293\u53d6\u6570\u636e\u7684\u65f6\u5019\u83b7\u53d6\u5230 Header \u6570\u636e<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 1em; margin-right: 1em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\" aligncenter\" style=\"box-shadow: #aaaaaa 0em 0em 1em 0px;\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python3-1587537065.jpg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528 <a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484073&amp;idx=1&amp;sn=665a1fa621eefba334abcc4da5ed894d&amp;chksm=fc8bba38cbfc332eb514796a25130564071131a102bc795bf7ce30a2a6474532b4cc4d13ac7c&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">Chrome (\u53ef\u70b9\u51fb)\u00a0<\/a>\u7684\u63a7\u5236\u9762\u677f\u83b7\u53d6 Header<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 1em; margin-right: 1em;\"><img decoding=\"async\" class=\" aligncenter\" style=\"box-shadow: #aaaaaa 0em 0em 1em 0px;\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python6-1587537065.jpg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6709\u4e86 Header \u4fe1\u606f\u4e4b\u540e<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c31\u53ef\u4ee5\u4f7f\u7528 <a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484115&amp;idx=1&amp;sn=4f9ca3f0938cf9d9eaa9c6ff6c457481&amp;chksm=fc8bba42cbfc335478f72ef83049238aab250f5cf471cffe60b9ac736368b0eb4dbd2c74bcfd&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">requests\uff08\u53ef\u70b9\u51fb\uff09\u00a0<\/a>\u6a21\u5757\u8f7b\u677e\u83b7\u53d6<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u6069\uff0c\u73b0\u5728\u7684\u4f60\u5b66\u4f1a\u5047\u88c5\u81ea\u5df1\u662f\u6d4f\u89c8\u5668\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">if<\/span> __name__ == <span class=\"code-snippet__string\">'__main__'<\/span>:\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">    headers = {\n<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">'User-Agent'<\/span>: <span class=\"code-snippet__string\">'Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/72.0.3626.121 Safari\/537.36'\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    }\n<\/span><\/code><code><span class=\"code-snippet_outer\">\n<\/span><\/code><code><span class=\"code-snippet_outer\">    url = <span class=\"code-snippet__string\">'http:\/\/127.0.0.1:5000\/getInfo'\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    response = requests.get(url,headers=headers)\n<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__built_in\">print<\/span>(response.text)<\/span><\/code><\/pre>\n<\/section>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u518d\u83b7\u53d6\u4e00\u6b21\u53ef\u4ee5\u53d1\u73b0<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8fd4\u56de\u7684\u662f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff0000; color: #ffffff;\">\u8fd9\u91cc\u5047\u88c5\u6709<\/span><span style=\"background-color: #ff0000; color: #ffffff;\">\u5f88\u591a\u6570\u636e<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff0000; color: #ffffff;\">\u00a0<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">ok\uff0c\u4f60\u53c8\u83b7\u53d6\u5230\u6570\u636e\u4e86<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python9-1587537065.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f53\u7136<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4ec5\u4ec5\u662f\u4f2a\u88c5\u81ea\u5df1\u662f\u6d4f\u89c8\u5668\u8fd8\u4e0d\u591f\u7684<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u8981\u591a\u7ad9\u5728\u5bf9\u65b9\u7684\u89d2\u5ea6\u60f3\u95ee\u9898<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5f80\u540e<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u5c0f\u5e05b\u8fd8\u4f1a\u7ee7\u7eed\u8ddf\u4f60\u626f<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u600e\u4e48\u5e94\u5bf9\u53cd\u722c\u866b\u7684\u79cd\u79cd\u7b56\u7565<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><span style=\"background-color: #ff0000; color: #ffffff;\">peace<\/span><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 3px; text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\" style=\"width: 15%; height: auto !important;\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python3-1587537065.gif\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/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;\">\u5e05b\u8001\u4ed9<\/span><\/strong><\/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;\">\u6cd5\u529b\u65e0\u8fb9<\/span><\/strong><\/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;\">\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\" aligncenter\" style=\"width: 27%; box-shadow: #aaaaaa 0em 0em 1em 0px; height: auto !important;\" title=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/python0-1587537065.jpeg\" alt=\"python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8\" \/><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\u4e0e\u672c\u6587\u76f8\u5173\u7684\u6587\u7ae0<\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484073&amp;idx=1&amp;sn=665a1fa621eefba334abcc4da5ed894d&amp;chksm=fc8bba38cbfc332eb514796a25130564071131a102bc795bf7ce30a2a6474532b4cc4d13ac7c&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">1.\u6559\u4f60\u5728 Chrome \u6d4f\u89c8\u5668\u8f7b\u677e\u6293\u5305<\/a><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484103&amp;idx=1&amp;sn=e6535981a331d391ff05260e47d1e5d6&amp;chksm=fc8bba56cbfc3340d9a9c08d40c2f74e4f8cb71fec806396de85b7b697e1fc7fd75ca5a754c4&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">2.\u6559\u4f60\u901a\u8fc7 Fiddler \u8fdb\u884c\u624b\u673a\u6293\u5305<\/a><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484115&amp;idx=1&amp;sn=4f9ca3f0938cf9d9eaa9c6ff6c457481&amp;chksm=fc8bba42cbfc335478f72ef83049238aab250f5cf471cffe60b9ac736368b0eb4dbd2c74bcfd&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">3.Requests\u5e93\u628aurllib\u5e93\u62cd\u5728\u6c99\u6ee9\u4e0a<\/a><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484168&amp;idx=1&amp;sn=0a3af1ef9aedaa653c192b80f8a68a4d&amp;chksm=fc8bbb99cbfc328f4c5beac9195dbc998dacec21826c9ed175ace809e64bd9cfa565f24a79bc&amp;scene=21#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">4.\u771f\u7684\u6c42\u6c42\u4f60\u4eec\u4e86\uff0c\u4e0d\u8981\u518d\u6765\u722c\u53d6\u4e86<\/a><\/p>\n<p style=\"text-align: center; margin-left: 0.5em; margin-right: 0.5em; letter-spacing: 1.5px;\">\n<blockquote class=\"keep-source\"><p>\u539f\u6587\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff08\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09\uff1a<a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247484251&amp;idx=1&amp;sn=b10a5aedb633a051178fac8a1a800542&amp;scene=19#wechat_redirect\" target=\"_blank\" rel=\"noopener noreferrer\">python\u722c\u866b17 | \u542c\u8bf4\u4f60\u53c8\u88ab\u5c01 ip \u4e86\uff0c\u4f60\u8981\u5b66\u4f1a\u4f2a\u88c5\u597d\u81ea\u5df1\uff0c\u8fd9\u6b21\u8bf4\u8bf4\u4f2a\u88c5\u4f60\u7684\u5934\u90e8<\/a><\/p><\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u4e24\u5929 \u6709\u5c0f\u4f19\u4f34\u95ee\u5c0f\u5e05b \u4e3a\u4ec0\u4e48\u6211\u722c\u53d6 xx \u7f51\u7ad9\u7684\u65f6\u5019 \u4e0d\u8fd4\u56de\u7ed9\u6211\u6570\u636e \u800c\u4e14\u8fd8\u7529\u4e00\u53e5\u8bdd\u7ed9\u6211 \u201c\u7cfb\u7edf\u68c0\u6d4b\u5230\u60a8\u9891\u7e41\u8bbf\u95ee\uff0c\u8bf7\u7a0d\u540e\u518d\u6765\u201d \u5c0f\u5e05b\u770b\u4e86\u4e00\u4e0b\u4ed6\u7684\u4ee3\u7801 for i in range(1,10000): \u00a0\u00a0\u00a0\u00a0requests.get(url) &hellip;<\/p>\n","protected":false},"author":1,"featured_media":4804,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[401],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4803"}],"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=4803"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4803\/revisions"}],"predecessor-version":[{"id":6630,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/4803\/revisions\/6630"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/4804"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}