{"id":976802,"date":"2024-12-27T06:24:26","date_gmt":"2024-12-26T22:24:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/976802.html"},"modified":"2024-12-27T06:24:27","modified_gmt":"2024-12-26T22:24:27","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8cmd%e5%86%99%e5%85%a5python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/976802.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528cmd\u5199\u5165python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24202336\/b87cc2f8-f4d4-49d2-9283-75f00e799d3b.webp\" alt=\"\u5982\u4f55\u4f7f\u7528cmd\u5199\u5165python\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528cmd\u5199\u5165Python\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8Python\u89e3\u91ca\u5668\u3001\u7f16\u5199Python\u811a\u672c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u6267\u884c\u3001\u5728cmd\u4e2d\u4f20\u9012\u53c2\u6570\u7ed9Python\u811a\u672c\u3002<\/strong> \u5176\u4e2d\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u7f16\u5199Python\u811a\u672c\u6587\u4ef6\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u6267\u884c\u3002\u4f60\u53ef\u4ee5\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u7f16\u5199Python\u4ee3\u7801\u5e76\u4fdd\u5b58\u4e3a\u201c.py\u201d\u6587\u4ef6\uff0c\u7136\u540e\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528\u201cpython \u6587\u4ef6\u540d.py\u201d\u547d\u4ee4\u6765\u8fd0\u884c\u8fd9\u4e2a\u6587\u4ef6\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u89e3\u91ca\u5982\u4f55\u901a\u8fc7\u547d\u4ee4\u884c(cmd)\u6765\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u542f\u52a8Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u4f9b\u7528\u6237\u4f7f\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\uff08\u6216<code>python3<\/code>\uff0c\u53d6\u51b3\u4e8e\u4f60\u7684Python\u5b89\u88c5\uff09\uff0c\u4f60\u5c06\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u3002\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165Python\u4ee3\u7801\u5e76\u7acb\u5373\u770b\u5230\u7ed3\u679c\u3002\u8fd9\u5bf9\u4e8e\u6d4b\u8bd5\u5c0f\u6bb5\u4ee3\u7801\u6216\u8fdb\u884c\u7b80\u5355\u8ba1\u7b97\u975e\u5e38\u6709\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\&gt; python<\/p>\n<p>Python 3.x.x (default, Oct  7 2020, 16:01:05) <\/p>\n<p>[GCC 7.3.0] on win32<\/p>\n<p>Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<\/p>\n<p>&gt;&gt;&gt; print(&quot;Hello, World!&quot;)<\/p>\n<p>Hello, World!<\/p>\n<p>&gt;&gt;&gt; <\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9000\u51faPython\u4ea4\u4e92\u6a21\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u9000\u51fa\u4ea4\u4e92\u6a21\u5f0f\uff0c\u53ef\u4ee5\u8f93\u5165<code>exit()<\/code>\u6216\u4f7f\u7528\u5feb\u6377\u952e<code>Ctrl+Z<\/code>\u7136\u540e\u6309\u56de\u8f66\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u811a\u672c<\/p>\n<\/p>\n<p><p>\u7f16\u5199Python\u811a\u672c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884c\u662f\u4f7f\u7528Python\u7684\u5e38\u89c1\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7f16\u5199Python\u811a\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u3001Sublime Text\u3001Visual Studio Code\u7b49\uff09\u7f16\u5199Python\u4ee3\u7801\uff0c\u5e76\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>hello.py<\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython\u811a\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u6253\u5f00\u547d\u4ee4\u884c\uff0c\u5bfc\u822a\u5230\u5305\u542b<code>hello.py<\/code>\u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\&gt; cd path\\to\\your\\script<\/p>\n<p>C:\\path\\to\\your\\script&gt; python hello.py<\/p>\n<p>Hello, World!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8fd0\u884c\u4efb\u4f55Python\u811a\u672c\uff0c\u5e76\u67e5\u770b\u5176\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5728cmd\u4e2d\u4f20\u9012\u53c2\u6570\u7ed9Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5c06\u53c2\u6570\u4ece\u547d\u4ee4\u884c\u4f20\u9012\u7ed9Python\u811a\u672c\u3002Python\u7684<code>sys<\/code>\u6a21\u5757\u4f7f\u5f97\u8fd9\u4e00\u64cd\u4f5c\u53d8\u5f97\u7b80\u5355\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7f16\u5199\u80fd\u591f\u63a5\u6536\u53c2\u6570\u7684Python\u811a\u672c<\/strong><\/li>\n<\/ol>\n<p><p>\u4f8b\u5982\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>greet.py<\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>def greet(name):<\/p>\n<p>    print(f&quot;Hello, {name}!&quot;)<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    if len(sys.argv) &gt; 1:<\/p>\n<p>        greet(sys.argv[1])<\/p>\n<p>    else:<\/p>\n<p>        print(&quot;Please provide a name as an argument.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u901a\u8fc7\u547d\u4ee4\u884c\u4f20\u9012\u53c2\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u901a\u8fc7\u5728\u811a\u672c\u540d\u79f0\u540e\u6dfb\u52a0\u53c2\u6570\u6765\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\path\\to\\your\\script&gt; python greet.py Alice<\/p>\n<p>Hello, Alice!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u5411Python\u811a\u672c\u4f20\u9012\u4e0d\u540c\u7684\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u8f83\u5927\u7684Python\u9879\u76ee\u65f6\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u4f9d\u8d56\u9879\u662f\u4e00\u4e2a\u597d\u4e60\u60ef\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u5bfc\u822a\u5230\u4f60\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\path\\to\\your\\project&gt; python -m venv venv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/strong><\/li>\n<\/ol>\n<p><p>\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\path\\to\\your\\project&gt; venv\\Scripts\\activate<\/p>\n<p>(venv) C:\\path\\to\\your\\project&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u540e\uff0c\u6240\u6709\u901a\u8fc7pip\u5b89\u88c5\u7684\u5305\u5c06\u88ab\u5b89\u88c5\u5728\u865a\u62df\u73af\u5883\u4e2d\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u5b89\u88c5\u4f9d\u8d56\u9879<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u4f9d\u8d56\u9879\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">(venv) C:\\path\\to\\your\\project&gt; pip install requests<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u7ba1\u7406\u72ec\u7acb\u7684Python\u5305\u548c\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u8c03\u8bd5Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1Python\u811a\u672c\u65f6\uff0c\u8c03\u8bd5\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u6b65\u9aa4\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u4f7f\u7528Python\u7684\u8c03\u8bd5\u5de5\u5177\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528pdb\u6a21\u5757<\/strong><\/li>\n<\/ol>\n<p><p>Python\u81ea\u5e26\u7684pdb\u6a21\u5757\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u884c\u8c03\u8bd5\u3002\u5728\u9700\u8981\u8c03\u8bd5\u7684\u5730\u65b9\u63d2\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdb; pdb.set_trace()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u8fd0\u884c\u811a\u672c\uff0c\u7a0b\u5e8f\u5c06\u5728\u8be5\u884c\u6682\u505c\uff0c\u5141\u8bb8\u4f60\u68c0\u67e5\u53d8\u91cf\u548c\u6267\u884c\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u793a\u4f8b<\/strong><\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">def add(a, b):<\/p>\n<p>    import pdb; pdb.set_trace()<\/p>\n<p>    return a + b<\/p>\n<p>result = add(3, 4)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u9010\u6b65\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528cmd\u6267\u884c\u591a\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u591a\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528-e\u9009\u9879<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u7cfb\u7edf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>-c<\/code>\u9009\u9879\u6267\u884c\u591a\u884cPython\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">C:\\&gt; python -c &quot;print(&#39;Hello&#39;); print(&#39;World&#39;)&quot;<\/p>\n<p>Hello<\/p>\n<p>World<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u591a\u884c\u8f93\u5165<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u4f7f\u7528\u7f29\u8fdb\u6765\u8f93\u5165\u591a\u884c\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">&gt;&gt;&gt; for i in range(3):<\/p>\n<p>...     print(i)<\/p>\n<p>... <\/p>\n<p>0<\/p>\n<p>1<\/p>\n<p>2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u590d\u6742\u7684\u591a\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\u4f7f\u7528Python\u662f\u4e00\u79cd\u7075\u6d3b\u800c\u5f3a\u5927\u7684\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u4ece\u7b80\u5355\u7684\u811a\u672c\u6267\u884c\u5230\u590d\u6742\u7684\u9879\u76ee\u5f00\u53d1\u3002\u638c\u63e1\u5982\u4f55\u5728cmd\u4e2d\u542f\u52a8Python\u89e3\u91ca\u5668\u3001\u7f16\u5199\u548c\u8fd0\u884c\u811a\u672c\u3001\u4f20\u9012\u53c2\u6570\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u548c\u8c03\u8bd5\u4ee3\u7801\uff0c\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u4f60\u7684Python\u5f00\u53d1\u6548\u7387\u3002\u5728\u547d\u4ee4\u884c\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5feb\u901f\u6d4b\u8bd5\u4ee3\u7801\u7247\u6bb5\u3001\u5b89\u88c5\u548c\u7ba1\u7406\u4f9d\u8d56\u9879\uff0c\u5e76\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e2d\u65e0\u7f1d\u5207\u6362\uff0c\u8fd9\u4f7f\u5f97Python\u6210\u4e3a\u4e00\u79cd\u975e\u5e38\u9002\u5408\u811a\u672c\u7f16\u5199\u548c\u81ea\u52a8\u5316\u4efb\u52a1\u7684\u7f16\u7a0b\u8bed\u8a00\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728CMD\u4e2d\u8fd0\u884cPython\u811a\u672c\uff1f<\/strong><br \/>\u8981\u5728CMD\u4e2d\u8fd0\u884cPython\u811a\u672c\uff0c\u9996\u5148\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5Python\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u6253\u5f00CMD\u7a97\u53e3\uff0c\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u5bfc\u822a\u5230\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u7136\u540e\u8f93\u5165<code>python script_name.py<\/code>\u6765\u6267\u884c\u4f60\u7684Python\u811a\u672c\u3002\u786e\u4fdd\u5c06<code>script_name.py<\/code>\u66ff\u6362\u4e3a\u4f60\u7684\u5b9e\u9645\u6587\u4ef6\u540d\u3002<\/p>\n<p><strong>\u5728CMD\u4e2d\u5982\u4f55\u5b89\u88c5Python\u5e93\uff1f<\/strong><br \/>\u5728CMD\u4e2d\u5b89\u88c5Python\u5e93\u975e\u5e38\u7b80\u5355\u3002\u4f7f\u7528<code>pip<\/code>\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\u3002\u9996\u5148\u6253\u5f00CMD\u7a97\u53e3\uff0c\u7136\u540e\u8f93\u5165<code>pip install library_name<\/code>\uff0c\u5c06<code>library_name<\/code>\u66ff\u6362\u4e3a\u4f60\u60f3\u8981\u5b89\u88c5\u7684\u5e93\u7684\u540d\u79f0\u3002\u5982\u679c\u4f60\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884cCMD\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728CMD\u4e2d\u8c03\u8bd5Python\u4ee3\u7801\uff1f<\/strong><br \/>\u4f7f\u7528CMD\u8c03\u8bd5Python\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u5f15\u5165<code>pdb<\/code>\u6a21\u5757\u5b9e\u73b0\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u6dfb\u52a0<code>import pdb; pdb.set_trace()<\/code>\u6765\u8bbe\u7f6e\u65ad\u70b9\u3002\u8fd0\u884c\u811a\u672c\u65f6\uff0cCMD\u5c06\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\uff0c\u4f60\u53ef\u4ee5\u9010\u884c\u6267\u884c\u4ee3\u7801\uff0c\u67e5\u770b\u53d8\u91cf\u7684\u503c\uff0c\u4ee5\u53ca\u8fdb\u884c\u5176\u4ed6\u8c03\u8bd5\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528cmd\u5199\u5165Python\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u542f\u52a8Python\u89e3\u91ca\u5668\u3001\u7f16\u5199Python\u811a\u672c\u5e76\u901a\u8fc7\u547d\u4ee4\u884c\u6267\u884c\u3001 [&hellip;]","protected":false},"author":3,"featured_media":976807,"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\/976802"}],"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=976802"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976802\/revisions"}],"predecessor-version":[{"id":976808,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976802\/revisions\/976808"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/976807"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=976802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=976802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=976802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}