{"id":1281,"date":"2019-12-11T17:16:56","date_gmt":"2019-12-11T09:16:56","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=1281"},"modified":"2020-03-10T00:11:34","modified_gmt":"2020-03-09T16:11:34","slug":"python3-%e7%88%ac%e9%98%b6%e6%a2%af-%e4%b8%ba%e4%bb%80%e4%b9%88%e9%80%9a%e8%bf%87-help-%e5%b0%b1%e8%83%bd%e8%8e%b7%e5%8f%96%e5%88%b0%e4%bb%a3%e7%a0%81%e7%9a%84%e7%9b%b8%e5%85%b3%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=1281","title":{"rendered":"Python3 \u722c\u9636\u68af | \u4e3a\u4ec0\u4e48\u901a\u8fc7 help() \u5c31\u80fd\u83b7\u53d6\u5230\u4ee3\u7801\u7684\u76f8\u5173\u8bf4\u660e\uff1f"},"content":{"rendered":"\n<p>\u6211\u4eec\u5728\u4f7f\u7528 Python \u7684\u65f6\u5019\uff0c\u4e0d\u7ba1\u662f\u5185\u7f6e\u7684\u6a21\u5757\uff0c\u8fd8\u662f\u6211\u4eec\u5f15\u7528\u7684\u7b2c\u4e09\u65b9\u7684\u6a21\u5757\uff0c\u5f53\u6211\u4eec\u5bf9\u5b83\u4eec\u7684\u5177\u4f53\u4f7f\u7528\u4e0d\u662f\u5f88\u6e05\u695a\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u4f1a\u4f7f\u7528 help() \u6216\u8005 __doc__ \u6765\u83b7\u53d6\u76f8\u5173\u7684\u5e2e\u52a9\u6587\u6863\uff0c \u6bd4\u5982\u6211\u4eec\u8981\u770b\u770b print \u8fd9\u4e2a\u51fd\u6570\u7684\u8bf4\u660e\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"650\" height=\"97\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-49.png\" alt=\"\" class=\"wp-image-1282\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-49.png 650w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-49-300x45.png 300w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u65f6\u5019\u6211\u4eec\u53ef\u4ee5\u770b\u5230 print \u51fd\u6570\u7684\u4ecb\u7ecd\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"701\" height=\"250\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-33.png\" alt=\"\" class=\"wp-image-1283\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-33.png 701w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-33-300x107.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-15-17-33-700x250.png 700w\" sizes=\"(max-width: 701px) 100vw, 701px\" \/><\/figure><\/div>\n\n\n\n<p>\u5176\u5b9e\u8fd9\u5c31\u662f Docstring\uff0c\u4eca\u5929\u8981\u8ddf\u4f60\u8bb2\u8bb2\u8fd9\u4e2a\u73a9\u610f\u5982\u4f55\u53bb\u5199\uff0c\u9664\u4e86\u77e5\u9053\u5982\u4f55\u53bb\u9605\u8bfb\u522b\u4eba\u7684\u6587\u6863\u4ecb\u7ecd\u4e4b\u5916\uff0c\u81ea\u5df1\u4e5f\u8981\u77e5\u9053\u600e\u4e48\u5199\uff0c\u8fd9\u4e0d\u7ba1\u662f\u4f60\u4ee5\u540e\u53bb\u5f00\u6e90\u4e00\u4e2a\u9879\u76ee\u8fd8\u662f\u8ddf\u56e2\u961f\u5408\u4f5c\uff0c\u90fd\u662f\u9700\u8981\u5199\u7684\u3002<\/p>\n\n\n\n<p>\u4ec0\u4e48\u662f Docstring \u5462\uff1f\u5176\u5b9e\u5c31\u662f<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%3D1281\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u6211\u8fd9\u91cc\u9009\u62e9\u7684\u662f NumPy \u7684\u6a21\u677f\uff0c\u90a3\u4e48\u4e0b\u6b21\u4f60\u8981\u5199 Docstring \u7684\u65f6\u5019\u5c31\u662f\u8fd9\u6837\u4e86\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"491\" height=\"631\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-17-07-04.png\" alt=\"\" class=\"wp-image-1297\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-17-07-04.png 491w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/12\/Screenshot-from-2019-12-11-17-07-04-233x300.png 233w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f Docstring \u7684\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u5728\u4f7f\u7528 Python \u7684\u65f6\u5019\uff0c\u4e0d\u7ba1\u662f\u5185\u7f6e\u7684\u6a21\u5757\uff0c\u8fd8\u662f\u6211\u4eec\u5f15\u7528\u7684\u7b2c\u4e09\u65b9\u7684\u6a21\u5757\uff0c\u5f53\u6211\u4eec\u5bf9\u5b83\u4eec\u7684\u5177\u4f53\u4f7f\u7528\u4e0d\u662f\u5f88\u6e05\u695a\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5c31\u4f1a\u4f7f\u7528 help() \u6216\u8005 __doc__ \u6765\u83b7\u53d6\u76f8\u5173\u7684\u5e2e\u52a9\u6587\u6863\uff0c \u6bd4\u5982\u6211\u4eec\u8981\u770b\u770b print \u8fd9\u4e2a\u51fd\u6570\u7684\u8bf4\u660e\uff1a \u8fd9\u65f6\u5019\u6211\u4eec&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":[223,218,222,224,219,220,221],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1281"}],"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=1281"}],"version-history":[{"count":4,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1281\/revisions"}],"predecessor-version":[{"id":4147,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/1281\/revisions\/4147"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}