{"id":1095603,"date":"2025-01-08T14:52:44","date_gmt":"2025-01-08T06:52:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1095603.html"},"modified":"2025-01-08T14:52:46","modified_gmt":"2025-01-08T06:52:46","slug":"python%e5%a6%82%e4%bd%95%e4%bf%9d%e5%ad%98%e7%94%a8%e6%88%b7%e5%90%8d%e5%92%8c%e5%af%86%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1095603.html","title":{"rendered":"python\u5982\u4f55\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211205\/3a945172-a240-40f0-8a7f-419d89ed86e1.webp\" alt=\"python\u5982\u4f55\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u3001\u6570\u636e\u5e93\u3001\u73af\u5883\u53d8\u91cf\u3001\u5bc6\u7801\u7ba1\u7406\u5e93\u7b49<\/strong>\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002\u4e3a\u4e86\u4fdd\u8bc1\u5b89\u5168\u6027\uff0c\u6211\u4eec\u8fd8\u4f1a\u63a2\u8ba8\u4e00\u4e9b\u52a0\u5bc6\u6280\u672f\uff0c\u4ee5\u786e\u4fdd\u7528\u6237\u4fe1\u606f\u7684\u5b89\u5168\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6587\u4ef6\u7cfb\u7edf<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u662f\u4e00\u79cd\u7b80\u5355\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u5c06\u7528\u6237\u540d\u548c\u5bc6\u7801\u4fdd\u5b58\u5230\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\uff0c\u7136\u540e\u5728\u9700\u8981\u65f6\u8bfb\u53d6\u8be5\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u5230\u6587\u672c\u6587\u4ef6<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def save_credentials(username, password, filename=&#39;credentials.txt&#39;):<\/p>\n<p>    with open(filename, &#39;w&#39;) as f:<\/p>\n<p>        f.write(f&#39;{username}\\n&#39;)<\/p>\n<p>        f.write(f&#39;{password}\\n&#39;)<\/p>\n<p>def load_credentials(filename=&#39;credentials.txt&#39;):<\/p>\n<p>    with open(filename, &#39;r&#39;) as f:<\/p>\n<p>        username = f.readline().strip()<\/p>\n<p>        password = f.readline().strip()<\/p>\n<p>    return username, password<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>save_credentials(&#39;myusername&#39;, &#39;mypassword&#39;)<\/p>\n<p>username, password = load_credentials()<\/p>\n<p>print(f&#39;Username: {username}, Password: {password}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u7b80\u5355\u6613\u5b9e\u73b0\uff0c\u9002\u5408\u5c0f\u578b\u9879\u76ee\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u5b89\u5168\u6027\u8f83\u4f4e\uff0c\u5bb9\u6613\u88ab\u6076\u610f\u7528\u6237\u8bfb\u53d6\u3002<\/li>\n<li>\u4e0d\u9002\u5408\u5927\u89c4\u6a21\u7528\u6237\u6570\u636e\u5b58\u50a8\u3002<\/li>\n<\/ul>\n<p><p>\u4e3a\u4e86\u589e\u5f3a\u5b89\u5168\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u5bc6\u7801\u8fdb\u884c\u52a0\u5bc6\u5b58\u50a8\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u52a0\u5bc6\u6280\u672f\u4fdd\u5b58\u5bc6\u7801<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>hashlib<\/code>\u5e93\u6765\u5bf9\u5bc6\u7801\u8fdb\u884c\u54c8\u5e0c\u5904\u7406\uff0c\u7136\u540e\u4fdd\u5b58\u54c8\u5e0c\u503c\u800c\u4e0d\u662f\u660e\u6587\u5bc6\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import hashlib<\/p>\n<p>def hash_password(password):<\/p>\n<p>    return hashlib.sha256(password.encode()).hexdigest()<\/p>\n<p>def save_credentials(username, password, filename=&#39;credentials.txt&#39;):<\/p>\n<p>    hashed_password = hash_password(password)<\/p>\n<p>    with open(filename, &#39;w&#39;) as f:<\/p>\n<p>        f.write(f&#39;{username}\\n&#39;)<\/p>\n<p>        f.write(f&#39;{hashed_password}\\n&#39;)<\/p>\n<p>def verify_password(stored_password, provided_password):<\/p>\n<p>    return stored_password == hash_password(provided_password)<\/p>\n<p>def load_credentials(filename=&#39;credentials.txt&#39;):<\/p>\n<p>    with open(filename, &#39;r&#39;) as f:<\/p>\n<p>        username = f.readline().strip()<\/p>\n<p>        hashed_password = f.readline().strip()<\/p>\n<p>    return username, hashed_password<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>save_credentials(&#39;myusername&#39;, &#39;mypassword&#39;)<\/p>\n<p>username, hashed_password = load_credentials()<\/p>\n<p>print(f&#39;Username: {username}, Hashed Password: {hashed_password}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u6570\u636e\u5e93<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6570\u636e\u5e93\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u662f\u4e00\u79cd\u66f4\u4e13\u4e1a\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5b58\u50a8\u5927\u91cf\u7528\u6237\u6570\u636e\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528SQLite\u3001MySQL\u3001PostgreSQL\u7b49\u6570\u636e\u5e93\u7cfb\u7edf\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528SQLite\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801<\/h3>\n<\/p>\n<p><p>SQLite\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u5d4c\u5165\u5f0f\u6570\u636e\u5e93\uff0c\u9002\u5408\u5c0f\u578b\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>sqlite3<\/code>\u5e93\u6765\u64cd\u4f5cSQLite\u6570\u636e\u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sqlite3<\/p>\n<p>def create_table():<\/p>\n<p>    conn = sqlite3.connect(&#39;users.db&#39;)<\/p>\n<p>    c = conn.cursor()<\/p>\n<p>    c.execute(&#39;&#39;&#39;CREATE TABLE IF NOT EXISTS users<\/p>\n<p>                 (username TEXT PRIMARY KEY, password TEXT)&#39;&#39;&#39;)<\/p>\n<p>    conn.commit()<\/p>\n<p>    conn.close()<\/p>\n<p>def save_credentials(username, password):<\/p>\n<p>    hashed_password = hash_password(password)<\/p>\n<p>    conn = sqlite3.connect(&#39;users.db&#39;)<\/p>\n<p>    c = conn.cursor()<\/p>\n<p>    c.execute(&quot;INSERT INTO users (username, password) VALUES (?, ?)&quot;, (username, hashed_password))<\/p>\n<p>    conn.commit()<\/p>\n<p>    conn.close()<\/p>\n<p>def load_credentials(username):<\/p>\n<p>    conn = sqlite3.connect(&#39;users.db&#39;)<\/p>\n<p>    c = conn.cursor()<\/p>\n<p>    c.execute(&quot;SELECT password FROM users WHERE username=?&quot;, (username,))<\/p>\n<p>    result = c.fetchone()<\/p>\n<p>    conn.close()<\/p>\n<p>    return result[0] if result else None<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>create_table()<\/p>\n<p>save_credentials(&#39;myusername&#39;, &#39;mypassword&#39;)<\/p>\n<p>hashed_password = load_credentials(&#39;myusername&#39;)<\/p>\n<p>print(f&#39;Username: myusername, Hashed Password: {hashed_password}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u6570\u636e\u7ba1\u7406\u66f4\u52a0\u7cfb\u7edf\u5316\uff0c\u9002\u5408\u5927\u89c4\u6a21\u7528\u6237\u6570\u636e\u5b58\u50a8\u3002<\/li>\n<li>\u53ef\u4ee5\u652f\u6301\u5e76\u53d1\u8bbf\u95ee\u548c\u4e8b\u52a1\u5904\u7406\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u5b9e\u73b0\u76f8\u5bf9\u590d\u6742\uff0c\u9700\u8981\u989d\u5916\u7684\u6570\u636e\u5e93\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u662f\u4e00\u79cd\u5b89\u5168\u6027\u8f83\u9ad8\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u654f\u611f\u4fe1\u606f\u7684\u5b58\u50a8\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>os<\/code>\u5e93\u6765\u64cd\u4f5c\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u73af\u5883\u53d8\u91cf\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def save_credentials(username, password):<\/p>\n<p>    os.environ[&#39;USERNAME&#39;] = username<\/p>\n<p>    os.environ[&#39;PASSWORD&#39;] = hash_password(password)<\/p>\n<p>def load_credentials():<\/p>\n<p>    username = os.getenv(&#39;USERNAME&#39;)<\/p>\n<p>    hashed_password = os.getenv(&#39;PASSWORD&#39;)<\/p>\n<p>    return username, hashed_password<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>save_credentials(&#39;myusername&#39;, &#39;mypassword&#39;)<\/p>\n<p>username, hashed_password = load_credentials()<\/p>\n<p>print(f&#39;Username: {username}, Hashed Password: {hashed_password}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u5b89\u5168\u6027\u8f83\u9ad8\uff0c\u654f\u611f\u4fe1\u606f\u4e0d\u4f1a\u76f4\u63a5\u66b4\u9732\u5728\u4ee3\u7801\u4e2d\u3002<\/li>\n<li>\u9002\u5408\u5728\u670d\u52a1\u5668\u7aef\u5e94\u7528\u4e2d\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u4e0d\u9002\u5408\u5927\u89c4\u6a21\u7528\u6237\u6570\u636e\u5b58\u50a8\u3002<\/li>\n<li>\u73af\u5883\u53d8\u91cf\u7684\u7ba1\u7406\u76f8\u5bf9\u7e41\u7410\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u5bc6\u7801\u7ba1\u7406\u5e93<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5bc6\u7801\u7ba1\u7406\u5e93\u662f\u4e00\u79cd\u4e13\u4e1a\u7684\u5bc6\u7801\u7ba1\u7406\u65b9\u6cd5\uff0c\u9002\u5408\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>keyring<\/code>\u5e93\u6765\u7ba1\u7406\u5bc6\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528keyring\u5e93\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801<\/h3>\n<\/p>\n<p><p><code>keyring<\/code>\u5e93\u53ef\u4ee5\u5c06\u5bc6\u7801\u5b58\u50a8\u5728\u7cfb\u7edf\u7684\u5bc6\u7801\u7ba1\u7406\u5668\u4e2d\uff0c\u5982Windows Credential Locker\u3001macOS Keych<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n\u548cLinux Secret Service\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import keyring<\/p>\n<p>def save_credentials(username, password):<\/p>\n<p>    keyring.set_password(&#39;myapp&#39;, username, password)<\/p>\n<p>def load_credentials(username):<\/p>\n<p>    return keyring.get_password(&#39;myapp&#39;, username)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>save_credentials(&#39;myusername&#39;, &#39;mypassword&#39;)<\/p>\n<p>password = load_credentials(&#39;myusername&#39;)<\/p>\n<p>print(f&#39;Username: myusername, Password: {password}&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u5b89\u5168\u6027\u9ad8\uff0c\u5bc6\u7801\u5b58\u50a8\u5728\u7cfb\u7edf\u7684\u5bc6\u7801\u7ba1\u7406\u5668\u4e2d\u3002<\/li>\n<li>\u6613\u4e8e\u4f7f\u7528\uff0c\u9002\u5408\u9700\u8981\u9ad8\u5b89\u5168\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>:<\/p>\n<\/p>\n<ul>\n<li>\u4f9d\u8d56\u4e8e\u7b2c\u4e09\u65b9\u5e93\uff0c\u9700\u8981\u989d\u5916\u7684\u5b89\u88c5\u548c\u914d\u7f6e\u3002<\/li>\n<li>\u53ef\u80fd\u4e0d\u9002\u5408\u6240\u6709\u64cd\u4f5c\u7cfb\u7edf\u3002<\/li>\n<\/ul>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\u7684\u65b9\u6cd5\uff0c\u5305\u62ec\u6587\u4ef6\u7cfb\u7edf\u3001\u6570\u636e\u5e93\u3001\u73af\u5883\u53d8\u91cf\u548c\u5bc6\u7801\u7ba1\u7406\u5e93\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u540c\u65f6\u6ce8\u610f\u6570\u636e\u7684\u5b89\u5168\u6027\uff0c\u786e\u4fdd\u7528\u6237\u4fe1\u606f\u4e0d\u88ab\u6cc4\u9732\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u5168\u5730\u4fdd\u5b58\u7528\u6237\u5bc6\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b89\u5168\u4fdd\u5b58\u7528\u6237\u5bc6\u7801\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4f7f\u7528\u54c8\u5e0c\u7b97\u6cd5\u3002\u53ef\u4ee5\u4f7f\u7528\u5e93\u5982<code>bcrypt<\/code>\u6216<code>argon2<\/code>\u6765\u52a0\u5bc6\u5bc6\u7801\uff0c\u800c\u4e0d\u662f\u4ee5\u660e\u6587\u5f62\u5f0f\u4fdd\u5b58\u3002\u5c06\u7528\u6237\u7684\u5bc6\u7801\u901a\u8fc7\u8fd9\u4e9b\u7b97\u6cd5\u5904\u7406\u540e\uff0c\u5b58\u50a8\u751f\u6210\u7684\u54c8\u5e0c\u503c\u3002\u8fd9\u6837\uff0c\u5373\u4f7f\u6570\u636e\u5e93\u88ab\u653b\u51fb\uff0c\u653b\u51fb\u8005\u4e5f\u65e0\u6cd5\u83b7\u53d6\u660e\u6587\u5bc6\u7801\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u63a8\u8350\u7684\u5e93\u53ef\u4ee5\u7528\u6765\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1f<\/strong><br \/>\u63a8\u8350\u4f7f\u7528<code>sqlite3<\/code>\u914d\u5408<code>bcrypt<\/code>\u6216<code>hashlib<\/code>\u5e93\u3002\u5728\u6570\u636e\u5e93\u4e2d\u521b\u5efa\u4e00\u4e2a\u8868\uff0c\u5b58\u50a8\u7528\u6237\u540d\u548c\u54c8\u5e0c\u540e\u7684\u5bc6\u7801\u3002\u4f7f\u7528<code>sqlite3<\/code>\u53ef\u4ee5\u65b9\u4fbf\u5730\u7ba1\u7406\u7528\u6237\u6570\u636e\uff0c\u800c<code>bcrypt<\/code>\u5219\u80fd\u786e\u4fdd\u5bc6\u7801\u7684\u5b89\u5168\u6027\u3002\u6b64\u5916\uff0c<code>SQLAlchemy<\/code>\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684ORM\u529f\u80fd\uff0c\u7b80\u5316\u6570\u636e\u5e93\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u5bc6\u7801\uff1f<\/strong><br \/>\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u5bc6\u7801\u53ef\u4ee5\u901a\u8fc7\u5c06\u8f93\u5165\u7684\u5bc6\u7801\u8fdb\u884c\u54c8\u5e0c\u5904\u7406\uff0c\u5e76\u4e0e\u5b58\u50a8\u5728\u6570\u636e\u5e93\u4e2d\u7684\u54c8\u5e0c\u503c\u8fdb\u884c\u6bd4\u8f83\u3002\u4f7f\u7528<code>bcrypt<\/code>\u65f6\uff0c\u53ef\u4ee5\u8c03\u7528<code>bcrypt.checkpw()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u5982\u679c\u54c8\u5e0c\u5339\u914d\uff0c\u8bf4\u660e\u8f93\u5165\u7684\u5bc6\u7801\u662f\u6b63\u786e\u7684\u3002\u8fd9\u79cd\u65b9\u5f0f\u786e\u4fdd\u4e86\u7528\u6237\u8ba4\u8bc1\u7684\u5b89\u5168\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u4fdd\u5b58\u7528\u6237\u540d\u548c\u5bc6\u7801\uff1a\u4f7f\u7528\u6587\u4ef6\u7cfb\u7edf\u3001\u6570\u636e\u5e93\u3001\u73af\u5883\u53d8\u91cf\u3001\u5bc6\u7801\u7ba1\u7406\u5e93\u7b49\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u8be6\u7ec6 [&hellip;]","protected":false},"author":3,"featured_media":1095608,"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\/1095603"}],"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=1095603"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1095603\/revisions"}],"predecessor-version":[{"id":1095609,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1095603\/revisions\/1095609"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1095608"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1095603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1095603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1095603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}