{"id":972335,"date":"2024-12-27T05:47:51","date_gmt":"2024-12-26T21:47:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/972335.html"},"modified":"2024-12-27T05:47:53","modified_gmt":"2024-12-26T21:47:53","slug":"python%e5%ad%97%e5%85%b8%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5%e9%94%ae%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/972335.html","title":{"rendered":"python\u5b57\u5178\u5982\u4f55\u8f93\u5165\u952e\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195044\/452fdd6f-0f5f-4867-8be8-41c0b080c4e6.webp\" alt=\"python\u5b57\u5178\u5982\u4f55\u8f93\u5165\u952e\u503c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5b57\u5178\u952e\u503c\u7684\u8f93\u5165\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002<\/strong>\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u5176\u4e2d\u76f4\u63a5\u8d4b\u503c\u662f\u6700\u5e38\u7528\u4e14\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u7528\u4e8e\u5c0f\u89c4\u6a21\u7684\u6570\u636e\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684\u4ecb\u7ecd\u548c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u8d4b\u503c<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u662f\u4e00\u79cd\u7528\u4e8e\u5b58\u50a8\u952e\u503c\u5bf9\u7684\u6570\u636e\u7ed3\u6784\u3002\u5728Python\u4e2d\uff0c\u5b57\u5178\u7528\u82b1\u62ec\u53f7 <code>{}<\/code> \u8868\u793a\uff0c\u952e\u548c\u503c\u4e4b\u95f4\u7528\u5192\u53f7 <code>:<\/code> \u5206\u9694\u3002\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5411\u5b57\u5178\u4e2d\u6dfb\u52a0\u6216\u66f4\u65b0\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u548c\u66f4\u65b0\u5b57\u5178<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u5b57\u5178\uff0c\u6216\u8005\u5728\u5df2\u6709\u5b57\u5178\u4e2d\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\u3002\u5982\u679c\u952e\u5df2\u7ecf\u5b58\u5728\uff0c\u5219\u4f1a\u66f4\u65b0\u5176\u5bf9\u5e94\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521b\u5efa\u5b57\u5178<\/p>\n<p>student = {&quot;name&quot;: &quot;Alice&quot;, &quot;age&quot;: 25}<\/p>\n<h2><strong>\u6dfb\u52a0\u65b0\u952e\u503c\u5bf9<\/strong><\/h2>\n<p>student[&quot;grade&quot;] = &quot;A&quot;<\/p>\n<h2><strong>\u66f4\u65b0\u5df2\u6709\u952e\u7684\u503c<\/strong><\/h2>\n<p>student[&quot;age&quot;] = 26<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178 <code>student<\/code> \u88ab\u521b\u5efa\u5e76\u5305\u542b\u4e09\u4e2a\u952e\u503c\u5bf9\u3002\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\uff0c\u6211\u4eec\u6dfb\u52a0\u4e86\u4e00\u4e2a\u65b0\u7684\u952e\u503c\u5bf9 <code>grade: A<\/code>\uff0c\u5e76\u66f4\u65b0\u4e86 <code>age<\/code> \u7684\u503c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b57\u5178\u7684\u952e\u7c7b\u578b<\/strong><\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u7684\u952e\u5fc5\u987b\u662f\u4e0d\u53ef\u53d8\u7684\u7c7b\u578b\uff0c\u6bd4\u5982\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u6216\u5143\u7ec4\u3002\u7136\u800c\uff0c\u5b57\u5178\u7684\u503c\u53ef\u4ee5\u662f\u4efb\u4f55\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u5217\u8868\u3001\u5b57\u5178\u7b49\u590d\u6742\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u952e\u4e3a\u5b57\u7b26\u4e32\u548c\u6574\u6570\u7c7b\u578b<\/p>\n<p>person = {<\/p>\n<p>    &quot;name&quot;: &quot;Bob&quot;,<\/p>\n<p>    1: [2, 4, 3]<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178 <code>person<\/code> \u7684\u952e\u5305\u62ec\u5b57\u7b26\u4e32\u548c\u6574\u6570\uff0c\u5c55\u793a\u4e86\u952e\u7c7b\u578b\u7684\u591a\u6837\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>Python\u5b57\u5178\u63d0\u4f9b\u4e86\u4e00\u4e9b\u65b9\u6cd5\uff0c\u5982 <code>update()<\/code>\uff0c\u53ef\u4ee5\u7528\u4e8e\u6279\u91cf\u6dfb\u52a0\u6216\u66f4\u65b0\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528 <code>update()<\/code> \u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>update()<\/code> \u65b9\u6cd5\u63a5\u53d7\u53e6\u4e00\u4e2a\u5b57\u5178\u6216\u53ef\u8fed\u4ee3\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u5c06\u5176\u952e\u503c\u5bf9\u6dfb\u52a0\u5230\u76ee\u6807\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u5b57\u5178<\/p>\n<p>inventory = {&quot;apples&quot;: 10, &quot;bananas&quot;: 5}<\/p>\n<h2><strong>\u4f7f\u7528update()\u65b9\u6cd5\u66f4\u65b0\u5b57\u5178<\/strong><\/h2>\n<p>new_items = {&quot;oranges&quot;: 3, &quot;bananas&quot;: 7}<\/p>\n<p>inventory.update(new_items)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178 <code>inventory<\/code> \u4f7f\u7528 <code>update()<\/code> \u65b9\u6cd5\u66f4\u65b0\uff0c\u5176\u4e2d <code>bananas<\/code> \u7684\u6570\u91cf\u88ab\u66f4\u65b0\u4e3a7\uff0c\u65b0\u6dfb\u52a0\u4e86 <code>oranges<\/code>\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong><code>setdefault()<\/code> \u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>setdefault()<\/code> \u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u6307\u5b9a\u952e\u7684\u503c\uff0c\u5982\u679c\u952e\u4e0d\u5b58\u5728\uff0c\u5219\u5c06\u952e\u53ca\u5176\u9ed8\u8ba4\u503c\u6dfb\u52a0\u5230\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u521d\u59cb\u5316\u5b57\u5178<\/p>\n<p>defaults = {&quot;theme&quot;: &quot;light&quot;}<\/p>\n<h2><strong>\u4f7f\u7528setdefault()\u65b9\u6cd5<\/strong><\/h2>\n<p>current_theme = defaults.setdefault(&quot;theme&quot;, &quot;dark&quot;)<\/p>\n<p>new_language = defaults.setdefault(&quot;language&quot;, &quot;English&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>setdefault()<\/code> \u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6 <code>theme<\/code> \u7684\u503c\uff0c\u5e76\u5728\u4e0d\u5b58\u5728 <code>language<\/code> \u952e\u65f6\u6dfb\u52a0\u5b83\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5217\u8868\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u8bed\u6cd5\uff0c\u7528\u4e8e\u57fa\u4e8e\u73b0\u6709\u5217\u8868\u521b\u5efa\u65b0\u5217\u8868\u3002\u7c7b\u4f3c\u5730\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u4e5f\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u5b57\u5178\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b57\u5178\u63a8\u5bfc\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u63a8\u5bfc\u5f0f\u5141\u8bb8\u6211\u4eec\u4ee5\u7b80\u6d01\u7684\u65b9\u5f0f\u4ece\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\u521b\u5efa\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u521b\u5efa\u5b57\u5178<\/p>\n<p>squares = {x: x*x for x in range(6)}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u6570\u5b57\u53ca\u5176\u5e73\u65b9\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6761\u4ef6\u5b57\u5178\u63a8\u5bfc\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u63a8\u5bfc\u5f0f\u8fd8\u53ef\u4ee5\u5305\u542b\u6761\u4ef6\u8868\u8fbe\u5f0f\uff0c\u7528\u4e8e\u8fc7\u6ee4\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528\u6761\u4ef6\u5b57\u5178\u63a8\u5bfc\u5f0f<\/p>\n<p>even_squares = {x: x*x for x in range(10) if x % 2 == 0}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u53ea\u5305\u542b\u5076\u6570\u53ca\u5176\u5e73\u65b9\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5b57\u5178\u7684\u5e94\u7528\u573a\u666f\u548c\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b57\u5178\u7684\u5e94\u7528\u573a\u666f<\/strong><\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u5728Python\u4e2d\u662f\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u9700\u8981\u5feb\u901f\u67e5\u627e\u7684\u573a\u666f\u3002\u5e38\u89c1\u5e94\u7528\u5305\u62ec\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b58\u50a8\u548c\u7ba1\u7406\u914d\u7f6e\u53c2\u6570\u3002<\/li>\n<li>\u4f5c\u4e3a\u7f13\u5b58\u673a\u5236\uff0c\u7528\u4e8e\u5b58\u50a8\u8ba1\u7b97\u7ed3\u679c\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<li>\u5904\u7406JSON\u7b49\u7ed3\u6784\u5316\u6570\u636e\u3002<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u6ce8\u610f\u4e8b\u9879<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528\u5b57\u5178\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u952e\u7684\u552f\u4e00\u6027<\/strong>\uff1a\u5b57\u5178\u4e2d\u7684\u952e\u5fc5\u987b\u662f\u552f\u4e00\u7684\uff0c\u5982\u679c\u63d2\u5165\u91cd\u590d\u952e\uff0c\u540e\u9762\u7684\u503c\u5c06\u8986\u76d6\u524d\u9762\u7684\u503c\u3002<\/li>\n<li><strong>\u952e\u7684\u7c7b\u578b<\/strong>\uff1a\u952e\u5fc5\u987b\u662f\u4e0d\u53ef\u53d8\u7c7b\u578b\uff0c\u5982\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u6216\u5143\u7ec4\u3002<\/li>\n<li><strong>\u5185\u5b58\u7ba1\u7406<\/strong>\uff1a\u5b57\u5178\u7684\u5185\u5b58\u6d88\u8017\u6bd4\u5217\u8868\u5927\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u989d\u5916\u7684\u7a7a\u95f4\u6765\u7ef4\u62a4\u952e\u503c\u5bf9\u7684\u6620\u5c04\u5173\u7cfb\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u8be6\u7ec6\u7684\u4ecb\u7ecd\uff0c\u5e0c\u671b\u80fd\u591f\u5e2e\u52a9\u60a8\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528Python\u5b57\u5178\u8f93\u5165\u952e\u503c\u7684\u5404\u79cd\u65b9\u6cd5\u548c\u5e94\u7528\u573a\u666f\u3002\u5b57\u5178\u4f5c\u4e3a\u4e00\u79cd\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5728\u65e5\u5e38\u7f16\u7a0b\u4e2d\u626e\u6f14\u7740\u4e0d\u53ef\u6216\u7f3a\u7684\u89d2\u8272\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u5b57\u5178\u4e2d\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\u7684\u65b9\u5f0f\u6765\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u8bed\u6cd5\uff1a<code>dictionary[key] = value<\/code>\u3002\u5982\u679c\u952e\u5df2\u7ecf\u5b58\u5728\uff0c\u90a3\u4e48\u5b83\u7684\u503c\u5c06\u88ab\u66f4\u65b0\uff1b\u5982\u679c\u952e\u4e0d\u5b58\u5728\uff0c\u5219\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u952e\u503c\u5bf9\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5faa\u73af\u53ef\u4ee5\u5c06\u591a\u4e2a\u952e\u503c\u5bf9\u540c\u65f6\u8f93\u5165\u5230\u5b57\u5178\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\u5c06\u591a\u4e2a\u952e\u503c\u5bf9\u6dfb\u52a0\u5230\u5b57\u5178\u4e2d\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7<code>for<\/code>\u5faa\u73af\u904d\u5386\u4e00\u4e2a\u5305\u542b\u5143\u7ec4\u7684\u5217\u8868\uff0c\u6bcf\u4e2a\u5143\u7ec4\u5305\u542b\u952e\u548c\u503c\uff0c\u5e76\u5c06\u5b83\u4eec\u9010\u4e00\u6dfb\u52a0\u5230\u5b57\u5178\u4e2d\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u6279\u91cf\u8f93\u5165\u6570\u636e\u3002<\/p>\n<p><strong>\u5982\u4f55\u4ece\u7528\u6237\u8f93\u5165\u83b7\u53d6\u952e\u503c\u5bf9\u5e76\u66f4\u65b0\u5b57\u5178\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u4ece\u7528\u6237\u83b7\u53d6\u952e\u548c\u503c\uff0c\u5e76\u5c06\u5b83\u4eec\u5b58\u50a8\u5230\u5b57\u5178\u4e2d\u3002\u901a\u8fc7\u5c06\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u8f6c\u6362\u4e3a\u9002\u5f53\u7684\u6570\u636e\u7c7b\u578b\uff08\u5982\u5b57\u7b26\u4e32\u6216\u6574\u6570\uff09\uff0c\u53ef\u4ee5\u52a8\u6001\u5730\u66f4\u65b0\u5b57\u5178\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8ba9\u7528\u6237\u8f93\u5165\u591a\u4e2a\u952e\u503c\u5bf9\uff0c\u5e76\u5728\u8f93\u5165\u201c\u7ed3\u675f\u201d\u65f6\u505c\u6b62\u3002<\/p>\n<p><strong>\u5982\u4f55\u68c0\u67e5\u5b57\u5178\u4e2d\u662f\u5426\u5b58\u5728\u67d0\u4e2a\u7279\u5b9a\u7684\u952e\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>in<\/code>\u5173\u952e\u5b57\u6765\u68c0\u67e5\u5b57\u5178\u4e2d\u662f\u5426\u5b58\u5728\u7279\u5b9a\u7684\u952e\uff0c\u4f8b\u5982\uff1a<code>if key in dictionary:<\/code>\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u907f\u514d\u8986\u76d6\u5df2\u6709\u7684\u952e\u503c\u5bf9\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5b57\u5178\u952e\u503c\u7684\u8f93\u5165\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u8d4b\u503c\u3001\u4f7f\u7528\u5b57\u5178\u65b9\u6cd5\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u5176\u4e2d\u76f4 [&hellip;]","protected":false},"author":3,"featured_media":972342,"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\/972335"}],"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=972335"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/972335\/revisions"}],"predecessor-version":[{"id":972343,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/972335\/revisions\/972343"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/972342"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=972335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=972335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=972335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}