{"id":1318,"date":"2019-12-16T22:53:16","date_gmt":"2019-12-16T14:53:16","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1318"},"modified":"2019-12-16T22:53:16","modified_gmt":"2019-12-16T14:53:16","slug":"python-%e7%88%ac%e9%98%b6%e6%a2%af%e5%a6%82%e4%bd%95%e5%88%b6%e4%bd%9c%e4%b8%80%e6%9c%ac%e5%9c%a8%e7%ba%bf%e7%9a%84%e7%94%b5%e5%ad%90%e4%b9%a6%e6%88%96%e8%80%85-python-%e6%96%87%e6%a1%a3%e4%be%9b","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1318","title":{"rendered":"Python \u722c\u9636\u68af|\u5982\u4f55\u5236\u4f5c\u4e00\u672c\u5728\u7ebf\u7684\u7535\u5b50\u4e66\u6216\u8005 Python \u6587\u6863\u4f9b\u5176\u4ed6\u4eba\u8fdc\u7a0b\u8bbf\u95ee"},"content":{"rendered":"\n<p>\u5728\u4e0a\u4e00\u7bc7\u4e2d\u6211\u7ed9\u4f60\u4ecb\u7ecd\u4e86 sphinx \u5c06 docstring \u751f\u6210\u6587\u6863\uff0c\u4e0d\u8fc7\u53ef\u80fd\u4f60\u6709\u65f6\u5019\u4f1a\u770b\u5230\u8fd9\u6837\u7684\u6587\u6863\u548c\u5728\u7ebf\u7535\u5b50\u4e66\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"499\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25-1024x499.png\" alt=\"\" class=\"wp-image-1319\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25-1024x499.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25-300x146.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25-768x375.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25-769x375.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-20-13-25.png 1376w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u5982\u679c\u4f60\u81ea\u5df1\u60f3\u8981\u5199\u4e00\u4e2a\u8fd9\u6837\u7684\uff0c\u5e76\u4e14\u76f4\u63a5\u6258\u7ba1\u5230\u7ebf\u4e0a\uff0c\u5e94\u8be5\u600e\u4e48\u64cd\u4f5c\u5462\uff1f<\/p>\n\n\n\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 read the doc  \uff0c\u5b83\u5f00\u6e90\u514d\u8d39\uff0c\u5e76\u4e14\u53ef\u4ee5\u4f7f\u7528\u5230 Github \u7684 webhook\uff0c \u4e5f\u5c31\u662f\u8bf4\uff0c\u5f53\u4f60\u5c06\u4f60\u7684\u751f\u6210\u7684\u6587\u6863\u6216\u8005\u7535\u5b50\u4e66\u6258\u7ba1\u5230 GitHub \u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u548c read the doc \u8fdb\u884c\u5173\u8054\uff0c\u8fd9\u6837\u5f53\u4f60\u6bcf\u6b21\u66f4\u65b0 push \u5230 GitHub \uff0cread the doc \u663e\u793a\u4f60\u7684\u5728\u7ebf\u6587\u6863\u4e5f\u4f1a\u8ddf\u7740\u4e00\u8d77\u66f4\u65b0\u55a7\u56b7\uff0c\u7b80\u76f4\u592a\u65b9\u4fbf\u4e86\u3002<\/p>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6211\u7ed9\u4f60\u6f14\u793a\u4e00\u4e0b\uff0c\u5982\u4f55\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u786e\u4fdd\u4f60\u5b89\u88c5\u4e86 sphinx \uff0c\u5982\u679c\u4e0d\u77e5\u9053 sphinx \u5982\u4f55\u64cd\u4f5c\u53ef\u4ee5\u8fd4\u56de\u5230\u4e0a\u4e00\u7bc7\u770b\u770b\u5148\uff0c\u6211\u8fd9\u91cc\u5c31\u76f4\u63a5\u7528\u547d\u4ee4\u6765\u8fdb\u884c\u6f14\u793a\u4e86\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\u5e76\u8fdb\u5165\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%3D1318\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u7136\u540e\u5b83\u5c31\u4f1a\u5f00\u59cb\u53bb hook\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"969\" height=\"554\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-40-54.png\" alt=\"\" class=\"wp-image-1355\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-40-54.png 969w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-40-54-300x172.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-40-54-768x439.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-40-54-769x440.png 769w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/figure><\/div>\n\n\n\n<p>\u7136\u540e\u5c31\u53ef\u4ee5\u8bbf\u95ee\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21-1024x602.png\" alt=\"\" class=\"wp-image-1356\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21-1024x602.png 1024w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21-300x176.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21-768x451.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21-769x452.png 769w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-16-22-49-21.png 1111w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e0b\u6b21\u4f60\u8981\u66f4\u65b0\u4f60\u7684\u6587\u6863\uff0c\u53ea\u9700\u8981\u76f4\u63a5\u5728\u672c\u5730\u66f4\u65b0\u5b8c push \u5230 Github \u4e0a\u9762\u53bb\u53ef\u4ee5\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u4e0a\u4e00\u7bc7\u4e2d\u6211\u7ed9\u4f60\u4ecb\u7ecd\u4e86 sphinx \u5c06 docstring \u751f\u6210\u6587\u6863\uff0c\u4e0d\u8fc7\u53ef\u80fd\u4f60\u6709\u65f6\u5019\u4f1a\u770b\u5230\u8fd9\u6837\u7684\u6587\u6863\u548c\u5728\u7ebf\u7535\u5b50\u4e66\uff1a \u5982\u679c\u4f60\u81ea\u5df1\u60f3\u8981\u5199\u4e00\u4e2a\u8fd9\u6837\u7684\uff0c\u5e76\u4e14\u76f4\u63a5\u6258\u7ba1\u5230\u7ebf\u4e0a\uff0c\u5e94\u8be5\u600e\u4e48\u64cd\u4f5c\u5462\uff1f \u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 read the doc \uff0c\u5b83\u5f00\u6e90\u514d\u8d39\uff0c\u5e76\u4e14&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[140],"tags":[19,231,229,225,230,228],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1318"}],"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=1318"}],"version-history":[{"count":2,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1318\/revisions"}],"predecessor-version":[{"id":1357,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1318\/revisions\/1357"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}