{"id":1128656,"date":"2025-01-08T20:22:36","date_gmt":"2025-01-08T12:22:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1128656.html"},"modified":"2025-01-08T20:22:39","modified_gmt":"2025-01-08T12:22:39","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%87%a0%e4%b8%aa%e4%b8%8d%e9%87%8d%e5%a4%8d%e7%9a%84%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1128656.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\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\/25095322\/4639b502-21d1-44b4-856c-69409d7f1f23.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93\" \/><\/p>\n<p><h3>PYTHON\u5982\u4f55\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93<\/h3>\n<\/p>\n<p><p><strong>\u5728\u4f7f\u7528Python\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6838\u5fc3\u65b9\u6cd5\uff1a\u6570\u636e\u54c8\u5e0c\u3001\u6570\u636e\u91c7\u6837\u6bd4\u8f83\u3001\u4f7f\u7528\u6570\u636e\u5e93\u7279\u6709\u7684\u6821\u9a8c\u5de5\u5177\u3001\u9010\u884c\u6bd4\u8f83\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u6570\u636e\u54c8\u5e0c<\/strong>\u662f\u4e00\u79cd\u5e38\u7528\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8ba1\u7b97\u6570\u636e\u7684\u54c8\u5e0c\u503c\u6765\u8fdb\u884c\u5feb\u901f\u6bd4\u8f83\uff0c\u786e\u4fdd\u6570\u636e\u7684\u4e00\u81f4\u6027\u6216\u627e\u51fa\u5dee\u5f02\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u6570\u636e\u54c8\u5e0c<\/h3>\n<\/p>\n<p><p>\u6570\u636e\u54c8\u5e0c\u662f\u4e00\u79cd\u901a\u8fc7\u8ba1\u7b97\u6570\u636e\u7684\u54c8\u5e0c\u503c\u6765\u8fdb\u884c\u5feb\u901f\u6bd4\u8f83\u7684\u65b9\u6cd5\u3002\u54c8\u5e0c\u503c\u662f\u4e00\u79cd\u4ece\u6570\u636e\u4e2d\u751f\u6210\u7684\u552f\u4e00\u6570\u503c\uff0c\u5177\u6709\u56fa\u5b9a\u957f\u5ea6\u3002Python\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684hashlib\u5e93\u6765\u8ba1\u7b97\u54c8\u5e0c\u503c\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u6570\u636e\u54c8\u5e0c\u7684\u65b9\u6cd5\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u6570\u636e\u54c8\u5e0c\u8ba1\u7b97<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528hashlib\u5e93\u8ba1\u7b97\u6570\u636e\u7684\u54c8\u5e0c\u503c\u3002\u53ef\u4ee5\u9009\u62e9MD5\u3001SHA-1\u3001SHA-256\u7b49\u54c8\u5e0c\u7b97\u6cd5\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u8ba1\u7b97\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u54c8\u5e0c\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import hashlib<\/p>\n<p>def calculate_hash(data):<\/p>\n<p>    hash_object = hashlib.md5(data.encode())<\/p>\n<p>    return hash_object.hexdigest()<\/p>\n<p>data1 = &quot;example data&quot;<\/p>\n<p>data2 = &quot;example data&quot;<\/p>\n<p>hash1 = calculate_hash(data1)<\/p>\n<p>hash2 = calculate_hash(data2)<\/p>\n<p>if hash1 == hash2:<\/p>\n<p>    print(&quot;\u6570\u636e\u4e00\u81f4&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6570\u636e\u4e0d\u4e00\u81f4&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6570\u636e\u5e93\u6570\u636e\u54c8\u5e0c<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u9010\u884c\u8bfb\u53d6\u6570\u636e\u5e76\u8ba1\u7b97\u6bcf\u884c\u6570\u636e\u7684\u54c8\u5e0c\u503c\u3002\u7136\u540e\uff0c\u5c06\u54c8\u5e0c\u503c\u5b58\u50a8\u5728\u4e00\u4e2a\u96c6\u5408\u6216\u5217\u8868\u4e2d\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import hashlib<\/p>\n<p>import sqlite3<\/p>\n<p>def calculate_hash(data):<\/p>\n<p>    hash_object = hashlib.md5(data.encode())<\/p>\n<p>    return hash_object.hexdigest()<\/p>\n<p>def get_database_hashes(db_path):<\/p>\n<p>    conn = sqlite3.connect(db_path)<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&quot;SELECT * FROM my_table&quot;)<\/p>\n<p>    rows = cursor.fetchall()<\/p>\n<p>    conn.close()<\/p>\n<p>    hashes = set()<\/p>\n<p>    for row in rows:<\/p>\n<p>        row_data = &#39;&#39;.join(map(str, row))<\/p>\n<p>        row_hash = calculate_hash(row_data)<\/p>\n<p>        hashes.add(row_hash)<\/p>\n<p>    return hashes<\/p>\n<p>db1_hashes = get_database_hashes(&#39;database1.db&#39;)<\/p>\n<p>db2_hashes = get_database_hashes(&#39;database2.db&#39;)<\/p>\n<p>if db1_hashes == db2_hashes:<\/p>\n<p>    print(&quot;\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u6570\u636e\u4e00\u81f4&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u6570\u636e\u4e0d\u4e00\u81f4&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u6570\u636e\u91c7\u6837\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u6570\u636e\u91c7\u6837\u6bd4\u8f83\u662f\u4e00\u79cd\u901a\u8fc7\u968f\u673a\u9009\u62e9\u6570\u636e\u6837\u672c\u8fdb\u884c\u6bd4\u8f83\u7684\u65b9\u6cd5\u3002\u867d\u7136\u4e0d\u80fd\u4fdd\u8bc1\u5b8c\u5168\u51c6\u786e\uff0c\u4f46\u53ef\u4ee5\u5927\u5927\u51cf\u5c11\u6bd4\u8f83\u7684\u5de5\u4f5c\u91cf\u3002<\/p>\n<\/p>\n<p><h4>1. \u968f\u673a\u91c7\u6837<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u968f\u673a\u9009\u62e9\u4e00\u5b9a\u6570\u91cf\u7684\u6570\u636e\u6837\u672c\uff0c\u8fdb\u884c\u54c8\u5e0c\u6bd4\u8f83\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684random\u5e93\u8fdb\u884c\u968f\u673a\u91c7\u6837\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>import hashlib<\/p>\n<p>import sqlite3<\/p>\n<p>def calculate_hash(data):<\/p>\n<p>    hash_object = hashlib.md5(data.encode())<\/p>\n<p>    return hash_object.hexdigest()<\/p>\n<p>def get_random_sample(db_path, sample_size):<\/p>\n<p>    conn = sqlite3.connect(db_path)<\/p>\n<p>    cursor = conn.cursor()<\/p>\n<p>    cursor.execute(&quot;SELECT * FROM my_table&quot;)<\/p>\n<p>    rows = cursor.fetchall()<\/p>\n<p>    conn.close()<\/p>\n<p>    sample = random.sample(rows, sample_size)<\/p>\n<p>    return sample<\/p>\n<p>def compare_samples(sample1, sample2):<\/p>\n<p>    hashes1 = set(calculate_hash(&#39;&#39;.join(map(str, row))) for row in sample1)<\/p>\n<p>    hashes2 = set(calculate_hash(&#39;&#39;.join(map(str, row))) for row in sample2)<\/p>\n<p>    return hashes1 == hashes2<\/p>\n<p>sample_size = 100<\/p>\n<p>db1_sample = get_random_sample(&#39;database1.db&#39;, sample_size)<\/p>\n<p>db2_sample = get_random_sample(&#39;database2.db&#39;, sample_size)<\/p>\n<p>if compare_samples(db1_sample, db2_sample):<\/p>\n<p>    print(&quot;\u6837\u672c\u6570\u636e\u4e00\u81f4&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6837\u672c\u6570\u636e\u4e0d\u4e00\u81f4&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6570\u636e\u5e93\u7279\u6709\u7684\u6821\u9a8c\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u6570\u636e\u5e93\u7cfb\u7edf\u63d0\u4f9b\u4e86\u5404\u81ea\u7684\u6821\u9a8c\u5de5\u5177\uff0c\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u5de5\u5177\u8fdb\u884c\u6570\u636e\u4e00\u81f4\u6027\u68c0\u67e5\u3002\u4f8b\u5982\uff0cMySQL\u7684CHECKSUM TABLE\u547d\u4ee4\uff0cPostgreSQL\u7684pg_dump\u5de5\u5177\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. MySQL\u6821\u9a8c\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528MySQL\u7684CHECKSUM TABLE\u547d\u4ee4\uff0c\u53ef\u4ee5\u8ba1\u7b97\u8868\u7684\u6821\u9a8c\u548c\uff0c\u6bd4\u8f83\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u6821\u9a8c\u548c\u662f\u5426\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sql\">CHECKSUM TABLE my_table;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. PostgreSQL\u6821\u9a8c\u5de5\u5177<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528PostgreSQL\u7684pg_dump\u5de5\u5177\uff0c\u53ef\u4ee5\u5bfc\u51fa\u6570\u636e\u5e93\u7684\u7ed3\u6784\u548c\u6570\u636e\uff0c\u7136\u540e\u901a\u8fc7\u6bd4\u8f83\u5bfc\u51fa\u7684\u6587\u4ef6\u6765\u68c0\u67e5\u6570\u636e\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pg_dump -U username -h hostname -F c -b -v -f &quot;backupfile.backup&quot; dbname<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u9010\u884c\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u9010\u884c\u6bd4\u8f83\u662f\u4e00\u79cd\u76f4\u63a5\u6bd4\u8f83\u4e24\u4e2a\u6570\u636e\u5e93\u4e2d\u6bcf\u4e00\u884c\u6570\u636e\u7684\u65b9\u6cd5\u3002\u867d\u7136\u8017\u65f6\u8f83\u957f\uff0c\u4f46\u53ef\u4ee5\u786e\u4fdd\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002<\/p>\n<\/p>\n<p><h4>1. \u9010\u884c\u8bfb\u53d6\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u9010\u884c\u8bfb\u53d6\u4e24\u4e2a\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\uff0c\u8fdb\u884c\u9010\u884c\u6bd4\u8f83\u3002\u5982\u679c\u53d1\u73b0\u4e0d\u4e00\u81f4\u7684\u884c\uff0c\u53ef\u4ee5\u8bb0\u5f55\u5e76\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def compare_databases(db1_path, db2_path):<\/p>\n<p>    conn1 = sqlite3.connect(db1_path)<\/p>\n<p>    conn2 = sqlite3.connect(db2_path)<\/p>\n<p>    cursor1 = conn1.cursor()<\/p>\n<p>    cursor2 = conn2.cursor()<\/p>\n<p>    cursor1.execute(&quot;SELECT * FROM my_table&quot;)<\/p>\n<p>    cursor2.execute(&quot;SELECT * FROM my_table&quot;)<\/p>\n<p>    rows1 = cursor1.fetchall()<\/p>\n<p>    rows2 = cursor2.fetchall()<\/p>\n<p>    conn1.close()<\/p>\n<p>    conn2.close()<\/p>\n<p>    if len(rows1) != len(rows2):<\/p>\n<p>        print(&quot;\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u884c\u6570\u4e0d\u540c&quot;)<\/p>\n<p>        return<\/p>\n<p>    for row1, row2 in zip(rows1, rows2):<\/p>\n<p>        if row1 != row2:<\/p>\n<p>            print(f&quot;\u4e0d\u4e00\u81f4\u7684\u884c\uff1a\\n\u6570\u636e\u5e931\uff1a{row1}\\n\u6570\u636e\u5e932\uff1a{row2}&quot;)<\/p>\n<p>compare_databases(&#39;database1.db&#39;, &#39;database2.db&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>\u5728Python\u4e2d\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u6570\u636e\u54c8\u5e0c\u3001\u6570\u636e\u91c7\u6837\u6bd4\u8f83\u3001\u4f7f\u7528\u6570\u636e\u5e93\u7279\u6709\u7684\u6821\u9a8c\u5de5\u5177\u548c\u9010\u884c\u6bd4\u8f83\u7684\u65b9\u6cd5\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u6570\u636e\u54c8\u5e0c<\/strong>\u662f\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u8ba1\u7b97\u6570\u636e\u7684\u54c8\u5e0c\u503c\u6765\u8fdb\u884c\u5feb\u901f\u6bd4\u8f83\uff1b\u6570\u636e\u91c7\u6837\u6bd4\u8f83\u9002\u7528\u4e8e\u5927\u6570\u636e\u91cf\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u51cf\u5c11\u6bd4\u8f83\u7684\u5de5\u4f5c\u91cf\uff1b\u4f7f\u7528\u6570\u636e\u5e93\u7279\u6709\u7684\u6821\u9a8c\u5de5\u5177\u53ef\u4ee5\u5229\u7528\u6570\u636e\u5e93\u7cfb\u7edf\u63d0\u4f9b\u7684\u5de5\u5177\u8fdb\u884c\u6821\u9a8c\uff1b\u9010\u884c\u6bd4\u8f83\u867d\u7136\u8017\u65f6\u8f83\u957f\uff0c\u4f46\u53ef\u4ee5\u786e\u4fdd\u7ed3\u679c\u7684\u51c6\u786e\u6027\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u5e93\u89c4\u6a21\uff0c\u53ef\u4ee5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u8fdb\u884c\u6570\u636e\u4e00\u81f4\u6027\u68c0\u67e5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8fde\u63a5\u591a\u4e2a\u6570\u636e\u5e93\u4ee5\u8fdb\u884c\u4e0d\u91cd\u590d\u6027\u68c0\u67e5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982SQLAlchemy\u6216pymysql\u6765\u8fde\u63a5\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u5e93\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5b89\u88c5\u76f8\u5173\u5e93\u3002\u7136\u540e\uff0c\u4f7f\u7528\u9002\u5f53\u7684\u6570\u636e\u5e93\u8fde\u63a5\u5b57\u7b26\u4e32\u8fde\u63a5\u5230\u6bcf\u4e2a\u6570\u636e\u5e93\u3002\u5728\u8fde\u63a5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6267\u884cSQL\u67e5\u8be2\u6765\u68c0\u67e5\u6570\u636e\u7684\u552f\u4e00\u6027\uff0c\u4f8b\u5982\u4f7f\u7528<code>SELECT DISTINCT<\/code>\u8bed\u53e5\u6765\u83b7\u53d6\u4e0d\u91cd\u590d\u7684\u8bb0\u5f55\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u6bd4\u8f83\u4e24\u4e2a\u6570\u636e\u5e93\u7684\u8bb0\u5f55\u4ee5\u627e\u51fa\u91cd\u590d\u9879\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u5c06\u4e24\u4e2a\u6570\u636e\u5e93\u4e2d\u7684\u8bb0\u5f55\u52a0\u8f7d\u5230Pandas DataFrame\u4e2d\u8fdb\u884c\u6bd4\u8f83\u3002\u4f7f\u7528<code>merge()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u5730\u627e\u5230\u91cd\u590d\u9879\u3002\u901a\u8fc7\u8bbe\u7f6e<code>how=&#39;inner&#39;<\/code>\u53c2\u6570\uff0c\u60a8\u5c06\u80fd\u591f\u83b7\u53d6\u4e24\u4e2a\u6570\u636e\u96c6\u4e2d\u5171\u4eab\u7684\u8bb0\u5f55\uff0c\u8fdb\u800c\u8bc6\u522b\u51fa\u54ea\u4e9b\u6570\u636e\u662f\u91cd\u590d\u7684\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709Python\u5e93\u53ef\u4ee5\u7b80\u5316\u4e0d\u91cd\u590d\u6570\u636e\u7684\u67e5\u627e\u8fc7\u7a0b\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u4e2d\u6709\u8bb8\u591a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u7b80\u5316\u8fd9\u4e00\u8fc7\u7a0b\u3002\u4f8b\u5982\uff0cPandas\u5e93\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u8bfb\u53d6\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\u5e76\u8fdb\u884c\u53bb\u91cd\u64cd\u4f5c\u3002\u6b64\u5916\uff0c\u4f7f\u7528SQLAlchemy\u53ef\u4ee5\u76f4\u63a5\u5728SQL\u5c42\u9762\u53bb\u91cd\uff0c\u7ed3\u5408Python\u7684\u903b\u8f91\u5904\u7406\uff0c\u80fd\u591f\u9ad8\u6548\u5730\u5b8c\u6210\u4e0d\u91cd\u590d\u6570\u636e\u7684\u67e5\u627e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"PYTHON\u5982\u4f55\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93 \u5728\u4f7f\u7528Python\u5224\u65ad\u51e0\u4e2a\u4e0d\u91cd\u590d\u7684\u6570\u636e\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6838\u5fc3\u65b9\u6cd5\uff1a\u6570\u636e [&hellip;]","protected":false},"author":3,"featured_media":1128664,"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\/1128656"}],"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=1128656"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128656\/revisions"}],"predecessor-version":[{"id":1128665,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128656\/revisions\/1128665"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1128664"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1128656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1128656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1128656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}