{"id":1151780,"date":"2025-01-13T17:17:40","date_gmt":"2025-01-13T09:17:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1151780.html"},"modified":"2025-01-13T17:17:42","modified_gmt":"2025-01-13T09:17:42","slug":"python%e5%a6%82%e4%bd%95%e6%89%93%e5%bc%80%e5%b8%ae%e5%8a%a9%e7%aa%97%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1151780.html","title":{"rendered":"python\u5982\u4f55\u6253\u5f00\u5e2e\u52a9\u7a97\u53e3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25181943\/a6b3e9fd-19ff-42a8-b83b-862b98f76455.webp\" alt=\"python\u5982\u4f55\u6253\u5f00\u5e2e\u52a9\u7a97\u53e3\" \/><\/p>\n<p><p> <strong>Python\u6253\u5f00\u5e2e\u52a9\u7a97\u53e3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528help()\u51fd\u6570\u3001pydoc\u6a21\u5757\u3001IPython\u4e2d\u7684?\u548c??\u64cd\u4f5c\u7b26\u3001Jupyter Notebook\u4e2d\u7684Shift+Tab\u5feb\u6377\u952e\u7b49\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u5373\u4f7f\u7528help()\u51fd\u6570\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528help()\u51fd\u6570<\/strong>\u662fPython\u4e2d\u6700\u76f4\u63a5\u4e14\u5e38\u7528\u7684\u83b7\u53d6\u5e2e\u52a9\u7684\u65b9\u6cd5\u3002help()\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u83b7\u53d6\u6a21\u5757\u3001\u51fd\u6570\u3001\u7c7b\u3001\u65b9\u6cd5\u6216\u5173\u952e\u5b57\u7684\u5e2e\u52a9\u4fe1\u606f\u3002\u53ea\u9700\u5728Python\u89e3\u91ca\u5668\u4e2d\u8c03\u7528help()\u51fd\u6570\u5e76\u4f20\u5165\u4f60\u60f3\u8981\u4e86\u89e3\u7684\u5bf9\u8c61\u5373\u53ef\u3002\u4f8b\u5982\uff0c\u60f3\u8981\u4e86\u89e3print\u51fd\u6570\u7684\u7528\u6cd5\uff0c\u53ea\u9700\u8f93\u5165<code>help(print)<\/code>\uff0c\u5373\u53ef\u5f39\u51fa\u4e00\u4e2a\u5e2e\u52a9\u7a97\u53e3\uff0c\u663e\u793aprint\u51fd\u6570\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u5176\u53c2\u6570\u3001\u7528\u6cd5\u793a\u4f8b\u7b49\u3002\u4ee5\u4e0b\u662f\u5bf9help()\u51fd\u6570\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001help()\u51fd\u6570\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>help()\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u5f3a\u5927\u5de5\u5177\uff0c\u7528\u4e8e\u83b7\u53d6\u4efb\u4f55\u6a21\u5757\u3001\u51fd\u6570\u3001\u7c7b\u3001\u65b9\u6cd5\u6216\u8005\u5bf9\u8c61\u7684\u6587\u6863\u5b57\u7b26\u4e32\u3002\u5b83\u7684\u57fa\u672c\u7528\u6cd5\u662f\u76f4\u63a5\u5728Python\u4ea4\u4e92\u6a21\u5f0f\u4e0b\u8c03\u7528\uff0c\u6216\u8005\u5728\u811a\u672c\u4e2d\u8c03\u7528\u3002\u5176\u57fa\u672c\u683c\u5f0f\u4e3a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">help(object)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>object<\/code>\u53ef\u4ee5\u662f\u4efb\u4f55Python\u5bf9\u8c61\uff0c\u5305\u62ec\u6a21\u5757\u3001\u7c7b\u3001\u65b9\u6cd5\u3001\u51fd\u6570\u3001\u5173\u952e\u5b57\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u83b7\u53d6\u6a21\u5757\u7684\u5e2e\u52a9\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u5f53\u4f60\u60f3\u8981\u4e86\u89e3\u67d0\u4e2a\u6a21\u5757\u7684\u8be6\u7ec6\u4fe1\u606f\u65f6\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f20\u5165\u6a21\u5757\u540d\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>help(math)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51famath\u6a21\u5757\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u6240\u6709\u53ef\u7528\u7684\u51fd\u6570\u548c\u5e38\u91cf\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u83b7\u53d6\u51fd\u6570\u6216\u65b9\u6cd5\u7684\u5e2e\u52a9\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u76f4\u63a5\u4f20\u5165\u51fd\u6570\u6216\u65b9\u6cd5\u7684\u540d\u79f0\u6765\u83b7\u53d6\u5176\u5e2e\u52a9\u4fe1\u606f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">help(print)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faprint\u51fd\u6570\u7684\u8be6\u7ec6\u6587\u6863\uff0c\u5305\u62ec\u53c2\u6570\u8bf4\u660e\u548c\u7528\u6cd5\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u83b7\u53d6\u7c7b\u7684\u5e2e\u52a9\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u4f60\u53ef\u4ee5\u4f20\u5165\u7c7b\u540d\u6765\u83b7\u53d6\u7c7b\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    &quot;&quot;&quot;This is a sample class.&quot;&quot;&quot;<\/p>\n<p>    def my_method(self):<\/p>\n<p>        &quot;&quot;&quot;This is a sample method.&quot;&quot;&quot;<\/p>\n<p>        pass<\/p>\n<p>help(MyClass)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faMyClass\u7c7b\u7684\u6587\u6863\uff0c\u5305\u62ec\u7c7b\u7684\u63cf\u8ff0\u548c\u6240\u6709\u65b9\u6cd5\u7684\u8bf4\u660e\u3002<\/p>\n<\/p>\n<p><h4>4\u3001\u83b7\u53d6\u5b9e\u4f8b\u5bf9\u8c61\u7684\u5e2e\u52a9\u4fe1\u606f<\/h4>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u4f20\u5165\u5b9e\u4f8b\u5bf9\u8c61\u6765\u83b7\u53d6\u5176\u5e2e\u52a9\u4fe1\u606f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_instance = MyClass()<\/p>\n<p>help(my_instance)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\u8be5\u5b9e\u4f8b\u5bf9\u8c61\u6240\u5c5e\u7c7b\u7684\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001pydoc\u6a21\u5757\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>pydoc\u6a21\u5757\u662fPython\u81ea\u5e26\u7684\u6587\u6863\u751f\u6210\u5de5\u5177\uff0c\u53ef\u4ee5\u751f\u6210HTML\u683c\u5f0f\u7684\u6587\u6863\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u3002\u5176\u57fa\u672c\u7528\u6cd5\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u8c03\u7528pydoc\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528pydoc<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u67d0\u4e2a\u6a21\u5757\u3001\u51fd\u6570\u3001\u7c7b\u6216\u65b9\u6cd5\u7684\u6587\u6863\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pydoc &lt;name&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pydoc math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51famath\u6a21\u5757\u7684\u8be6\u7ec6\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u751f\u6210HTML\u6587\u6863<\/h4>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u751f\u6210HTML\u683c\u5f0f\u7684\u6587\u6863\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">pydoc -w math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u751f\u6210math\u6a21\u5757\u7684HTML\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001IPython\u4e2d\u7684?\u548c??\u64cd\u4f5c\u7b26<\/h3>\n<\/p>\n<p><p>IPython\u662f\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684Python\u89e3\u91ca\u5668\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u589e\u5f3a\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>?<\/code>\u548c<code>??<\/code>\u64cd\u4f5c\u7b26\u6765\u67e5\u770b\u5e2e\u52a9\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528?\u64cd\u4f5c\u7b26<\/h4>\n<\/p>\n<p><p>\u5728IPython\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u5bf9\u8c61\u540e\u9762\u52a0\u4e0a<code>?<\/code>\u6765\u67e5\u770b\u5e2e\u52a9\u4fe1\u606f\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print?<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faprint\u51fd\u6570\u7684\u7b80\u8981\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528??\u64cd\u4f5c\u7b26<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u60f3\u8981\u67e5\u770b\u5bf9\u8c61\u7684\u6e90\u4ee3\u7801\uff0c\u53ef\u4ee5\u4f7f\u7528<code>??<\/code>\u64cd\u4f5c\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print??<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faprint\u51fd\u6570\u7684\u6e90\u4ee3\u7801\uff08\u5982\u679c\u53ef\u7528\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001Jupyter Notebook\u4e2d\u7684\u5feb\u6377\u952e<\/h3>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u4e2a\u57fa\u4e8eWeb\u7684\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u73af\u5883\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Shift+Tab\u5feb\u6377\u952e\u6765\u67e5\u770b\u5e2e\u52a9\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5355\u6b21Shift+Tab<\/h4>\n<\/p>\n<p><p>\u5728Jupyter Notebook\u4e2d\uff0c\u5c06\u5149\u6807\u653e\u5728\u5bf9\u8c61\u540d\u79f0\u540e\u9762\uff0c\u7136\u540e\u6309\u4e00\u6b21Shift+Tab\uff0c\u53ef\u4ee5\u5f39\u51fa\u4e00\u4e2a\u7b80\u8981\u7684\u5e2e\u52a9\u7a97\u53e3\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u8fde\u7eed\u6309Shift+Tab<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u8fde\u7eed\u6309\u4e24\u6b21Shift+Tab\uff0c\u5c06\u5f39\u51fa\u4e00\u4e2a\u66f4\u5927\u7684\u5e2e\u52a9\u7a97\u53e3\uff0c\u663e\u793a\u66f4\u591a\u7684\u6587\u6863\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u4f7f\u7528?\u548c??\u64cd\u4f5c\u7b26<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u4e2d\u540c\u6837\u652f\u6301IPython\u7684<code>?<\/code>\u548c<code>??<\/code>\u64cd\u4f5c\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print?<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faprint\u51fd\u6570\u7684\u7b80\u8981\u6587\u6863\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print??<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51faprint\u51fd\u6570\u7684\u6e90\u4ee3\u7801\uff08\u5982\u679c\u53ef\u7528\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5728\u7ebf\u6587\u6863\u548cIDE\u96c6\u6210<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4f60\u8fd8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u6587\u6863\uff0c\u6216\u8005\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u7684\u5e2e\u52a9\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1\u3001Python\u5b98\u65b9\u6587\u6863<\/h4>\n<\/p>\n<p><p>Python\u5b98\u65b9\u6587\u6863\u662f\u6700\u5168\u9762\u7684\u53c2\u8003\u8d44\u6599\uff0c\u5305\u542b\u4e86\u6240\u6709\u6a21\u5757\u3001\u51fd\u6570\u3001\u7c7b\u548c\u65b9\u6cd5\u7684\u8be6\u7ec6\u8bf4\u660e\u3002\u4f60\u53ef\u4ee5\u8bbf\u95ee\u4ee5\u4e0b\u7f51\u5740\u67e5\u770b\u5b98\u65b9\u6587\u6863\uff1a<\/p>\n<\/p>\n<p><p><a href=\"https:\/\/docs.python.org\/3\/\">Python \u5b98\u65b9\u6587\u6863<\/a><\/p>\n<\/p>\n<p><h4>2\u3001IDE\u4e2d\u7684\u5e2e\u52a9\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u8bb8\u591a\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684\u5e2e\u52a9\u529f\u80fd\u3002\u4f8b\u5982\uff0cPyCharm\u3001VS Code\u7b49IDE\u90fd\u63d0\u4f9b\u4e86\u67e5\u770b\u6587\u6863\u7684\u5feb\u6377\u952e\u548c\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u83b7\u53d6\u5e2e\u52a9\u4fe1\u606f\uff0c\u5305\u62echelp()\u51fd\u6570\u3001pydoc\u6a21\u5757\u3001IPython\u4e2d\u7684?\u548c??\u64cd\u4f5c\u7b26\u3001Jupyter Notebook\u4e2d\u7684Shift+Tab\u5feb\u6377\u952e\u7b49\u3002<\/strong>\u8fd9\u4e9b\u5de5\u5177\u548c\u529f\u80fd\u4f7f\u5f97Python\u7f16\u7a0b\u66f4\u52a0\u9ad8\u6548\u548c\u4fbf\u6377\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u638c\u63e1\u8fd9\u4e9b\u5e2e\u52a9\u5de5\u5177\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u5feb\u5730\u4e86\u89e3\u548c\u638c\u63e1Python\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u672c\u6587\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u7684\u5e2e\u52a9\u529f\u80fd\u3002\u5982\u679c\u4f60\u6709\u66f4\u591a\u7684\u95ee\u9898\u6216\u9700\u8981\u66f4\u8be6\u7ec6\u7684\u89e3\u91ca\uff0c\u6b22\u8fce\u67e5\u9605Python\u5b98\u65b9\u6587\u6863\u6216\u4f7f\u7528\u4e0a\u8ff0\u5de5\u5177\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbf\u95ee\u5b98\u65b9\u6587\u6863\uff1f<\/strong><br \/>Python\u7684\u5b98\u65b9\u6587\u6863\u63d0\u4f9b\u4e86\u5168\u9762\u7684\u5e2e\u52a9\u548c\u6307\u5bfc\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee<a href=\"https:\/\/docs.python.org\/\">Python\u5b98\u7f51<\/a>\u6765\u83b7\u53d6\u6700\u65b0\u7684\u6587\u6863\u3002\u7f51\u7ad9\u4e0a\u6709\u591a\u79cd\u8bed\u8a00\u7684\u7248\u672c\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u8bed\u8a00\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u4f7f\u7528help()\u51fd\u6570\u6709\u4ec0\u4e48\u597d\u5904\uff1f<\/strong><br \/>\u4f7f\u7528help()\u51fd\u6570\u53ef\u4ee5\u5feb\u901f\u83b7\u53d6\u6709\u5173Python\u5bf9\u8c61\u3001\u51fd\u6570\u6216\u6a21\u5757\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u5f53\u5728Python\u89e3\u91ca\u5668\u4e2d\u8f93\u5165help(\u5bf9\u8c61)\u65f6\uff0c\u60a8\u4f1a\u770b\u5230\u8be5\u5bf9\u8c61\u7684\u6587\u6863\u5b57\u7b26\u4e32\uff0c\u5e2e\u52a9\u60a8\u7406\u89e3\u5176\u7528\u6cd5\u548c\u529f\u80fd\u3002\u8fd9\u4e2a\u529f\u80fd\u5c24\u5176\u9002\u5408\u65b0\u624b\u548c\u9700\u8981\u5feb\u901f\u67e5\u627e\u4fe1\u606f\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728IDE\u4e2d\u627e\u5230Python\u7684\u5e2e\u52a9\u529f\u80fd\uff1f<\/strong><br \/>\u5927\u591a\u6570\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VS Code\u548cJupyter Notebook\u90fd\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684\u5e2e\u52a9\u529f\u80fd\u3002\u5728PyCharm\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u9009\u62e9\u4ee3\u7801\u4e2d\u7684\u5bf9\u8c61\u5e76\u6309\u4e0b\u5feb\u6377\u952e\uff08\u5982Ctrl+Q\uff09\u6765\u67e5\u770b\u6587\u6863\u3002\u5728VS Code\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u67e5\u770b\u201d\u83dc\u5355\u4e2d\u7684\u201c\u547d\u4ee4\u9762\u677f\u201d\uff0c\u7136\u540e\u8f93\u5165\u201cPython: Show Python Interactive Window\u201d\u6765\u8bbf\u95ee\u5e2e\u52a9\u4fe1\u606f\u3002\u8fd9\u4e9b\u5de5\u5177\u80fd\u5927\u5927\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6253\u5f00\u5e2e\u52a9\u7a97\u53e3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528help()\u51fd\u6570\u3001pydoc\u6a21\u5757\u3001IPython\u4e2d\u7684?\u548c??\u64cd\u4f5c [&hellip;]","protected":false},"author":3,"featured_media":1151787,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1151780"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1151780"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1151780\/revisions"}],"predecessor-version":[{"id":1151788,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1151780\/revisions\/1151788"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1151787"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1151780"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1151780"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1151780"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}