{"id":1093765,"date":"2025-01-08T14:34:20","date_gmt":"2025-01-08T06:34:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1093765.html"},"modified":"2025-01-08T14:34:23","modified_gmt":"2025-01-08T06:34:23","slug":"python%e6%9e%9a%e4%b8%be%e7%b1%bb%e5%9e%8b%e5%a6%82%e4%bd%95%e5%ad%98%e6%95%b0%e6%8d%ae%e5%ba%93-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1093765.html","title":{"rendered":"python\u679a\u4e3e\u7c7b\u578b\u5982\u4f55\u5b58\u6570\u636e\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210205\/1d714dff-9945-4ae8-a532-c7e532ffc050.webp\" alt=\"python\u679a\u4e3e\u7c7b\u578b\u5982\u4f55\u5b58\u6570\u636e\u5e93\" \/><\/p>\n<p><p> <strong>Python\u679a\u4e3e\u7c7b\u578b\u5b58\u50a8\u5728\u6570\u636e\u5e93\u4e2d\u7684\u65b9\u6cd5\u6709\uff1a\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3001\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u578b\u3001\u4f7f\u7528\u5e8f\u5217\u5316\u65b9\u5f0f\u5b58\u50a8\u3002<\/strong> \u5176\u4e2d\uff0c\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u8f83\u4e3a\u5e38\u89c1\u548c\u76f4\u89c2\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u79cd\u65b9\u6cd5\uff0c\u5e76\u4ecb\u7ecd\u5176\u4ed6\u65b9\u6cd5\u5728\u4e0d\u540c\u60c5\u5883\u4e0b\u7684\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u52bf\u5728\u4e8e\u76f4\u89c2\u3001\u6613\u4e8e\u8c03\u8bd5\u548c\u7ef4\u62a4\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u4e49\u679a\u4e3e\u7c7b\u578b<\/strong>\uff1a\u9996\u5148\uff0c\u9700\u8981\u5728Python\u4ee3\u7801\u4e2d\u5b9a\u4e49\u679a\u4e3e\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u5b9a\u4e49\u4e00\u4e2a\u989c\u8272\u679a\u4e3e\u7c7b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from enum import Enum<\/p>\n<p>class Color(Enum):<\/p>\n<p>    RED = &quot;red&quot;<\/p>\n<p>    GREEN = &quot;green&quot;<\/p>\n<p>    BLUE = &quot;blue&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b58\u50a8\u679a\u4e3e\u503c<\/strong>\uff1a\u5728\u5c06\u679a\u4e3e\u503c\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u9700\u8981\u5c06\u5176\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">color = Color.RED<\/p>\n<p>color_str = color.value  # \u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32 &#39;red&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b58\u50a8\u5230\u6570\u636e\u5e93<\/strong>\uff1a\u5c06\u8f6c\u6362\u540e\u7684\u5b57\u7b26\u4e32\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<h2><strong>\u521b\u5efa\u8868<\/strong><\/h2>\n<p>c.execute(&#39;&#39;&#39;CREATE TABLE IF NOT EXISTS colors (id INTEGER PRIMARY KEY, color TEXT)&#39;&#39;&#39;)<\/p>\n<h2><strong>\u63d2\u5165\u6570\u636e<\/strong><\/h2>\n<p>c.execute(&quot;INSERT INTO colors (color) VALUES (?)&quot;, (color_str,))<\/p>\n<p>conn.commit()<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bfb\u53d6\u679a\u4e3e\u503c<\/strong>\uff1a\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u503c\u5e76\u8f6c\u6362\u56de\u679a\u4e3e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<p>c.execute(&quot;SELECT color FROM colors WHERE id=?&quot;, (1,))<\/p>\n<p>row = c.fetchone()<\/p>\n<p>color_str = row[0]<\/p>\n<p>color = Color(color_str)  # \u8f6c\u6362\u56de\u679a\u4e3e\u7c7b\u578b<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u578b<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u578b\u8fdb\u884c\u5b58\u50a8\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u679a\u4e3e\u503c\u8f83\u591a\u4e14\u6709\u660e\u663e\u6392\u5e8f\u6216\u6570\u503c\u542b\u4e49\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u4e49\u679a\u4e3e\u7c7b\u578b<\/strong>\uff1a\u5b9a\u4e49\u679a\u4e3e\u7c7b\u578b\u65f6\uff0c\u8d4b\u4e88\u6bcf\u4e2a\u679a\u4e3e\u503c\u4e00\u4e2a\u6574\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from enum import Enum<\/p>\n<p>class Status(Enum):<\/p>\n<p>    PENDING = 1<\/p>\n<p>    ACTIVE = 2<\/p>\n<p>    INACTIVE = 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b58\u50a8\u679a\u4e3e\u503c<\/strong>\uff1a\u5728\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">status = Status.ACTIVE<\/p>\n<p>status_int = status.value  # \u8f6c\u6362\u4e3a\u6574\u6570 2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b58\u50a8\u5230\u6570\u636e\u5e93<\/strong>\uff1a\u5c06\u8f6c\u6362\u540e\u7684\u6574\u6570\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<h2><strong>\u521b\u5efa\u8868<\/strong><\/h2>\n<p>c.execute(&#39;&#39;&#39;CREATE TABLE IF NOT EXISTS statuses (id INTEGER PRIMARY KEY, status INTEGER)&#39;&#39;&#39;)<\/p>\n<h2><strong>\u63d2\u5165\u6570\u636e<\/strong><\/h2>\n<p>c.execute(&quot;INSERT INTO statuses (status) VALUES (?)&quot;, (status_int,))<\/p>\n<p>conn.commit()<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bfb\u53d6\u679a\u4e3e\u503c<\/strong>\uff1a\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u503c\u5e76\u8f6c\u6362\u56de\u679a\u4e3e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<p>c.execute(&quot;SELECT status FROM statuses WHERE id=?&quot;, (1,))<\/p>\n<p>row = c.fetchone()<\/p>\n<p>status_int = row[0]<\/p>\n<p>status = Status(status_int)  # \u8f6c\u6362\u56de\u679a\u4e3e\u7c7b\u578b<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5e8f\u5217\u5316\u65b9\u5f0f\u5b58\u50a8<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u590d\u6742\u7684\u679a\u4e3e\u7c7b\u578b\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u5e8f\u5217\u5316\u65b9\u5f0f\u8fdb\u884c\u5b58\u50a8\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u679a\u4e3e\u7c7b\u578b\u5305\u542b\u590d\u6742\u6570\u636e\u7ed3\u6784\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u4e49\u590d\u6742\u679a\u4e3e\u7c7b\u578b<\/strong>\uff1a\u5b9a\u4e49\u5305\u542b\u590d\u6742\u6570\u636e\u7ed3\u6784\u7684\u679a\u4e3e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from enum import Enum<\/p>\n<p>import json<\/p>\n<p>class ComplexEnum(Enum):<\/p>\n<p>    OPTION_A = {&quot;name&quot;: &quot;Option A&quot;, &quot;value&quot;: 1}<\/p>\n<p>    OPTION_B = {&quot;name&quot;: &quot;Option B&quot;, &quot;value&quot;: 2}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e8f\u5217\u5316\u679a\u4e3e\u503c<\/strong>\uff1a\u5728\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e4b\u524d\uff0c\u5c06\u679a\u4e3e\u503c\u5e8f\u5217\u5316\u4e3aJSON\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">option = ComplexEnum.OPTION_A<\/p>\n<p>option_json = json.dumps(option.value)  # \u5e8f\u5217\u5316\u4e3a JSON \u5b57\u7b26\u4e32<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b58\u50a8\u5230\u6570\u636e\u5e93<\/strong>\uff1a\u5c06\u5e8f\u5217\u5316\u540e\u7684\u5b57\u7b26\u4e32\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<h2><strong>\u521b\u5efa\u8868<\/strong><\/h2>\n<p>c.execute(&#39;&#39;&#39;CREATE TABLE IF NOT EXISTS complex_options (id INTEGER PRIMARY KEY, option TEXT)&#39;&#39;&#39;)<\/p>\n<h2><strong>\u63d2\u5165\u6570\u636e<\/strong><\/h2>\n<p>c.execute(&quot;INSERT INTO complex_options (option) VALUES (?)&quot;, (option_json,))<\/p>\n<p>conn.commit()<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53cd\u5e8f\u5217\u5316\u679a\u4e3e\u503c<\/strong>\uff1a\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u503c\u5e76\u53cd\u5e8f\u5217\u5316\u4e3a\u679a\u4e3e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>c = conn.cursor()<\/p>\n<p>c.execute(&quot;SELECT option FROM complex_options WHERE id=?&quot;, (1,))<\/p>\n<p>row = c.fetchone()<\/p>\n<p>option_json = row[0]<\/p>\n<p>option_dict = json.loads(option_json)<\/p>\n<p>option = ComplexEnum(option_dict)  # \u53cd\u5e8f\u5217\u5316\u4e3a\u679a\u4e3e\u7c7b\u578b<\/p>\n<p>conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u60c5\u51b5\u548c\u9700\u6c42\u3002<strong>\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5<\/strong>\u8f83\u4e3a\u5e38\u89c1\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u573a\u666f\uff1b<strong>\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u578b\u7684\u65b9\u6cd5<\/strong>\u9002\u7528\u4e8e\u679a\u4e3e\u503c\u8f83\u591a\u4e14\u6709\u6570\u503c\u542b\u4e49\u7684\u60c5\u51b5\uff1b<strong>\u4f7f\u7528\u5e8f\u5217\u5316\u65b9\u5f0f\u5b58\u50a8\u7684\u65b9\u6cd5<\/strong>\u9002\u7528\u4e8e\u590d\u6742\u679a\u4e3e\u7c7b\u578b\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u786e\u4fdd\u5728\u5b58\u50a8\u548c\u8bfb\u53d6\u8fc7\u7a0b\u4e2d\u4fdd\u6301\u4e00\u81f4\u6027\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u6570\u636e\u9a8c\u8bc1\u548c\u9519\u8bef\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>1. \u5982\u4f55\u5c06Python\u4e2d\u7684\u679a\u4e3e\u7c7b\u578b\u8f6c\u6362\u4e3a\u6570\u636e\u5e93\u53ef\u4ee5\u5b58\u50a8\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u679a\u4e3e\u7c7b\u578b\u901a\u5e38\u662f\u901a\u8fc7<code>Enum<\/code>\u7c7b\u5b9a\u4e49\u7684\u3002\u4e3a\u4e86\u5c06\u679a\u4e3e\u7c7b\u578b\u5b58\u50a8\u5230\u6570\u636e\u5e93\u4e2d\uff0c\u53ef\u4ee5\u5c06\u679a\u4e3e\u6210\u5458\u7684\u503c\uff08\u4f8b\u5982\uff0c\u6574\u6570\u6216\u5b57\u7b26\u4e32\uff09\u4f5c\u4e3a\u5b57\u6bb5\u7684\u503c\u5b58\u50a8\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u679a\u4e3e\u65f6\u4f7f\u7528\u7684\u503c\u8fdb\u884c\u6620\u5c04\uff0c\u5e76\u5728\u63d2\u5165\u6216\u66f4\u65b0\u6570\u636e\u5e93\u8bb0\u5f55\u65f6\u4f7f\u7528\u8fd9\u4e9b\u503c\u3002<\/p>\n<p><strong>2. \u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u679a\u4e3e\u503c\u5982\u4f55\u4e0ePython\u679a\u4e3e\u7c7b\u578b\u8fdb\u884c\u5339\u914d\uff1f<\/strong><br \/>\u5728\u4ece\u6570\u636e\u5e93\u4e2d\u8bfb\u53d6\u679a\u4e3e\u503c\u65f6\uff0c\u53ef\u4ee5\u5c06\u67e5\u8be2\u7ed3\u679c\u6620\u5c04\u56de\u76f8\u5e94\u7684Python\u679a\u4e3e\u6210\u5458\u3002\u8fd9\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u67e5\u8be2\u7ed3\u679c\u4e0e\u679a\u4e3e\u7c7b\u4e2d\u7684\u6210\u5458\u503c\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Enum<\/code>\u7684<code>__members__.items()<\/code>\u65b9\u6cd5\u904d\u5386\u6240\u6709\u6210\u5458\uff0c\u627e\u5230\u4e0e\u6570\u636e\u5e93\u4e2d\u5b58\u50a8\u7684\u503c\u5339\u914d\u7684\u6210\u5458\u3002<\/p>\n<p><strong>3. \u4f7f\u7528ORM\u6846\u67b6\u65f6\uff0c\u5982\u4f55\u5904\u7406Python\u679a\u4e3e\u7c7b\u578b\u7684\u5b58\u50a8\u4e0e\u8bfb\u53d6\uff1f<\/strong><br \/>\u5728\u4f7f\u7528ORM\u6846\u67b6\uff08\u5982SQLAlchemy\uff09\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u5217\u7c7b\u578b\u548c\u6620\u5c04\u5173\u7cfb\u6765\u5904\u7406\u679a\u4e3e\u7c7b\u578b\u7684\u5b58\u50a8\u4e0e\u8bfb\u53d6\u3002\u53ef\u4ee5\u4f7f\u7528\u679a\u4e3e\u7c7b\u578b\u4f5c\u4e3a\u6a21\u578b\u5b57\u6bb5\u7684\u7c7b\u578b\uff0cORM\u4f1a\u81ea\u52a8\u5904\u7406\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6570\u636e\u5e93\u5b58\u50a8\u683c\u5f0f\uff0c\u5e76\u5728\u67e5\u8be2\u65f6\u5c06\u5176\u8f6c\u6362\u56de\u679a\u4e3e\u7c7b\u578b\u3002\u786e\u4fdd\u5728\u6a21\u578b\u5b9a\u4e49\u4e2d\u4f7f\u7528\u9002\u5f53\u7684\u7c7b\u578b\u58f0\u660e\uff0c\u4ee5\u4fbfORM\u80fd\u591f\u6b63\u786e\u8bc6\u522b\u548c\u5904\u7406\u679a\u4e3e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u679a\u4e3e\u7c7b\u578b\u5b58\u50a8\u5728\u6570\u636e\u5e93\u4e2d\u7684\u65b9\u6cd5\u6709\uff1a\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3001\u5c06\u679a\u4e3e\u503c\u8f6c\u6362\u4e3a\u6574\u578b\u3001\u4f7f\u7528\u5e8f\u5217\u5316\u65b9\u5f0f\u5b58\u50a8\u3002 \u5176 [&hellip;]","protected":false},"author":3,"featured_media":1093773,"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\/1093765"}],"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=1093765"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1093765\/revisions"}],"predecessor-version":[{"id":1093774,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1093765\/revisions\/1093774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1093773"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1093765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1093765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1093765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}