{"id":1130730,"date":"2025-01-08T20:42:46","date_gmt":"2025-01-08T12:42:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1130730.html"},"modified":"2025-01-08T20:42:49","modified_gmt":"2025-01-08T12:42:49","slug":"python%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e7%ac%ac%e4%b8%80%e5%88%97%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1130730.html","title":{"rendered":"python\u5982\u4f55\u5220\u9664\u7b2c\u4e00\u5217\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\/25100727\/6a850b35-7af0-4615-8832-2ec083e761b6.webp\" alt=\"python\u5982\u4f55\u5220\u9664\u7b2c\u4e00\u5217\u6570\u636e\u5e93\" \/><\/p>\n<p><p> <strong>\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u7b2c\u4e00\u5217\u901a\u5e38\u662f\u4e00\u4e2a\u9700\u8981\u8c28\u614e\u5904\u7406\u7684\u64cd\u4f5c\uff0c\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u8fde\u63a5\u6570\u636e\u5e93\u3001\u83b7\u53d6\u8868\u4fe1\u606f\u3001\u5220\u9664\u5217\u3001\u66f4\u65b0\u8868\u7ed3\u6784\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u83b7\u53d6\u8868\u4fe1\u606f<\/strong>\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u9700\u8981\u786e\u4fdd\u4e0d\u4f1a\u7834\u574f\u8868\u7684\u5b8c\u6574\u6027\u548c\u6570\u636e\u4e00\u81f4\u6027\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Python\u5220\u9664\u6570\u636e\u5e93\u7684\u7b2c\u4e00\u5217\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u8fde\u63a5\u6570\u636e\u5e93<\/strong><\/h2>\n<p><p>\u5728\u5f00\u59cb\u5220\u9664\u5217\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002Python\u4e2d\u6700\u5e38\u7528\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5e93\u662f<code>sqlite3<\/code>\u3001<code>MySQL Connector<\/code>\u548c<code>psycopg2<\/code>\u7b49\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5e93\u8fde\u63a5\u5230\u6570\u636e\u5e93\u3002<\/p>\n<\/p>\n<p><h3>1.1 \u4f7f\u7528 sqlite3 \u8fde\u63a5 SQLite \u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def connect_to_sqlite(db_name):<\/p>\n<p>    try:<\/p>\n<p>        conn = sqlite3.connect(db_name)<\/p>\n<p>        return conn<\/p>\n<p>    except sqlite3.Error as e:<\/p>\n<p>        print(f&quot;Error connecting to database: {e}&quot;)<\/p>\n<p>        return None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>1.2 \u4f7f\u7528 MySQL Connector \u8fde\u63a5 MySQL \u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import mysql.connector<\/p>\n<p>def connect_to_mysql(user, password, host, database):<\/p>\n<p>    try:<\/p>\n<p>        conn = mysql.connector.connect(<\/p>\n<p>            user=user,<\/p>\n<p>            password=password,<\/p>\n<p>            host=host,<\/p>\n<p>            database=database<\/p>\n<p>        )<\/p>\n<p>        return conn<\/p>\n<p>    except mysql.connector.Error as err:<\/p>\n<p>        print(f&quot;Error: {err}&quot;)<\/p>\n<p>        return None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>1.3 \u4f7f\u7528 psycopg2 \u8fde\u63a5 PostgreSQL \u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import psycopg2<\/p>\n<p>def connect_to_postgresql(user, password, host, database):<\/p>\n<p>    try:<\/p>\n<p>        conn = psycopg2.connect(<\/p>\n<p>            user=user,<\/p>\n<p>            password=password,<\/p>\n<p>            host=host,<\/p>\n<p>            database=database<\/p>\n<p>        )<\/p>\n<p>        return conn<\/p>\n<p>    except psycopg2.Error as e:<\/p>\n<p>        print(f&quot;Error: {e}&quot;)<\/p>\n<p>        return None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e8c\u3001\u83b7\u53d6\u8868\u4fe1\u606f<\/strong><\/h2>\n<p><p>\u5728\u5220\u9664\u5217\u4e4b\u524d\uff0c\u83b7\u53d6\u8868\u7684\u7ed3\u6784\u4fe1\u606f\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5220\u9664\u64cd\u4f5c\u4e0d\u4f1a\u7834\u574f\u8868\u7684\u5b8c\u6574\u6027\u3002<\/p>\n<\/p>\n<p><h3>2.1 \u83b7\u53d6 SQLite \u6570\u636e\u5e93\u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def get_table_info_sqlite(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;PRAGMA table_info({table_name})&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    return columns<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2.2 \u83b7\u53d6 MySQL \u6570\u636e\u5e93\u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def get_table_info_mysql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;DESCRIBE {table_name}&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    return columns<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2.3 \u83b7\u53d6 PostgreSQL \u6570\u636e\u5e93\u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def get_table_info_postgresql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;&quot;&quot;<\/p>\n<p>        SELECT column_name<\/p>\n<p>        FROM information_schema.columns<\/p>\n<p>        WHERE table_name = &#39;{table_name}&#39;<\/p>\n<p>    &quot;&quot;&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    return columns<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e09\u3001\u5220\u9664\u5217<\/strong><\/h2>\n<p><p>\u5220\u9664\u5217\u7684\u65b9\u5f0f\u56e0\u6570\u636e\u5e93\u7c7b\u578b\u800c\u5f02\u3002\u901a\u5e38\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u8868\uff0c\u7136\u540e\u5c06\u6570\u636e\u590d\u5236\u5230\u65b0\u8868\u4e2d\uff0c\u6700\u540e\u91cd\u547d\u540d\u65b0\u8868\u3002<\/p>\n<\/p>\n<p><h3>3.1 \u5220\u9664 SQLite \u6570\u636e\u5e93\u4e2d\u7684\u5217<\/h3>\n<\/p>\n<p><p>SQLite \u4e0d\u652f\u6301\u76f4\u63a5\u5220\u9664\u5217\uff0c\u9700\u8981\u624b\u52a8\u521b\u5efa\u65b0\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_first_column_sqlite(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    columns = get_table_info_sqlite(conn, table_name)<\/p>\n<p>    if not columns:<\/p>\n<p>        print(&quot;Table not found&quot;)<\/p>\n<p>        return<\/p>\n<p>    column_names = [col[1] for col in columns[1:]]<\/p>\n<p>    columns_string = &quot;, &quot;.join(column_names)<\/p>\n<p>    cursor.execute(f&quot;CREATE TABLE {table_name}_temp AS SELECT {columns_string} FROM {table_name}&quot;)<\/p>\n<p>    cursor.execute(f&quot;DROP TABLE {table_name}&quot;)<\/p>\n<p>    cursor.execute(f&quot;ALTER TABLE {table_name}_temp RENAME TO {table_name}&quot;)<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3.2 \u5220\u9664 MySQL \u6570\u636e\u5e93\u4e2d\u7684\u5217<\/h3>\n<\/p>\n<p><p>MySQL \u652f\u6301\u4f7f\u7528 <code>ALTER TABLE<\/code> \u8bed\u53e5\u5220\u9664\u5217\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_first_column_mysql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    columns = get_table_info_mysql(conn, table_name)<\/p>\n<p>    if not columns:<\/p>\n<p>        print(&quot;Table not found&quot;)<\/p>\n<p>        return<\/p>\n<p>    first_column = columns[0][0]<\/p>\n<p>    cursor.execute(f&quot;ALTER TABLE {table_name} DROP COLUMN {first_column}&quot;)<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3.3 \u5220\u9664 PostgreSQL \u6570\u636e\u5e93\u4e2d\u7684\u5217<\/h3>\n<\/p>\n<p><p>PostgreSQL \u4e5f\u652f\u6301\u4f7f\u7528 <code>ALTER TABLE<\/code> \u8bed\u53e5\u5220\u9664\u5217\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_first_column_postgresql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    columns = get_table_info_postgresql(conn, table_name)<\/p>\n<p>    if not columns:<\/p>\n<p>        print(&quot;Table not found&quot;)<\/p>\n<p>        return<\/p>\n<p>    first_column = columns[0][0]<\/p>\n<p>    cursor.execute(f&quot;ALTER TABLE {table_name} DROP COLUMN {first_column}&quot;)<\/p>\n<p>    conn.commit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u56db\u3001\u66f4\u65b0\u8868\u7ed3\u6784<\/strong><\/h2>\n<p><p>\u5220\u9664\u5217\u540e\uff0c\u9700\u8981\u786e\u4fdd\u8868\u7684\u7ed3\u6784\u66f4\u65b0\u6b63\u786e\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u5220\u9664\u5217\u540e\u65e0\u9700\u989d\u5916\u64cd\u4f5c\uff0c\u4f46\u5982\u679c\u6709\u5916\u952e\u7ea6\u675f\u6216\u7d22\u5f15\uff0c\u53ef\u80fd\u9700\u8981\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>4.1 \u66f4\u65b0 SQLite \u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728 SQLite \u4e2d\uff0c\u66f4\u65b0\u8868\u7ed3\u6784\u901a\u5e38\u610f\u5473\u7740\u786e\u4fdd\u4e34\u65f6\u8868\u548c\u539f\u8868\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def update_table_structure_sqlite(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;PRAGMA table_info({table_name})&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    print(f&quot;Updated table structure for {table_name}:&quot;)<\/p>\n<p>    for col in columns:<\/p>\n<p>        print(col)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4.2 \u66f4\u65b0 MySQL \u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728 MySQL \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>DESCRIBE<\/code> \u547d\u4ee4\u68c0\u67e5\u8868\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def update_table_structure_mysql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;DESCRIBE {table_name}&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    print(f&quot;Updated table structure for {table_name}:&quot;)<\/p>\n<p>    for col in columns:<\/p>\n<p>        print(col)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>4.3 \u66f4\u65b0 PostgreSQL \u8868\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u5728 PostgreSQL \u4e2d\uff0c\u53ef\u4ee5\u67e5\u8be2 <code>information_schema<\/code> \u6765\u68c0\u67e5\u8868\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def update_table_structure_postgresql(conn, table_name):<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(f&quot;&quot;&quot;<\/p>\n<p>        SELECT column_name<\/p>\n<p>        FROM information_schema.columns<\/p>\n<p>        WHERE table_name = &#39;{table_name}&#39;<\/p>\n<p>    &quot;&quot;&quot;)<\/p>\n<p>    columns = cursor.fetchall()<\/p>\n<p>    print(f&quot;Updated table structure for {table_name}:&quot;)<\/p>\n<p>    for col in columns:<\/p>\n<p>        print(col)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<h2><strong>\u4e94\u3001\u793a\u4f8b\u5e94\u7528<\/strong><\/h2>\n<p><p>\u4e3a\u4e86\u66f4\u6e05\u6670\u5730\u5c55\u793a\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u4e0b\u9762\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u793a\u4f8b\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><h3>5.1 SQLite \u793a\u4f8b\u5e94\u7528<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">db_name = &#39;example.db&#39;<\/p>\n<p>table_name = &#39;example_table&#39;<\/p>\n<p>conn = connect_to_sqlite(db_name)<\/p>\n<p>if conn:<\/p>\n<p>    remove_first_column_sqlite(conn, table_name)<\/p>\n<p>    update_table_structure_sqlite(conn, table_name)<\/p>\n<p>    conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5.2 MySQL \u793a\u4f8b\u5e94\u7528<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">user = &#39;user&#39;<\/p>\n<p>password = &#39;password&#39;<\/p>\n<p>host = &#39;localhost&#39;<\/p>\n<p>database = &#39;example_db&#39;<\/p>\n<p>table_name = &#39;example_table&#39;<\/p>\n<p>conn = connect_to_mysql(user, password, host, database)<\/p>\n<p>if conn:<\/p>\n<p>    remove_first_column_mysql(conn, table_name)<\/p>\n<p>    update_table_structure_mysql(conn, table_name)<\/p>\n<p>    conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>5.3 PostgreSQL \u793a\u4f8b\u5e94\u7528<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">user = &#39;user&#39;<\/p>\n<p>password = &#39;password&#39;<\/p>\n<p>host = &#39;localhost&#39;<\/p>\n<p>database = &#39;example_db&#39;<\/p>\n<p>table_name = &#39;example_table&#39;<\/p>\n<p>conn = connect_to_postgresql(user, password, host, database)<\/p>\n<p>if conn:<\/p>\n<p>    remove_first_column_postgresql(conn, table_name)<\/p>\n<p>    update_table_structure_postgresql(conn, table_name)<\/p>\n<p>    conn.close()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0a\u6b65\u9aa4\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u7b2c\u4e00\u5217\uff0c\u5305\u62ec\u8fde\u63a5\u6570\u636e\u5e93\u3001\u83b7\u53d6\u8868\u4fe1\u606f\u3001\u5220\u9664\u5217\u548c\u66f4\u65b0\u8868\u7ed3\u6784\u3002\u4e0d\u540c\u6570\u636e\u5e93\u6709\u4e0d\u540c\u7684\u5904\u7406\u65b9\u6cd5\uff0c\u4f46\u6838\u5fc3\u601d\u60f3\u662f\u4e00\u81f4\u7684\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u80fd\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7406\u89e3\u548c\u64cd\u4f5c\u6570\u636e\u5e93\u5217\u7684\u5220\u9664\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8fde\u63a5\u6570\u636e\u5e93\u4ee5\u8fdb\u884c\u64cd\u4f5c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5e93\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u5982SQLite\u3001MySQL\u3001PostgreSQL\u7b49\u3002\u5bf9\u4e8eSQLite\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684sqlite3\u5e93\u3002\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165sqlite3\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>connect()<\/code>\u65b9\u6cd5\u8fde\u63a5\u5230\u6570\u636e\u5e93\uff0c\u63a5\u7740\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6e38\u6807\u5bf9\u8c61\u6765\u6267\u884cSQL\u8bed\u53e5\u3002<\/p>\n<p><strong>\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u4e00\u5217\u4f1a\u5f71\u54cd\u5176\u4ed6\u5217\u5417\uff1f<\/strong><br \/>\u5220\u9664\u4e00\u5217\u901a\u5e38\u4e0d\u4f1a\u76f4\u63a5\u5f71\u54cd\u5176\u4ed6\u5217\u7684\u6570\u636e\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u76f8\u5173\u7684\u7ea6\u675f\u6761\u4ef6\u53ef\u80fd\u4f1a\u53d7\u5230\u5f71\u54cd\u3002\u5982\u679c\u5b58\u5728\u5916\u952e\u7ea6\u675f\u6216\u89e6\u53d1\u5668\uff0c\u5220\u9664\u8be5\u5217\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9519\u8bef\u3002\u56e0\u6b64\uff0c\u786e\u4fdd\u5728\u8fdb\u884c\u64cd\u4f5c\u524d\u5907\u4efd\u6570\u636e\uff0c\u5e76\u68c0\u67e5\u6570\u636e\u5e93\u7ed3\u6784\u3002<\/p>\n<p><strong>\u5728\u5220\u9664\u5217\u4e4b\u524d\uff0c\u5982\u4f55\u68c0\u67e5\u6570\u636e\u5e93\u8868\u7684\u7ed3\u6784\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528SQL\u8bed\u53e5<code>PRAGMA table_info(table_name);<\/code>\uff08\u5bf9\u4e8eSQLite\uff09\u6216<code>DESCRIBE table_name;<\/code>\uff08\u5bf9\u4e8eMySQL\uff09\u6765\u67e5\u770b\u8868\u7ed3\u6784\u3002\u8fd9\u4e9b\u547d\u4ee4\u5c06\u5217\u51fa\u8868\u4e2d\u7684\u6240\u6709\u5217\u53ca\u5176\u6570\u636e\u7c7b\u578b\u548c\u7ea6\u675f\u6761\u4ef6\uff0c\u6709\u52a9\u4e8e\u4e86\u89e3\u5220\u9664\u64cd\u4f5c\u7684\u6f5c\u5728\u5f71\u54cd\u3002<\/p>\n<p><strong>\u5220\u9664\u5217\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u64cd\u4f5c\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5728\u5220\u9664\u5217\u4e4b\u540e\uff0c\u53ef\u4ee5\u518d\u6b21\u4f7f\u7528\u67e5\u770b\u8868\u7ed3\u6784\u7684SQL\u547d\u4ee4\u6765\u786e\u8ba4\u8be5\u5217\u5df2\u88ab\u6210\u529f\u5220\u9664\u3002\u6b64\u5916\uff0c\u901a\u8fc7\u6267\u884c\u7b80\u5355\u7684\u67e5\u8be2\u6765\u786e\u4fdd\u5176\u4ed6\u6570\u636e\u7684\u5b8c\u6574\u6027\u548c\u51c6\u786e\u6027\uff0c\u786e\u4fdd\u6ca1\u6709\u5f71\u54cd\u5230\u5176\u4ed6\u5217\u7684\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5220\u9664\u6570\u636e\u5e93\u4e2d\u7684\u7b2c\u4e00\u5217\u901a\u5e38\u662f\u4e00\u4e2a\u9700\u8981\u8c28\u614e\u5904\u7406\u7684\u64cd\u4f5c\uff0c\u4e3b\u8981\u6b65\u9aa4\u5305\u62ec\uff1a\u8fde\u63a5\u6570\u636e\u5e93\u3001\u83b7\u53d6\u8868\u4fe1\u606f\u3001\u5220\u9664\u5217\u3001\u66f4\u65b0\u8868\u7ed3\u6784\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1130745,"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\/1130730"}],"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=1130730"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130730\/revisions"}],"predecessor-version":[{"id":1130746,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130730\/revisions\/1130746"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1130745"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1130730"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1130730"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1130730"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}