{"id":6357,"date":"2021-03-26T20:17:00","date_gmt":"2021-03-26T12:17:00","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=6357"},"modified":"2021-05-06T18:23:28","modified_gmt":"2021-05-06T10:23:28","slug":"%e4%bd%bf%e7%94%a8-python-%e4%bb%8e-0-%e5%bc%80%e5%8f%91%e5%b1%9e%e4%ba%8e%e4%bd%a0%e7%9a%84%e4%b8%aa%e4%ba%ba%e7%ae%a1%e7%90%86%e7%b3%bb%e7%bb%9f-03-%e7%af%87%ef%bd%9c-%e8%bf%99%ef%bc%8c%e5%b0%b1","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=6357","title":{"rendered":"\u4f7f\u7528 Python \u4ece 0 \u5f00\u53d1\u5c5e\u4e8e\u4f60\u7684\u4e2a\u4eba\u7ba1\u7406\u7cfb\u7edf 03 \u7bc7\uff5c \u8fd9\uff0c\u5c31\u662f Flask \u7684\u54cd\u5e94\u4ea4\u4e92\u64cd\u4f5c"},"content":{"rendered":"\n<p>\u73b0\u5728\uff0c\u6211\u4eec\u7ee7\u7eed\u5bf9 Flask \u7684\u5e38\u7528\u4f7f\u7528\u65b9\u5f0f\u8fdb\u884c\u4e86\u89e3\u3002<\/p>\n\n\n\n<p>\u5f53\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8f93\u5165 URL \u8bf7\u6c42\u4f60\u7684\u670d\u52a1\uff0c\u4f60\u9700\u8981\u4f5c\u51fa\u54cd\u5e94\uff0c\u6bd4\u5982\u4e0a\u4e00\u7bc7\u4e2d\u63d0\u5230\u7684\u6570\u636e\u6e32\u67d3\u7684\u8fd4\u56de\uff0c\u518d\u5177\u4f53\u70b9\u8bf4\uff0c\u4f60\u53ef\u4ee5\u5728 Chrome \u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u5f00\u53d1\u8005\u9762\u677f\uff0c\u7136\u540e\u70b9\u51fb\u300cNetwork\u300d\uff0c\u5f00\u59cb\u53d1\u9001\u8bf7\u6c42\uff0c\u8fd9\u65f6\u5019\u4f60\u53ef\u4ee5\u770b\u5230\u8fd9\u4e9b\u54cd\u5e94\u7684\u5185\u5bb9\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"281\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-1024x281.png\" alt=\"\" class=\"wp-image-6358\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-1024x281.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-300x82.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-768x211.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-1536x422.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-2048x562.png 2048w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.34.52-769x211.png 769w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u53ef\u4ee5\u770b\u5230\u54cd\u5e94\u7684\u72b6\u6001\u5417\uff0c\u54cd\u5e94\u7684\u7c7b\u578b\u7b49\u4fe1\u606f\uff0c\u4f60\u5728\u70b9\u51fb\u76f8\u5e94\u7684\u94fe\u63a5\u8fdb\u53bb\uff0c\u4f60\u53ef\u4ee5\u770b\u5230\u54cd\u5e94\u7684\u5177\u4f53\u4fe1\u606f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"412\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-1024x412.png\" alt=\"\" class=\"wp-image-6360\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-1024x412.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-300x121.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-768x309.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-1536x619.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14-769x310.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.36.14.png 1798w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u5f53\u7136\uff0c\u4f60\u5728\u4f7f\u7528 Flask \u5f00\u53d1\u670d\u52a1\u7684\u65f6\u5019\uff0c\u5e76\u4e0d\u9700\u8981\u5173\u5fc3\u5230\u5177\u4f53\u7684\u6bcf\u4e2a\u54cd\u5e94\u53c2\u6570\uff0c\u4f46\u662f\u4f60\u53ef\u4ee5\u5bf9\u4e00\u4e9b\u54cd\u5e94\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2>404 \u54cd\u5e94<\/h2>\n\n\n\n<p>\u5f53\u7528\u6237\u8bbf\u95ee\u4f60\u7684\u5177\u4f53\u670d\u52a1\uff0c\u4f46\u662f\u4e0d\u5b58\u5728\u7684\u65f6\u5019\u4f1a\u8fd4\u56de 404 \u7684\u72b6\u6001:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"1024\" height=\"222\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-1024x222.png\" alt=\"\" class=\"wp-image-6361\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-1024x222.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-300x65.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-768x167.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-1536x334.png 1536w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-2048x445.png 2048w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/\u622a\u5c4f2021-03-27-\u4e0a\u534812.47.27-769x167.png 769w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7 errorhandler \u8fdb\u884c\u62e6\u622a\uff0c\u4ece\u800c\u81ea\u5b9a\u4e49\u81ea\u5df1\u7684 404 \u54cd\u5e94\uff1a<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;wpum_restrict_type&quot;:&quot;wpum_restrict_type_state&quot;,&quot;wpum_hide_state_in&quot;:false,&quot;wpum_hide_state_out&quot;:false,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">\n@app.errorhandler(404)\ndef page_not_found(error):\n    return '\u4f60\u67e5\u627e\u7684\u9875\u9762\u4e0d\u5b58\u5728', 404\n\n<\/pre><\/div>\n\n\n\n<p>\u90a3\u4e48\u8fd9\u65f6\u5019\u7528\u6237\u8bbf\u95ee\u7684\u6240\u6709 404 \u9519\u8bef\uff0c\u90fd\u4f1a\u76f4\u63a5\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd5\u3002<\/p>\n\n\n\n<p>\u5176\u5b83<a href=\"https:\/\/zh.wikipedia.org\/wiki\/HTTP%E7%8A%B6%E6%80%81%E7%A0%81#4xx%E5%AE%A2%E6%88%B7%E7%AB%AF%E9%94%99%E8%AF%AF\">\u54cd\u5e94\u7684\u9519\u8bef\u7801<\/a>\u6216\u8005\u5f02\u5e38\u4f60\u90fd\u53ef\u4ee5\u901a\u8fc7 errorhandler \u62e6\u622a\u5e76\u4e14\u81ea\u5b9a\u4e49\u3002<\/p>\n\n\n\n<h2>\u9875\u9762\u91cd\u5b9a\u5411<\/h2>\n\n\n\n<p>\u6709\u65f6\u5019\u4f60\u5b9a\u4e49\u7684\u8bf7\u6c42 URL \u53ef\u80fd\u4e0d\u5b58\u5728\u4e86\uff0c\u4f60\u60f3\u8ba9\u4ed6\u91cd\u5b9a\u5411\u5230\u6b63\u786e\u7684\u9875\u9762\u53bb\uff0c\u90a3\u5c31\u53ef\u4ee5\u4f7f\u7528 redirect \u65b9\u6cd5\uff0c\u6bd4\u5982\uff0c\u4f60\u60f3\u8ba9\u7528\u6237\u8bbf\u95ee \/fxxk \u7684\u65f6\u5019\uff0c\u76f4\u63a5\u8ba9\u5b83\u91cd\u5b9a\u5411\u5230\u767e\u5ea6\u9875\u9762\u53bb\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u8fd9\u6837\uff1a<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D6357\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u6bd4\u5982\u73b0\u5728\u6211\u4eec\u60f3\u8981\u63d0\u4f9b\u6309\u6469\u4f1a\u6240\u7684 API\u3002<\/p>\n\n\n\n<p>\u8fd9\u7bc7\u5148\u4e0d\u8bb2\u6570\u636e\u5e93\u76f8\u5173\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u7528 list \u548c dict \u6765\u5c01\u88c5\u4f1a\u6240\u7684\u540d\u79f0\u3001\u5177\u4f53\u4f1a\u6240\u4e0b\u7684\u6280\u5e08\u5458\u5de5\u53f7\u7801\u548c\u4ef7\u683c\u7684\u6570\u636e\uff0c\u6bd4\u5982\u6709\u4e00\u5bb6\u53eb\u505a \u201c\u8d85\u68d2\u4f11\u95f2\u4f1a\u6240\u201d\uff0c\u91cc\u9762\u6709\u4e00\u4f4d\u6280\u5e08 808 \u53f7\uff0c\u6309\u6469\u4ef7\u683c 666\uff0c\u5c31\u53ef\u4ee5\u8fd9\u6837\u8868\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"431\" height=\"309\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640.png\" alt=\"\" class=\"wp-image-6364\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640.png 431w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-300x215.png 300w\" sizes=\"(max-width: 431px) 100vw, 431px\" \/><\/figure><\/div>\n\n\n\n<p>\u90a3\u4e48\u8fd9\u4e2a\u65f6\u5019\uff0c\u6211\u4eec\u8981\u7ed9\u524d\u7aef\u63d0\u4f9b\u83b7\u53d6\u6240\u6709\u4f1a\u6240\u6570\u636e\u7684 API\uff0c\u8fd4\u56de json \u6570\u636e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"482\" height=\"400\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-1.png\" alt=\"\" class=\"wp-image-6365\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-1.png 482w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-1-300x249.png 300w\" sizes=\"(max-width: 482px) 100vw, 482px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u7528\u5230\u4e86 <strong>jsonify<\/strong> \uff0c\u5b83\u53ef\u4ee5\u5c06\u5b57\u5178\u8f6c\u5316\u4e3a Json\uff0c \u4e3a\u4e86\u9632\u6b62\u4e2d\u6587\u4e71\u7801\uff0c\u6211\u4eec\u53ef\u4ee5\u8fd9\u6837\u8bbe\u7f6e\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"420\" height=\"62\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-2.png\" alt=\"\" class=\"wp-image-6366\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-2.png 420w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-2-300x44.png 300w\" sizes=\"(max-width: 420px) 100vw, 420px\" \/><\/figure><\/div>\n\n\n\n<p>\u8dd1\u8d77\u6765\u770b\u770b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"604\" height=\"109\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-3.png\" alt=\"\" class=\"wp-image-6367\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-3.png 604w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2021\/03\/640-3-300x54.png 300w\" sizes=\"(max-width: 604px) 100vw, 604px\" \/><\/figure><\/div>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>JSON \u5e38\u7528\u8bed\u6211\u4eec\u7684\u524d\u540e\u7aef\u6570\u636e\u4ea4\u4e92\uff0c\u6211\u4eec\u4e4b\u540e\u8fd8\u4f1a\u7ecf\u5e38\u4f7f\u7528\u5230\u3002<\/p><\/blockquote>\n\n\n\n<h2>session \u4f1a\u8bdd<\/h2>\n\n\n\n<p>\u901a\u8fc7 Flask \u7684 session \u5bf9\u8c61\u53ef\u4ee5\u5b58\u50a8\u5230\u7528\u6237\u7684\u4e00\u4e9b\u7279\u5b9a\u4fe1\u606f\uff0c\u6bd4\u5982\u6211\u4eec\u53ef\u4ee5\u5bf9\u5df2\u7ecf\u767b\u5f55\u7684\u7528\u6237\u505a\u4e00\u4e9b\u6570\u636e\u6807\u8bc6\u6216\u5b58\u50a8\uff0c\u907f\u514d\u7528\u6237\u6bcf\u6b21\u8bbf\u95ee\u670d\u52a1\u90fd\u9700\u8981\u767b\u5f55\uff1a<\/p>\n\n\n\n<p>\u5f53\u7528\u6237\u767b\u5f55\u6210\u529f\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 session \u50a8\u5b58\u7528\u6237\u4fe1\u606f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;wpum_restrict_type&quot;:&quot;wpum_restrict_type_state&quot;,&quot;wpum_hide_state_in&quot;:false,&quot;wpum_hide_state_out&quot;:false,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">session['usernmae'] = request.form['usernmae'] \u00a0 \u00a0<\/pre><\/div>\n\n\n\n<p>\u5f53\u7528\u6237\u8bbf\u95ee\u9875\u9762\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u901a\u8fc7 session \u5224\u65ad\u7528\u6237\u662f\u5426\u767b\u5f55\uff1a<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;wpum_restrict_type&quot;:&quot;wpum_restrict_type_state&quot;,&quot;wpum_hide_state_in&quot;:false,&quot;wpum_hide_state_out&quot;:false,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">if 'uername' in session: \u00a0 \u00a0 \u00a0\n    # \u5df2\u7ecf\u767b\u5f55\uff0c\u76f4\u63a5\u8bbf\u95ee<\/pre><\/div>\n\n\n\n<p>\u5f53\u7528\u6237\u9000\u51fa\u7684\u65f6\u5019\uff0c\u53ef\u4ee5\u5728 session \u4e2d\u79fb\u9664\u8fd9\u4e2a\u7528\u6237\uff1a<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;python&quot;,&quot;mime&quot;:&quot;text\/x-python&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;wpum_restrict_type&quot;:&quot;wpum_restrict_type_state&quot;,&quot;wpum_hide_state_in&quot;:false,&quot;wpum_hide_state_out&quot;:false,&quot;language&quot;:&quot;Python&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;python&quot;}\">session.pop('usernmae')<\/pre><\/div>\n\n\n\n<p>OK\uff0c \u4ee5\u4e0a\u5c31\u662f\u5c0f\u5e05b\u4eca\u5929\u7ed9\u4f60\u5e26\u6765\u7684\u5206\u4eab\uff0c\u524d\u51e0\u7bc7\u6211\u4f1a\u5148\u628a\u8fd9\u4e9b Flask \u7684\u57fa\u7840\u64cd\u4f5c\u7ed9\u4f60\u8bf4\u4e0b\uff0c\u4f60\u53ef\u4ee5\u591a\u4e86\u89e3\u4e00\u4e0b\uff0c\u540e\u9762\u4f60\u624d\u80fd\u66f4\u52a0\u300c\u5f97\u5fc3\u5e94\u624b\u300d\uff0c\u6211\u4eec\u4e0b\u4e00\u7bc7\u89c1\uff0cpeace\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u73b0\u5728\uff0c\u6211\u4eec\u7ee7\u7eed\u5bf9 Flask \u7684\u5e38\u7528\u4f7f\u7528\u65b9\u5f0f\u8fdb\u884c\u4e86\u89e3\u3002 \u5f53\u7528\u6237\u901a\u8fc7\u6d4f\u89c8\u5668\u8f93\u5165 URL \u8bf7\u6c42\u4f60\u7684\u670d\u52a1\uff0c\u4f60\u9700\u8981\u4f5c\u51fa\u54cd\u5e94\uff0c\u6bd4\u5982\u4e0a\u4e00\u7bc7\u4e2d\u63d0\u5230\u7684\u6570\u636e\u6e32\u67d3\u7684\u8fd4\u56de\uff0c\u518d\u5177\u4f53\u70b9\u8bf4\uff0c\u4f60\u53ef\u4ee5\u5728 Chrome \u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u5f00\u53d1\u8005\u9762\u677f\uff0c\u7136\u540e\u70b9\u51fb\u300cNetwork\u300d\uff0c\u5f00\u59cb\u53d1\u9001\u8bf7\u6c42&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6362,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[99],"tags":[561,490,549,564,560,563,559,562],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6357"}],"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=6357"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6357\/revisions"}],"predecessor-version":[{"id":6413,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6357\/revisions\/6413"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/6362"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}