{"id":6370,"date":"2021-03-30T22:08:00","date_gmt":"2021-03-30T14:08:00","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=6370"},"modified":"2022-06-07T21:09:15","modified_gmt":"2022-06-07T13:09:15","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-04-%e7%af%87%ef%bd%9c%e5%bc%80%e5%a7%8b%e7%bb%84","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=6370","title":{"rendered":"\u4f7f\u7528 Python \u4ece 0 \u5f00\u53d1\u5c5e\u4e8e\u4f60\u7684\u4e2a\u4eba\u7ba1\u7406\u7cfb\u7edf 04 \u7bc7\uff5c\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u9879\u76ee\u6587\u4ef6\u7ed3\u6784"},"content":{"rendered":"\n<p>\u524d\u51e0\u7bc7\u5c0f\u5e05b\u7ed9\u4f60\u4ecb\u7ecd\u7684 Flask \u4f7f\u7528\uff0c\u6211\u4eec\u90fd\u5728\u4e00\u4e2a py \u6587\u4ef6\u4e2d\u5b9e\u73b0\uff0c\u867d\u7136\u8bf4\u6ca1\u4ec0\u4e48\u6bdb\u75c5\uff0c\u4f46\u662f\u4e4b\u540e\u6211\u4eec\u603b\u4e0d\u80fd\u4ec0\u4e48\u529f\u80fd\u90fd\u5f80\u4e00\u4e2a py \u91cc\u9762\u5199\uff0c\u8fd9\u6837\u4f1a\u663e\u5f97\u53c8\u81ed\u53c8\u957f\uff0c\u96be\u4ee5\u62d3\u5c55\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u7684\u9879\u76ee\u8981\u6709\u4e00\u4e2a\u7ed3\u6784\uff0c\u5408\u7406\u7684\u5206\u914d\u6bcf\u4e2a\u4f4d\u7f6e\u5e94\u8be5\u5b9e\u73b0\u4ec0\u4e48\u4e8b\u60c5\uff0c\u6bd4\u5982\u6a21\u677f\u6587\u4ef6\uff0c\u6570\u636e\u5e93\u5904\u7406\uff0c\u547d\u4ee4\uff0c\u89c6\u56fe\u7b49\uff0c\u6211\u4eec\u5e94\u8be5\u628a\u5b83\u4eec\u533a\u5206\u597d\uff0c\u8ba9\u9879\u76ee\u5f88\u6e05\u6670\u624d\u884c\u3002<\/p>\n\n\n\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u4f1a\u6d89\u53ca\u5230 Python \u7684 package \u548c module \u7684\u4f7f\u7528\uff0c\u4f60\u53ef\u4ee5\u770b\u770b\u5c0f\u5e05b\u4e4b\u524d\u5199\u7684\u8fd9\u7bc7\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/vip.fxxkpython.com\/?p=963\">\u4e0d\u8981\u628a\u4ee3\u7801\u90fd\u5199\u5230\u4e00\u4e2a py \u91cc\u9762\uff0c\u5b66\u4f1a\u4f7f\u7528\u6a21\u5757\u5316\u548cpackages<\/a><\/p>\n\n\n\n<p>\u7b80\u5355\u70b9\u8bf4\u5c31\u662f\uff0c\u6211\u4eec\u9700\u8981\u5c06\u4e0d\u540c\u7684\u529f\u80fd\u5212\u5206\u4e3a\u4e0d\u540c\u7684\u5305\uff0c\u5e76\u5728\u4e0d\u540c\u7684\u5305\u91cc\u9762\u7ba1\u7406\u76f8\u5173\u7684\u6a21\u5757\u3002<\/p>\n\n\n\n<p>\u8fd8\u8bb0\u5f97\u5982\u4f55\u66f4\u597d\u7684\u7ed9\u5305\u548c\u6a21\u5757\u8d77\u540d\u5417\uff1f<\/p>\n\n\n\n<p><a href=\"https:\/\/vip.fxxkpython.com\/?p=6354\">\u5982\u4f55\u628a Python \u4ee3\u7801\u5199\u5f97\u4f18\u96c5\uff1f<\/a><\/p>\n\n\n\n<p>\u597d\u4e86\uff0c\u73b0\u5728\u8fdb\u5165\u4f60\u7684\u9879\u76ee\u865a\u62df\u73af\u5883\uff0c\u628a\u4f60\u4e4b\u524d\u6d4b\u8bd5\u7684\u6587\u4ef6\u5220\u6389\uff0c\u73b0\u5728\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55\u5e94\u8be5\u53ea\u5269\u4e0b\u8fd9\u4e48\u4e24\u4e2a\u73a9\u610f\uff1a<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>Pipfile<\/p><p>Pipfile.lock<\/p><\/blockquote>\n\n\n\n<p>\u63a5\u4e0b\u6765\uff0c\u5f00\u59cb\u7ec4\u7ec7\u597d\u4f60\u7684\u9879\u76ee\u6587\u4ef6\u7ed3\u6784\u3002<\/p>\n\n\n\n<h2>\u521b\u5efa package<\/h2>\n\n\n\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5305\uff0c\u8fd9\u4e2a\u5305\u7528\u6765\u7ba1\u7406\u4f60\u9879\u76ee\u7684\u6a21\u5757\u548c\u6587\u4ef6\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>mkdir mysystem<\/p><\/blockquote>\n\n\n\n<p>\u63a5\u7740\u6211\u4eec\u5c31\u53ef\u4ee5\u5728\u8fd9\u4e2a package \u91cc\u521b\u5efa\u6587\u4ef6\u548c\u6a21\u5757\u6765\u4e86\u3002<\/p>\n\n\n\n<h2>\u521b\u5efa\u6a21\u677f\u6587\u4ef6<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\"><p>cd mysystem<\/p><p>mkdir templates<\/p><\/blockquote>\n\n\n\n<p><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%3D6370\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>OK\uff0c\u73b0\u5728\u4f60\u5df2\u7ecf\u77e5\u9053\u4e86\u9879\u76ee\u6587\u4ef6\u7684\u7ed3\u6784\uff0c\u77e5\u9053\u4e86\u5b83\u4eec\u7684\u542b\u4e49\uff0c\u8bf7\u4f60\u628a\u9879\u76ee\u7ed3\u6784\u521b\u5efa\u597d\uff0c\u63a5\u4e0b\u6765\u6211\u4eec\u4f1a\u4e0d\u65ad\u7684\u64cd\u4f5c\u5b83\u4eec\uff0c\u90a3\u4e48\u6211\u4eec\u4e0b\u56de\u89c1\uff0cpeace\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u51e0\u7bc7\u5c0f\u5e05b\u7ed9\u4f60\u4ecb\u7ecd\u7684 Flask \u4f7f\u7528\uff0c\u6211\u4eec\u90fd\u5728\u4e00\u4e2a py \u6587\u4ef6\u4e2d\u5b9e\u73b0\uff0c\u867d\u7136\u8bf4\u6ca1\u4ec0\u4e48\u6bdb\u75c5\uff0c\u4f46\u662f\u4e4b\u540e\u6211\u4eec\u603b\u4e0d\u80fd\u4ec0\u4e48\u529f\u80fd\u90fd\u5f80\u4e00\u4e2a py \u91cc\u9762\u5199\uff0c\u8fd9\u6837\u4f1a\u663e\u5f97\u53c8\u81ed\u53c8\u957f\uff0c\u96be\u4ee5\u62d3\u5c55\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u7684\u9879\u76ee\u8981\u6709\u4e00\u4e2a\u7ed3\u6784\uff0c\u5408\u7406\u7684\u5206\u914d\u6bcf\u4e2a\u4f4d\u7f6e\u5e94\u8be5\u5b9e\u73b0\u4ec0\u4e48\u4e8b\u60c5\uff0c\u6bd4\u5982\u6a21\u677f\u6587\u4ef6&hellip;<\/p>\n","protected":false},"author":1,"featured_media":6371,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[99],"tags":[121,566,568,567,565],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6370"}],"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=6370"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6370\/revisions"}],"predecessor-version":[{"id":6987,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/6370\/revisions\/6987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/6371"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}