{"id":1143017,"date":"2025-01-08T22:46:11","date_gmt":"2025-01-08T14:46:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1143017.html"},"modified":"2025-01-08T22:46:14","modified_gmt":"2025-01-08T14:46:14","slug":"python-%e5%a6%82%e4%bd%95%e5%a4%8d%e5%88%b6%e4%b8%8a%e4%b8%80%e8%a1%8c%e6%95%b0%e6%8d%ae%e5%ba%93%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1143017.html","title":{"rendered":"python \u5982\u4f55\u590d\u5236\u4e0a\u4e00\u884c\u6570\u636e\u5e93\u4e2d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180827\/47f9bfef-e875-43f0-b4f2-c0eb490b0db4.webp\" alt=\"python \u5982\u4f55\u590d\u5236\u4e0a\u4e00\u884c\u6570\u636e\u5e93\u4e2d\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u590d\u5236\u6570\u636e\u5e93\u4e2d\u7684\u4e0a\u4e00\u884c\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5\u4e0ePython\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5e93<\/strong>\u3002\u9996\u5148\uff0c\u53ef\u4ee5\u901a\u8fc7SQL\u67e5\u8be2\u8bed\u53e5\u83b7\u53d6\u4e0a\u4e00\u884c\u7684\u6570\u636e\uff0c\u7136\u540e\u4f7f\u7528\u63d2\u5165\u8bed\u53e5\u5c06\u6570\u636e\u63d2\u5165\u5230\u6570\u636e\u5e93\u7684\u65b0\u884c\u4e2d\u3002<strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528\u6570\u636e\u5e93\u8fde\u63a5\u5e93\u5982sqlite3\u3001pymysql\u6216SQLAlchemy\u6765\u8fde\u63a5\u548c\u64cd\u4f5c\u6570\u636e\u5e93\uff0c\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u6267\u884cSQL\u67e5\u8be2\u548c\u6570\u636e\u64cd\u4f5c<\/strong>\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u6b65\u9aa4\u548c\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Python\u8fde\u63a5\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u64cd\u4f5c\u6570\u636e\u5e93\uff0c\u9996\u5148\u9700\u8981\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u5e93\u6765\u8fde\u63a5\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u5e93\u3002\u4f8b\u5982\uff0c\u4f7f\u7528sqlite3\u8fde\u63a5SQLite\u6570\u636e\u5e93\uff0c\u4f7f\u7528pymysql\u8fde\u63a5MySQL\u6570\u636e\u5e93\uff0c\u4f7f\u7528psycopg2\u8fde\u63a5PostgreSQL\u6570\u636e\u5e93\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528sqlite3\u5e93\u8fde\u63a5SQLite\u6570\u636e\u5e93\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<h2><strong>\u8fde\u63a5\u5230SQLite\u6570\u636e\u5e93<\/strong><\/h2>\n<p>conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>cursor = conn.cursor()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u590d\u5236\u4e0a\u4e00\u884c\u6570\u636e\uff0c\u9996\u5148\u9700\u8981\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5\u83b7\u53d6\u4e0a\u4e00\u884c\u7684\u6570\u636e\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>data<\/code>\u7684\u8868\uff0c\u8868\u4e2d\u6709\u4e00\u4e2a\u81ea\u52a8\u9012\u589e\u7684\u4e3b\u952e\u5217<code>id<\/code>\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u67e5\u8be2\u8bed\u53e5\u83b7\u53d6\u4e0a\u4e00\u884c\u7684\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e<\/p>\n<p>cursor.execute(&quot;SELECT * FROM data ORDER BY id DESC LIMIT 1&quot;)<\/p>\n<p>previous_row = cursor.fetchone()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u63d2\u5165\u65b0\u884c\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u63d2\u5165\u8bed\u53e5\u5c06\u6570\u636e\u63d2\u5165\u5230\u65b0\u884c\u4e2d\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8981\u6392\u9664\u81ea\u52a8\u9012\u589e\u7684\u4e3b\u952e\u5217\u3002\u4ee5\u4e0b\u662f\u63d2\u5165\u65b0\u884c\u6570\u636e\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6784\u9020\u63d2\u5165\u8bed\u53e5<\/p>\n<p>columns = [col[0] for col in cursor.description]<\/p>\n<p>columns.remove(&#39;id&#39;)  # \u6392\u9664\u4e3b\u952e\u5217<\/p>\n<p>values = previous_row[1:]  # \u6392\u9664\u4e3b\u952e\u503c<\/p>\n<h2><strong>\u63d2\u5165\u65b0\u884c\u6570\u636e<\/strong><\/h2>\n<p>insert_sql = f&quot;INSERT INTO data ({&#39;, &#39;.join(columns)}) VALUES ({&#39;, &#39;.join([&#39;?&#39; for _ in values])})&quot;<\/p>\n<p>cursor.execute(insert_sql, values)<\/p>\n<p>conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u64cd\u4f5c\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5305\u62ec\u8fde\u63a5\u6570\u636e\u5e93\u3001\u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e\u548c\u63d2\u5165\u65b0\u884c\u6570\u636e\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def copy_previous_row():<\/p>\n<p>    # \u8fde\u63a5\u5230SQLite\u6570\u636e\u5e93<\/p>\n<p>    conn = sqlite3.connect(&#39;example.db&#39;)<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    try:<\/p>\n<p>        # \u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e<\/p>\n<p>        cursor.execute(&quot;SELECT * FROM data ORDER BY id DESC LIMIT 1&quot;)<\/p>\n<p>        previous_row = cursor.fetchone()<\/p>\n<p>        if previous_row:<\/p>\n<p>            # \u6784\u9020\u63d2\u5165\u8bed\u53e5<\/p>\n<p>            columns = [col[0] for col in cursor.description]<\/p>\n<p>            columns.remove(&#39;id&#39;)  # \u6392\u9664\u4e3b\u952e\u5217<\/p>\n<p>            values = previous_row[1:]  # \u6392\u9664\u4e3b\u952e\u503c<\/p>\n<p>            # \u63d2\u5165\u65b0\u884c\u6570\u636e<\/p>\n<p>            insert_sql = f&quot;INSERT INTO data ({&#39;, &#39;.join(columns)}) VALUES ({&#39;, &#39;.join([&#39;?&#39; for _ in values])})&quot;<\/p>\n<p>            cursor.execute(insert_sql, values)<\/p>\n<p>            conn.commit()<\/p>\n<p>            print(&quot;\u4e0a\u4e00\u884c\u6570\u636e\u590d\u5236\u6210\u529f&quot;)<\/p>\n<p>        else:<\/p>\n<p>            print(&quot;\u8868\u4e2d\u6ca1\u6709\u6570\u636e&quot;)<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;\u64cd\u4f5c\u5931\u8d25: {e}&quot;)<\/p>\n<p>    finally:<\/p>\n<p>        # \u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5<\/p>\n<p>        cursor.close()<\/p>\n<p>        conn.close()<\/p>\n<h2><strong>\u8fd0\u884c\u793a\u4f8b<\/strong><\/h2>\n<p>copy_previous_row()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u6570\u636e\u5e93\u7ed3\u6784\u548c\u8981\u6c42\u8fdb\u884c\u8c03\u6574\u3002\u4f8b\u5982\uff0c\u5982\u679c\u8868\u4e2d\u6709\u5176\u4ed6\u7ea6\u675f\uff08\u5982\u552f\u4e00\u7ea6\u675f\uff09\uff0c\u9700\u8981\u5728\u63d2\u5165\u65b0\u884c\u6570\u636e\u524d\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002\u6b64\u5916\uff0c\u5982\u679c\u4f7f\u7528\u5176\u4ed6\u7c7b\u578b\u7684\u6570\u636e\u5e93\uff08\u5982MySQL\u3001PostgreSQL\uff09\uff0c\u9700\u8981\u4f7f\u7528\u76f8\u5e94\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5e93\u5e76\u8c03\u6574SQL\u8bed\u53e5\u7684\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u64cd\u4f5c\u6570\u636e\u5e93\u65f6\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u5e93\u8fde\u63a5\u6c60<\/strong>\uff1a\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\uff0c\u5efa\u8bae\u4f7f\u7528\u6570\u636e\u5e93\u8fde\u63a5\u6c60\u6765\u7ba1\u7406\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u4ee5\u63d0\u9ad8\u8fde\u63a5\u6548\u7387\u548c\u6027\u80fd\u3002<\/li>\n<li><strong>\u4e8b\u52a1\u7ba1\u7406<\/strong>\uff1a\u786e\u4fdd\u5728\u8fdb\u884c\u6570\u636e\u63d2\u5165\u3001\u66f4\u65b0\u3001\u5220\u9664\u7b49\u64cd\u4f5c\u65f6\uff0c\u6b63\u786e\u4f7f\u7528\u4e8b\u52a1\u7ba1\u7406\uff0c\u4ee5\u907f\u514d\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u95ee\u9898\u3002<\/li>\n<li><strong>\u9632\u6b62SQL\u6ce8\u5165<\/strong>\uff1a\u5728\u6784\u9020SQL\u67e5\u8be2\u8bed\u53e5\u65f6\uff0c\u4f7f\u7528\u53c2\u6570\u5316\u67e5\u8be2\u4ee5\u9632\u6b62SQL\u6ce8\u5165\u653b\u51fb\uff0c\u786e\u4fdd\u6570\u636e\u5b89\u5168\u3002<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u5b8c\u6574\u793a\u4f8b\u4ee3\u7801<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u4ee3\u7801\uff0c\u5305\u62ec\u4f7f\u7528pymysql\u5e93\u8fde\u63a5MySQL\u6570\u636e\u5e93\u3001\u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e\u548c\u63d2\u5165\u65b0\u884c\u6570\u636e\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pymysql<\/p>\n<p>def copy_previous_row():<\/p>\n<p>    # \u8fde\u63a5\u5230MySQL\u6570\u636e\u5e93<\/p>\n<p>    conn = pymysql.connect(<\/p>\n<p>        host=&#39;localhost&#39;,<\/p>\n<p>        user=&#39;your_username&#39;,<\/p>\n<p>        password=&#39;your_password&#39;,<\/p>\n<p>        database=&#39;your_database&#39;<\/p>\n<p>    )<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    try:<\/p>\n<p>        # \u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e<\/p>\n<p>        cursor.execute(&quot;SELECT * FROM data ORDER BY id DESC LIMIT 1&quot;)<\/p>\n<p>        previous_row = cursor.fetchone()<\/p>\n<p>        if previous_row:<\/p>\n<p>            # \u6784\u9020\u63d2\u5165\u8bed\u53e5<\/p>\n<p>            columns = [col[0] for col in cursor.description]<\/p>\n<p>            columns.remove(&#39;id&#39;)  # \u6392\u9664\u4e3b\u952e\u5217<\/p>\n<p>            values = previous_row[1:]  # \u6392\u9664\u4e3b\u952e\u503c<\/p>\n<p>            # \u63d2\u5165\u65b0\u884c\u6570\u636e<\/p>\n<p>            insert_sql = f&quot;INSERT INTO data ({&#39;, &#39;.join(columns)}) VALUES ({&#39;, &#39;.join([&#39;%s&#39; for _ in values])})&quot;<\/p>\n<p>            cursor.execute(insert_sql, values)<\/p>\n<p>            conn.commit()<\/p>\n<p>            print(&quot;\u4e0a\u4e00\u884c\u6570\u636e\u590d\u5236\u6210\u529f&quot;)<\/p>\n<p>        else:<\/p>\n<p>            print(&quot;\u8868\u4e2d\u6ca1\u6709\u6570\u636e&quot;)<\/p>\n<p>    except Exception as e:<\/p>\n<p>        print(f&quot;\u64cd\u4f5c\u5931\u8d25: {e}&quot;)<\/p>\n<p>    finally:<\/p>\n<p>        # \u5173\u95ed\u6570\u636e\u5e93\u8fde\u63a5<\/p>\n<p>        cursor.close()<\/p>\n<p>        conn.close()<\/p>\n<h2><strong>\u8fd0\u884c\u793a\u4f8b<\/strong><\/h2>\n<p>copy_previous_row()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u793a\u4f8b\u4ee3\u7801\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u590d\u5236\u6570\u636e\u5e93\u4e2d\u7684\u4e0a\u4e00\u884c\u6570\u636e\u3002\u6839\u636e\u5177\u4f53\u7684\u6570\u636e\u5e93\u7c7b\u578b\u548c\u8981\u6c42\u8fdb\u884c\u76f8\u5e94\u7684\u8c03\u6574\uff0c\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u548c\u9ad8\u6548\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u590d\u5236\u6570\u636e\u5e93\u4e2d\u4e0a\u4e00\u884c\u7684\u6570\u636e\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528SQLAlchemy\u6216SQLite\u7b49\u5e93\u6765\u64cd\u4f5c\u6570\u636e\u5e93\u3002\u8981\u590d\u5236\u4e0a\u4e00\u884c\u7684\u6570\u636e\uff0c\u9996\u5148\u9700\u8981\u67e5\u8be2\u4e0a\u4e00\u884c\u7684\u8bb0\u5f55\uff0c\u7136\u540e\u5c06\u5176\u63d2\u5165\u5230\u76ee\u6807\u4f4d\u7f6e\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">from sqlalchemy import create_engine, select\nfrom sqlalchemy.orm import sessionmaker\n\nengine = create_engine(&#39;sqlite:\/\/\/your_database.db&#39;)\nSession = sessionmaker(bind=engine)\nsession = Session()\n\n# \u5047\u8bbe\u60a8\u7684\u8868\u540d\u4e3a &#39;your_table&#39;\nlast_row = session.execute(select(YourTable).order_by(YourTable.id.desc()).limit(1)).fetchone()\n\nif last_row:\n    new_row = YourTable(column1=last_row.column1, column2=last_row.column2)  # \u6839\u636e\u9700\u8981\u590d\u5236\u5b57\u6bb5\n    session.add(new_row)\n    session.commit()\n<\/code><\/pre>\n<p><strong>\u5728\u590d\u5236\u4e0a\u4e00\u884c\u6570\u636e\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u590d\u5236\u6570\u636e\u65f6\uff0c\u8981\u786e\u4fdd\u590d\u5236\u7684\u6570\u636e\u4e0d\u4f1a\u5bfc\u81f4\u4e3b\u952e\u51b2\u7a81\u3002\u5982\u679c\u8868\u4e2d\u6709\u552f\u4e00\u7ea6\u675f\u6216\u4e3b\u952e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5728\u63d2\u5165\u65b0\u884c\u4e4b\u524d\u66f4\u6539\u8fd9\u4e9b\u5b57\u6bb5\u7684\u503c\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u590d\u5236\u7684\u6570\u636e\u7b26\u5408\u76ee\u6807\u8868\u7684\u7ea6\u675f\u6761\u4ef6\uff0c\u4f8b\u5982\u975e\u7a7a\u7ea6\u675f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e0d\u540c\u7684\u6570\u636e\u5e93\u4e2d\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\uff1f<\/strong><br \/>\u4e0d\u540c\u6570\u636e\u5e93\u7684\u5b9e\u73b0\u65b9\u5f0f\u53ef\u80fd\u7565\u6709\u4e0d\u540c\uff0c\u4f46\u5927\u591a\u6570\u6570\u636e\u5e93\u652f\u6301\u7c7b\u4f3c\u7684SQL\u8bed\u6cd5\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u7c7b\u4f3c\u7684\u67e5\u8be2\u6765\u83b7\u53d6\u4e0a\u4e00\u884c\u6570\u636e\uff0c\u5e76\u901a\u8fc7\u63d2\u5165\u8bed\u53e5\u5c06\u5176\u590d\u5236\u5230\u65b0\u884c\u4e2d\u3002\u53ea\u9700\u6839\u636e\u6240\u4f7f\u7528\u7684\u6570\u636e\u5e93\u8c03\u6574\u67e5\u8be2\u548c\u63d2\u5165\u7684\u8bed\u6cd5\u5373\u53ef\uff0c\u4f8b\u5982\u5728MySQL\u3001PostgreSQL\u6216Oracle\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u590d\u5236\u6570\u636e\u5e93\u4e2d\u7684\u4e0a\u4e00\u884c\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528SQL\u67e5\u8be2\u8bed\u53e5\u4e0ePython\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5e93\u3002\u9996\u5148\uff0c\u53ef\u4ee5\u901a\u8fc7S [&hellip;]","protected":false},"author":3,"featured_media":1143022,"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\/1143017"}],"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=1143017"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1143017\/revisions"}],"predecessor-version":[{"id":1143026,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1143017\/revisions\/1143026"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1143022"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1143017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1143017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1143017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}