{"id":1137335,"date":"2025-01-08T21:47:18","date_gmt":"2025-01-08T13:47:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1137335.html"},"modified":"2025-01-08T21:47:21","modified_gmt":"2025-01-08T13:47:21","slug":"icode%e4%b8%adpython%e7%ac%ac%e4%b8%80%e5%85%b3%e5%a6%82%e4%bd%95%e5%81%9a","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1137335.html","title":{"rendered":"icode\u4e2dpython\u7b2c\u4e00\u5173\u5982\u4f55\u505a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101207\/28bf71f4-25d5-441d-a620-0eb6b90e783d.webp\" alt=\"icode\u4e2dpython\u7b2c\u4e00\u5173\u5982\u4f55\u505a\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\uff1a\u8be6\u7ec6\u6307\u5357<\/strong><\/p>\n<\/p>\n<p><p><strong>\u8981\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\uff0c\u5173\u952e\u5728\u4e8e\u7406\u89e3\u9898\u76ee\u8981\u6c42\u3001\u638c\u63e1\u57fa\u672c\u7684Python\u8bed\u6cd5\u3001\u4ee5\u53ca\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u548c\u8c03\u8bd5\u3002<\/strong> \u5176\u4e2d\uff0c\u6700\u91cd\u8981\u7684\u4e00\u70b9\u662f<strong>\u7406\u89e3\u9898\u76ee\u8981\u6c42<\/strong>\uff0c\u56e0\u4e3a\u53ea\u6709\u5728\u7406\u89e3\u9898\u76ee\u8981\u6c42\u7684\u57fa\u7840\u4e0a\uff0c\u624d\u80fd\u7f16\u5199\u51fa\u6b63\u786e\u7684\u4ee3\u7801\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u5c55\u5f00\u8ba8\u8bba\u5982\u4f55\u901a\u8fc7\u8fd9\u4e09\u65b9\u9762\u6765\u987a\u5229\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e00\u3001\u7406\u89e3\u9898\u76ee\u8981\u6c42<\/h2>\n<\/p>\n<p><h3>1. \u9605\u8bfb\u9898\u76ee\u8bf4\u660e<\/h3>\n<\/p>\n<p><p>\u5728iCode\u7684Python\u7b2c\u4e00\u5173\uff0c\u9898\u76ee\u901a\u5e38\u4f1a\u63d0\u4f9b\u4e00\u4e2a\u8be6\u7ec6\u7684\u8bf4\u660e\uff0c\u63cf\u8ff0\u9700\u8981\u5b8c\u6210\u7684\u4efb\u52a1\u3002\u8ba4\u771f\u9605\u8bfb\u9898\u76ee\u8bf4\u660e\uff0c\u786e\u4fdd\u4f60\u7406\u89e3\u4e86\u6240\u6709\u8981\u6c42\u3002\u4f8b\u5982\uff0c\u9898\u76ee\u53ef\u80fd\u8981\u6c42\u4f60\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u9700\u8981\u63a5\u53d7\u8f93\u5165\u5e76\u8fd4\u56de\u7279\u5b9a\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><h3>2. \u786e\u5b9a\u8f93\u5165\u8f93\u51fa\u683c\u5f0f<\/h3>\n<\/p>\n<p><p>\u660e\u786e\u9898\u76ee\u7684\u8f93\u5165\u548c\u8f93\u51fa\u683c\u5f0f\u975e\u5e38\u91cd\u8981\u3002\u901a\u5e38\u9898\u76ee\u4f1a\u8bf4\u660e\u8f93\u5165\u662f\u4ec0\u4e48\u6837\u7684\u6570\u636e\u7c7b\u578b\uff08\u6bd4\u5982\u6574\u6570\u3001\u5b57\u7b26\u4e32\u3001\u5217\u8868\u7b49\uff09\uff0c\u4ee5\u53ca\u8f93\u51fa\u5e94\u8be5\u662f\u4ec0\u4e48\u6837\u5b50\u3002\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u80fd\u591f\u5904\u7406\u8fd9\u4e9b\u8f93\u5165\u5e76\u751f\u6210\u6b63\u786e\u7684\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>3. \u7406\u89e3\u8fb9\u754c\u6761\u4ef6<\/h3>\n<\/p>\n<p><p>\u5f88\u591a\u9898\u76ee\u4f1a\u6709\u4e00\u4e9b\u7279\u6b8a\u7684\u8fb9\u754c\u6761\u4ef6\uff0c\u6bd4\u5982\u8f93\u5165\u4e3a\u7a7a\u3001\u8f93\u5165\u4e3a\u6700\u5927\u503c\u6216\u6700\u5c0f\u503c\u7b49\u3002\u786e\u4fdd\u4f60\u7406\u89e3\u5e76\u8003\u8651\u4e86\u8fd9\u4e9b\u8fb9\u754c\u6761\u4ef6\uff0c\u56e0\u4e3a\u5ffd\u7565\u8fd9\u4e9b\u6761\u4ef6\u53ef\u80fd\u5bfc\u81f4\u4ee3\u7801\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u5931\u8d25\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e8c\u3001\u638c\u63e1\u57fa\u672c\u7684Python\u8bed\u6cd5<\/h2>\n<\/p>\n<p><h3>1. \u6570\u636e\u7c7b\u578b\u548c\u53d8\u91cf<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5e38\u89c1\u7684\u6570\u636e\u7c7b\u578b\u5305\u62ec\u6574\u6570\uff08int\uff09\u3001\u6d6e\u70b9\u6570\uff08float\uff09\u3001\u5b57\u7b26\u4e32\uff08str\uff09\u3001\u5217\u8868\uff08list\uff09\u3001\u5b57\u5178\uff08dict\uff09\u7b49\u3002\u638c\u63e1\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\u53ca\u5176\u64cd\u4f5c\u65b9\u6cd5\u662f\u901a\u8fc7Python\u7b2c\u4e00\u5173\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>num = 10  # \u6574\u6570<\/p>\n<p>name = &quot;Alice&quot;  # \u5b57\u7b26\u4e32<\/p>\n<p>numbers = [1, 2, 3, 4, 5]  # \u5217\u8868<\/p>\n<p>person = {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25}  # \u5b57\u5178<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u63a7\u5236\u6d41\u8bed\u53e5<\/h3>\n<\/p>\n<p><p>\u63a7\u5236\u6d41\u8bed\u53e5\u5305\u62ec\u6761\u4ef6\u5224\u65ad\uff08if-else\uff09\u3001\u5faa\u73af\uff08for\u3001while\uff09\u7b49\u3002\u8fd9\u4e9b\u8bed\u53e5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b9e\u73b0\u590d\u6742\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>if num &gt; 5:<\/p>\n<p>    print(&quot;num is greater than 5&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;num is 5 or less&quot;)<\/p>\n<p>for number in numbers:<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3. \u51fd\u6570\u5b9a\u4e49\u548c\u8c03\u7528<\/h3>\n<\/p>\n<p><p>\u51fd\u6570\u662fPython\u7f16\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u6982\u5ff5\uff0c\u5b83\u4eec\u53ef\u4ee5\u5e2e\u52a9\u4f60\u7ec4\u7ec7\u4ee3\u7801\u3001\u5b9e\u73b0\u4ee3\u7801\u590d\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>def greet(name):<\/p>\n<p>    return f&quot;Hello, {name}!&quot;<\/p>\n<p>print(greet(&quot;Alice&quot;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4. \u5e38\u7528\u5185\u7f6e\u51fd\u6570\u548c\u5e93<\/h3>\n<\/p>\n<p><p>\u638c\u63e1\u4e00\u4e9b\u5e38\u7528\u7684\u5185\u7f6e\u51fd\u6570\uff08\u5982len\u3001sum\u3001min\u3001max\u7b49\uff09\u548c\u5e93\uff08\u5982math\u3001random\u7b49\uff09\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import math<\/p>\n<p>print(math.sqrt(16))  # \u8f93\u51fa\uff1a4.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<hr>\n<p><h2>\u4e09\u3001\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u548c\u8c03\u8bd5<\/h2>\n<\/p>\n<p><h3>1. \u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b<\/h3>\n<\/p>\n<p><p>\u5728\u5b8c\u6210\u4ee3\u7801\u7f16\u5199\u540e\uff0c\u7f16\u5199\u591a\u4e2a\u6d4b\u8bd5\u7528\u4f8b\u6765\u9a8c\u8bc1\u4ee3\u7801\u7684\u6b63\u786e\u6027\u3002\u8fd9\u4e9b\u6d4b\u8bd5\u7528\u4f8b\u5e94\u8be5\u8986\u76d6\u9898\u76ee\u7684\u6240\u6709\u8981\u6c42\u548c\u8fb9\u754c\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>def test_greet():<\/p>\n<p>    assert greet(&quot;Alice&quot;) == &quot;Hello, Alice!&quot;<\/p>\n<p>    assert greet(&quot;Bob&quot;) == &quot;Hello, Bob!&quot;<\/p>\n<p>    print(&quot;All tests passed!&quot;)<\/p>\n<p>test_greet()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u8c03\u8bd5\u5de5\u5177\uff08\u5982pdb\u3001debugging\u6a21\u5757\u7b49\uff09\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u67e5\u627e\u548c\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import pdb<\/p>\n<p>def buggy_function(x):<\/p>\n<p>    pdb.set_trace()  # \u8bbe\u7f6e\u65ad\u70b9<\/p>\n<p>    return x + 10<\/p>\n<p>print(buggy_function(5))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3. \u9010\u6b65\u6267\u884c\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u9010\u6b65\u6267\u884c\u4ee3\u7801\uff0c\u53ef\u4ee5\u66f4\u6e05\u695a\u5730\u7406\u89e3\u4ee3\u7801\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u5e76\u53d1\u73b0\u6f5c\u5728\u7684\u95ee\u9898\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u7684\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff08\u5982IPython\uff09\u6765\u9010\u6b65\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>for number in numbers:<\/p>\n<p>    print(number)<\/p>\n<p>    # \u53ef\u4ee5\u5728\u8fd9\u91cc\u8bbe\u7f6e\u65ad\u70b9\uff0c\u9010\u6b65\u67e5\u770b\u6bcf\u4e2anumber\u7684\u503c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<hr>\n<p><h2>\u56db\u3001\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<\/p>\n<p><h3>1. \u8f93\u5165\u8f93\u51fa\u4e0d\u5339\u914d<\/h3>\n<\/p>\n<p><p>\u5728iCode\u7684Python\u7b2c\u4e00\u5173\u4e2d\uff0c\u6700\u5e38\u89c1\u7684\u95ee\u9898\u4e4b\u4e00\u662f\u8f93\u5165\u8f93\u51fa\u683c\u5f0f\u4e0d\u5339\u914d\u3002\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u4e25\u683c\u6309\u7167\u9898\u76ee\u7684\u8981\u6c42\u5904\u7406\u8f93\u5165\u5e76\u751f\u6210\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><h3>2. \u8fb9\u754c\u6761\u4ef6\u5904\u7406\u4e0d\u5f53<\/h3>\n<\/p>\n<p><p>\u5ffd\u7565\u8fb9\u754c\u6761\u4ef6\u662f\u5bfc\u81f4\u4ee3\u7801\u5931\u8d25\u7684\u53e6\u4e00\u4e2a\u5e38\u89c1\u539f\u56e0\u3002\u4ed4\u7ec6\u9605\u8bfb\u9898\u76ee\u8bf4\u660e\uff0c\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u80fd\u591f\u6b63\u786e\u5904\u7406\u6240\u6709\u53ef\u80fd\u7684\u8fb9\u754c\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>3. \u903b\u8f91\u9519\u8bef<\/h3>\n<\/p>\n<p><p>\u903b\u8f91\u9519\u8bef\u662f\u6307\u4ee3\u7801\u7684\u903b\u8f91\u4e0d\u7b26\u5408\u9898\u76ee\u7684\u8981\u6c42\u3002\u901a\u8fc7\u7f16\u5199\u66f4\u591a\u7684\u6d4b\u8bd5\u7528\u4f8b\u5e76\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u53d1\u73b0\u5e76\u4fee\u590d\u903b\u8f91\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h3>4. \u6027\u80fd\u95ee\u9898<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4ee3\u7801\u7684\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u901a\u8fc7\u9898\u76ee\u7684\u969c\u788d\u3002\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u5728\u5904\u7406\u5927\u89c4\u6a21\u8f93\u5165\u65f6\u4ecd\u7136\u9ad8\u6548\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e\u6a21\u5757\uff08\u5982timeit\uff09\u6765\u6d4b\u8bd5\u4ee3\u7801\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\uff0c\u5173\u952e\u5728\u4e8e<strong>\u7406\u89e3\u9898\u76ee\u8981\u6c42<\/strong>\u3001<strong>\u638c\u63e1\u57fa\u672c\u7684Python\u8bed\u6cd5<\/strong>\u3001<strong>\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\u548c\u8c03\u8bd5<\/strong>\u3002\u901a\u8fc7\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u80fd\u591f\u6b63\u786e\u5904\u7406\u9898\u76ee\u8981\u6c42\uff0c\u5e76\u901a\u8fc7\u6240\u6709\u6d4b\u8bd5\u7528\u4f8b\u3002\u5e0c\u671b\u8fd9\u7bc7\u8be6\u7ec6\u6307\u5357\u80fd\u591f\u5e2e\u52a9\u4f60\u987a\u5229\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728icode\u4e2d\u6ce8\u518c\u8d26\u53f7\u4ee5\u5f00\u59cbPython\u5b66\u4e60\uff1f<\/strong><br \/>\u5728icode\u5e73\u53f0\u4e0a\u6ce8\u518c\u8d26\u53f7\u975e\u5e38\u7b80\u5355\u3002\u4f60\u53ea\u9700\u8bbf\u95eeicode\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u70b9\u51fb\u6ce8\u518c\u6309\u94ae\uff0c\u586b\u5199\u6240\u9700\u7684\u4e2a\u4eba\u4fe1\u606f\uff0c\u4f8b\u5982\u90ae\u7bb1\u3001\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u5b8c\u6210\u540e\uff0c\u4f60\u4f1a\u6536\u5230\u4e00\u5c01\u9a8c\u8bc1\u90ae\u4ef6\uff0c\u6309\u7167\u90ae\u4ef6\u4e2d\u7684\u6307\u793a\u786e\u8ba4\u8d26\u53f7\u3002\u6ce8\u518c\u6210\u529f\u540e\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u63a2\u7d22Python\u7684\u5b66\u4e60\u8d44\u6e90\u548c\u8bfe\u7a0b\u3002<\/p>\n<p><strong>\u5728icode\u4e0a\u5b66\u4e60Python\u9700\u8981\u54ea\u4e9b\u57fa\u7840\u77e5\u8bc6\uff1f<\/strong><br \/>\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u5b66\u4e60Python\u5e76\u4e0d\u8981\u6c42\u5177\u5907\u7f16\u7a0b\u7ecf\u9a8c\u3002\u4f46\u4e86\u89e3\u4e00\u4e9b\u57fa\u672c\u7684\u8ba1\u7b97\u673a\u64cd\u4f5c\u548c\u903b\u8f91\u601d\u7ef4\u80fd\u529b\u4f1a\u6709\u5e2e\u52a9\u3002\u4f60\u53ef\u4ee5\u4ece\u57fa\u7840\u8bed\u6cd5\u3001\u6570\u636e\u7c7b\u578b\u548c\u63a7\u5236\u7ed3\u6784\u7b49\u5185\u5bb9\u5165\u624b\uff0c\u9010\u6b65\u638c\u63e1Python\u7684\u6838\u5fc3\u6982\u5ff5\u3002icode\u5e73\u53f0\u63d0\u4f9b\u4e30\u5bcc\u7684\u6559\u7a0b\u548c\u7ec3\u4e60\uff0c\u5e2e\u52a9\u4f60\u5728\u5b9e\u8df5\u4e2d\u5de9\u56fa\u6240\u5b66\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728icode\u4e2d\u89e3\u51b3Python\u7f16\u7a0b\u9047\u5230\u7684\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u5b66\u4e60\u8fc7\u7a0b\u4e2d\uff0c\u9047\u5230\u95ee\u9898\u662f\u5e38\u89c1\u7684\u73b0\u8c61\u3002icode\u63d0\u4f9b\u4e86\u5728\u7ebf\u793e\u533a\u548c\u8bba\u575b\uff0c\u4f60\u53ef\u4ee5\u5728\u8fd9\u91cc\u63d0\u51fa\u95ee\u9898\uff0c\u5bfb\u6c42\u5176\u4ed6\u5b66\u4e60\u8005\u6216\u6559\u7ec3\u7684\u5e2e\u52a9\u3002\u6b64\u5916\uff0cicode\u7684\u8bfe\u7a0b\u901a\u5e38\u4f1a\u9644\u5e26\u89e3\u7b54\u548c\u8ba8\u8bba\u533a\uff0c\u4f9b\u4f60\u53c2\u8003\u548c\u5b66\u4e60\u3002\u5229\u7528\u8fd9\u4e9b\u8d44\u6e90\uff0c\u4f60\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u89e3\u51b3\u9047\u5230\u7684\u7f16\u7a0b\u96be\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\uff1a\u8be6\u7ec6\u6307\u5357 \u8981\u901a\u8fc7iCode\u7684Python\u7b2c\u4e00\u5173\uff0c\u5173\u952e\u5728\u4e8e\u7406\u89e3\u9898\u76ee\u8981\u6c42\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1137341,"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\/1137335"}],"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=1137335"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137335\/revisions"}],"predecessor-version":[{"id":1137342,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1137335\/revisions\/1137342"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1137341"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1137335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1137335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1137335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}