{"id":1062472,"date":"2024-12-31T15:52:06","date_gmt":"2024-12-31T07:52:06","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1062472.html"},"modified":"2024-12-31T15:52:10","modified_gmt":"2024-12-31T07:52:10","slug":"%e5%a6%82%e4%bd%95%e7%94%a8%e8%ae%b0%e4%ba%8b%e6%9c%ac%e5%86%99python%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1062472.html","title":{"rendered":"\u5982\u4f55\u7528\u8bb0\u4e8b\u672c\u5199python\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/a6bda2c3-f851-49e4-a916-0a130b71dfd6.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528\u8bb0\u4e8b\u672c\u5199python\u7a0b\u5e8f\" \/><\/p>\n<p><p> <strong>\u8981\u7528\u8bb0\u4e8b\u672c\u5199Python\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u6253\u5f00\u8bb0\u4e8b\u672c\u3001\u7f16\u5199Python\u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u3001\u8fd0\u884c\u7a0b\u5e8f\u3002<\/strong> \u5176\u4e2d\uff0c\u4fdd\u5b58\u6587\u4ef6\u8fd9\u4e00\u6b65\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u8bb0\u4e8b\u672c\u9ed8\u8ba4\u4fdd\u5b58\u4e3a.txt\u6587\u4ef6\uff0c\u9700\u8981\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a.py\u6269\u5c55\u540d\uff0c\u4ee5\u4fbfPython\u89e3\u91ca\u5668\u80fd\u591f\u8bc6\u522b\u548c\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6253\u5f00\u8bb0\u4e8b\u672c<\/h3>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6253\u5f00\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u7684\u8bb0\u4e8b\u672c\u7a0b\u5e8f\u3002\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c\u5f00\u59cb\u201d\u83dc\u5355\u641c\u7d22\u201c\u8bb0\u4e8b\u672c\u201d\u5e76\u6253\u5f00\u3002\u5728macOS\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5982TextEdit\u6216Gedit\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7f16\u5199Python\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u5728\u8bb0\u4e8b\u672c\u4e2d\u7f16\u5199\u4f60\u7684Python\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Hello World\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8bb0\u4e8b\u672c\u662f\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5b83\u6ca1\u6709\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u5b8c\u6210\u7b49\u529f\u80fd\uff0c\u56e0\u6b64\u4f60\u9700\u8981\u975e\u5e38\u6ce8\u610f\u4ee3\u7801\u7684\u6b63\u786e\u6027\u548c\u7f29\u8fdb\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4fdd\u5b58\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u8fd9\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\u3002\u5728\u8bb0\u4e8b\u672c\u4e2d\uff0c\u70b9\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u7136\u540e\u9009\u62e9\u201c\u53e6\u5b58\u4e3a\u201d\u3002\u5728\u5f39\u51fa\u7684\u5bf9\u8bdd\u6846\u4e2d\uff0c\u9009\u62e9\u4f60\u60f3\u8981\u4fdd\u5b58\u6587\u4ef6\u7684\u4f4d\u7f6e\u3002\u63a5\u4e0b\u6765\uff0c\u8f93\u5165\u6587\u4ef6\u540d\uff0c\u5e76\u786e\u4fdd\u6587\u4ef6\u6269\u5c55\u540d\u662f.py\uff0c\u4f8b\u5982hello.py\u3002<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u786e\u4fdd\u6587\u4ef6\u4fdd\u5b58\u4e3a.py\u6269\u5c55\u540d\uff0c\u8bf7\u5c06\u201c\u4fdd\u5b58\u7c7b\u578b\u201d\u8bbe\u7f6e\u4e3a\u201c\u6240\u6709\u6587\u4ef6(<em>.<\/em>)\u201d\uff0c\u7136\u540e\u5728\u6587\u4ef6\u540d\u4e2d\u624b\u52a8\u6dfb\u52a0.py\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8fd0\u884c\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u8fd0\u884c\u4f60\u7684Python\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff08\u5728Windows\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c\u5f00\u59cb\u201d\u83dc\u5355\u641c\u7d22\u201ccmd\u201d\u5e76\u6253\u5f00\uff1b\u5728macOS\u548cLinux\u4e2d\uff0c\u6253\u5f00\u7ec8\u7aef\uff09\u3002<\/li>\n<li>\u5bfc\u822a\u5230\u4f60\u4fdd\u5b58Python\u6587\u4ef6\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6587\u4ef6\u4fdd\u5b58\u5728\u684c\u9762\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a\n<pre><code class=\"language-bash\">cd Desktop<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u4f7f\u7528Python\u89e3\u91ca\u5668\u8fd0\u884c\u4f60\u7684\u7a0b\u5e8f\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5e76\u6309\u4e0b\u56de\u8f66\uff1a\n<pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fPython 3\uff0c\u53ef\u80fd\u9700\u8981\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code class=\"language-bash\">python3 hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u7f16\u5199\u66f4\u590d\u6742\u7684\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><h4>1\u3001\u53d8\u91cf\u548c\u6570\u636e\u7c7b\u578b<\/h4>\n<\/p>\n<p><p>Python\u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u5b57\u7b26\u4e32\u548c\u5e03\u5c14\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6574\u6570<\/p>\n<p>a = 10<\/p>\n<h2><strong>\u6d6e\u70b9\u6570<\/strong><\/h2>\n<p>b = 3.14<\/p>\n<h2><strong>\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>c = &quot;Hello, World!&quot;<\/p>\n<h2><strong>\u5e03\u5c14\u503c<\/strong><\/h2>\n<p>d = True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u63a7\u5236\u7ed3\u6784<\/h4>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u63a7\u5236\u7ed3\u6784\uff0c\u5305\u62ec\u6761\u4ef6\u8bed\u53e5\u548c\u5faa\u73af\u8bed\u53e5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6761\u4ef6\u8bed\u53e5<\/p>\n<p>if a &gt; 5:<\/p>\n<p>    print(&quot;a\u5927\u4e8e5&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;a\u5c0f\u4e8e\u6216\u7b49\u4e8e5&quot;)<\/p>\n<h2><strong>\u5faa\u73af\u8bed\u53e5<\/strong><\/h2>\n<p>for i in range(5):<\/p>\n<p>    print(i)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u51fd\u6570\u662f\u7ec4\u7ec7\u4ee3\u7801\u7684\u57fa\u672c\u5355\u5143\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b9a\u4e49\u548c\u8c03\u7528\u51fd\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u51fd\u6570<\/p>\n<p>def greet(name):<\/p>\n<p>    print(f&quot;Hello, {name}!&quot;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>greet(&quot;Alice&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u6a21\u5757\u548c\u5305<\/h4>\n<\/p>\n<p><p>Python\u6709\u4e30\u5bcc\u7684\u6807\u51c6\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u5bfc\u5165\u6a21\u5757\u548c\u5305\u6765\u6269\u5c55\u7a0b\u5e8f\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5bfc\u5165math\u6a21\u5757<\/p>\n<p>import math<\/p>\n<h2><strong>\u4f7f\u7528math\u6a21\u5757\u4e2d\u7684\u51fd\u6570<\/strong><\/h2>\n<p>result = math.sqrt(16)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5\u3001\u6587\u4ef6\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>Python\u53ef\u4ee5\u8f7b\u677e\u5730\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5199\u5165\u6587\u4ef6<\/p>\n<p>with open(&quot;output.txt&quot;, &quot;w&quot;) as file:<\/p>\n<p>    file.write(&quot;Hello, World!&quot;)<\/p>\n<h2><strong>\u8bfb\u53d6\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&quot;output.txt&quot;, &quot;r&quot;) as file:<\/p>\n<p>    content = file.read()<\/p>\n<p>    print(content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f<\/h3>\n<\/p>\n<p><h4>1\u3001\u4f7f\u7528print\u8bed\u53e5\u8c03\u8bd5<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528print\u8bed\u53e5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4e86\u89e3\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u548c\u53d8\u91cf\u7684\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    result = 1<\/p>\n<p>    for i in range(1, n + 1):<\/p>\n<p>        result *= i<\/p>\n<p>        print(f&quot;i={i}, result={result}&quot;)  # \u8c03\u8bd5\u4fe1\u606f<\/p>\n<p>    return result<\/p>\n<p>print(factorial(5))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528print\u8bed\u53e5\uff0c\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528Python\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u5982pdb\u6a21\u5757\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528pdb\u8c03\u8bd5\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdb<\/p>\n<p>def factorial(n):<\/p>\n<p>    pdb.set_trace()  # \u8bbe\u7f6e\u65ad\u70b9<\/p>\n<p>    result = 1<\/p>\n<p>    for i in range(1, n + 1):<\/p>\n<p>        result *= i<\/p>\n<p>    return result<\/p>\n<p>print(factorial(5))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u7a0b\u5e8f\u6267\u884c\u5230pdb.set_trace()\u65f6\uff0c\u4f1a\u6682\u505c\u5e76\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u8c03\u8bd5\u547d\u4ee4\uff0c\u5982n\uff08\u5355\u6b65\u6267\u884c\uff09\u3001c\uff08\u7ee7\u7eed\u6267\u884c\uff09\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u8bb0\u4e8b\u672c\u7f16\u5199Python\u7a0b\u5e8f\u662f\u4e00\u4e2a\u7b80\u5355\u4e14\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u7279\u522b\u9002\u5408\u521d\u5b66\u8005\u3002\u867d\u7136\u8bb0\u4e8b\u672c\u6ca1\u6709\u9ad8\u7ea7\u6587\u672c\u7f16\u8f91\u5668\u7684\u529f\u80fd\uff0c\u4f46\u5b83\u53ef\u4ee5\u5e2e\u52a9\u4f60\u4e13\u6ce8\u4e8e\u4ee3\u7801\u672c\u8eab\uff0c\u907f\u514d\u53d7\u5230\u5176\u4ed6\u529f\u80fd\u7684\u5e72\u6270\u3002\u901a\u8fc7\u638c\u63e1\u57fa\u672c\u7684Python\u8bed\u6cd5\u3001\u63a7\u5236\u7ed3\u6784\u3001\u51fd\u6570\u3001\u6a21\u5757\u548c\u6587\u4ef6\u64cd\u4f5c\uff0c\u4f60\u53ef\u4ee5\u7f16\u5199\u51fa\u529f\u80fd\u5f3a\u5927\u7684\u7a0b\u5e8f\u3002\u8bb0\u4f4f\uff0c\u8c03\u8bd5\u548c\u4f18\u5316\u7a0b\u5e8f\u662f\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u4e0d\u53ef\u6216\u7f3a\u7684\u4e00\u90e8\u5206\uff0c\u4f7f\u7528print\u8bed\u53e5\u548c\u8c03\u8bd5\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u627e\u5230\u5e76\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u8bb0\u4e8b\u672c\u4e2d\u521b\u5efa\u548c\u4fdd\u5b58Python\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728\u8bb0\u4e8b\u672c\u4e2d\u7f16\u5199Python\u7a0b\u5e8f\u7684\u6b65\u9aa4\u5f88\u7b80\u5355\u3002\u9996\u5148\uff0c\u6253\u5f00\u8bb0\u4e8b\u672c\u5e94\u7528\u7a0b\u5e8f\u3002\u63a5\u7740\uff0c\u8f93\u5165\u4f60\u7684Python\u4ee3\u7801\uff0c\u4f8b\u5982\u7b80\u5355\u7684\u201cprint(&#39;Hello, World!&#39;)\u201d\u3002\u7f16\u5199\u5b8c\u6210\u540e\uff0c\u9009\u62e9\u201c\u6587\u4ef6\u201d\u83dc\u5355\u4e2d\u7684\u201c\u53e6\u5b58\u4e3a\u201d\uff0c\u7136\u540e\u5728\u6587\u4ef6\u540d\u540e\u6dfb\u52a0\u201c.py\u201d\u6269\u5c55\u540d\uff0c\u4f8b\u5982\u201cmy_program.py\u201d\u3002\u786e\u4fdd\u5728\u4fdd\u5b58\u7c7b\u578b\u4e2d\u9009\u62e9\u201c\u6240\u6709\u6587\u4ef6\u201d\uff0c\u8fd9\u6837\u8bb0\u4e8b\u672c\u5c31\u4f1a\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3aPython\u811a\u672c\u3002<\/p>\n<p><strong>\u8bb0\u4e8b\u672c\u7f16\u5199\u7684Python\u7a0b\u5e8f\u5982\u4f55\u8fd0\u884c\uff1f<\/strong><br \/>\u8981\u8fd0\u884c\u5728\u8bb0\u4e8b\u672c\u4e2d\u7f16\u5199\u7684Python\u7a0b\u5e8f\uff0c\u60a8\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5Python\u73af\u5883\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u5bfc\u822a\u5230\u7a0b\u5e8f\u6240\u5728\u7684\u76ee\u5f55\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u547d\u4ee4<code>cd \u8def\u5f84<\/code>\u8fdb\u5165\u6587\u4ef6\u5939\u3002\u7136\u540e\u8f93\u5165<code>python my_program.py<\/code>\uff0c\u66ff\u6362\u201cmy_program.py\u201d\u4e3a\u4f60\u7684\u6587\u4ef6\u540d\uff0c\u6309\u4e0b\u56de\u8f66\u952e\u5373\u53ef\u6267\u884c\u7a0b\u5e8f\u3002<\/p>\n<p><strong>\u8bb0\u4e8b\u672c\u7f16\u5199Python\u7a0b\u5e8f\u662f\u5426\u6709\u9650\u5236\uff1f<\/strong><br \/>\u867d\u7136\u53ef\u4ee5\u5728\u8bb0\u4e8b\u672c\u4e2d\u7f16\u5199Python\u7a0b\u5e8f\uff0c\u4f46\u8be5\u5de5\u5177\u7f3a\u4e4f\u4ee3\u7801\u9ad8\u4eae\u3001\u81ea\u52a8\u8865\u5168\u548c\u8bed\u6cd5\u68c0\u67e5\u7b49\u529f\u80fd\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u7f16\u7a0b\u6548\u7387\u8f83\u4f4e\u3002\u5bf9\u4e8e\u590d\u6742\u7684\u9879\u76ee\uff0c\u5efa\u8bae\u4f7f\u7528\u529f\u80fd\u66f4\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u5982Visual Studio Code\u6216PyCharm\uff0c\u4ee5\u63d0\u4f9b\u66f4\u597d\u7684\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528\u8bb0\u4e8b\u672c\u5199Python\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u6253\u5f00\u8bb0\u4e8b\u672c\u3001\u7f16\u5199Python\u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u3001\u8fd0\u884c\u7a0b\u5e8f\u3002 \u5176 [&hellip;]","protected":false},"author":3,"featured_media":1062489,"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\/1062472"}],"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=1062472"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062472\/revisions"}],"predecessor-version":[{"id":1062492,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062472\/revisions\/1062492"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1062489"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1062472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1062472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1062472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}