{"id":1127091,"date":"2025-01-08T20:07:12","date_gmt":"2025-01-08T12:07:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1127091.html"},"modified":"2025-01-08T20:07:15","modified_gmt":"2025-01-08T12:07:15","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e6%97%a5%e6%9c%9f%e8%bd%ac%e5%8c%96%e4%b8%ba%e6%95%b0%e5%ad%97%e4%bf%a1%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1127091.html","title":{"rendered":"python\u5982\u4f55\u5c06\u65e5\u671f\u8f6c\u5316\u4e3a\u6570\u5b57\u4fe1\u53f7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094205\/c76a312f-ac81-4f36-8703-3c5c989dd87f.webp\" alt=\"python\u5982\u4f55\u5c06\u65e5\u671f\u8f6c\u5316\u4e3a\u6570\u5b57\u4fe1\u53f7\" \/><\/p>\n<p><p> <strong>Python\u5c06\u65e5\u671f\u8f6c\u5316\u4e3a\u6570\u5b57\u4fe1\u53f7\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u65f6\u95f4\u6233\u3001\u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\u3001\u63d0\u53d6\u65e5\u671f\u7279\u5f81\u3002<\/strong>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\u6765\u7b80\u5316\u5904\u7406\u65f6\u95f4\u7684\u8fc7\u7a0b\uff0c\u4f8b\u5982\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\uff1b\u6211\u4eec\u4e5f\u53ef\u4ee5\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\uff0c\u5982\u5e74-\u6708-\u65e5\uff0c\u8fd9\u6837\u4fbf\u4e8e\u6392\u5e8f\u548c\u7d22\u5f15\uff1b\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u63d0\u53d6\u65e5\u671f\u7279\u5f81\uff0c\u5982\u5e74\u3001\u6708\u3001\u65e5\u3001\u5468\u51e0\u7b49\uff0c\u4fbf\u4e8e\u8fdb\u884c\u7279\u5f81\u5de5\u7a0b\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u65f6\u95f4\u6233<\/h3>\n<\/p>\n<p><p>\u65f6\u95f4\u6233\u662f\u8868\u793a\u65f6\u95f4\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u662f\u81ea1970\u5e741\u67081\u65e5\uff08\u79f0\u4e3aUnix\u7eaa\u5143\uff09\u4ee5\u6765\u7684\u79d2\u6570\u3002Python\u4e2d\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\u3002<\/p>\n<\/p>\n<p><h4>1.1 \u4f7f\u7528<code>datetime<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<h2><strong>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/strong><\/h2>\n<p>def date_to_timestamp(date_str, date_format=&quot;%Y-%m-%d&quot;):<\/p>\n<p>    dt = datetime.datetime.strptime(date_str, date_format)<\/p>\n<p>    timestamp = dt.timestamp()<\/p>\n<p>    return timestamp<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>timestamp = date_to_timestamp(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u7684\u65f6\u95f4\u6233\u4e3a\uff1a{timestamp}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2 \u4f7f\u7528<code>pandas<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/strong><\/h2>\n<p>def date_to_timestamp_pandas(date_str):<\/p>\n<p>    timestamp = pd.to_datetime(date_str).timestamp()<\/p>\n<p>    return timestamp<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>timestamp = date_to_timestamp_pandas(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u7684\u65f6\u95f4\u6233\u4e3a\uff1a{timestamp}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f<\/h3>\n<\/p>\n<p><p>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u5e74\u3001\u6708\u3001\u65e5\u7b49\u7ec4\u6210\u7684\u5e8f\u5217\u683c\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u6392\u5e8f\u548c\u7d22\u5f15\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h4>2.1 \u4f7f\u7528<code>datetime<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<h2><strong>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u5e74\u3001\u6708\u3001\u65e5\u7b49\u683c\u5f0f<\/strong><\/h2>\n<p>def date_to_sequence(date_str, date_format=&quot;%Y-%m-%d&quot;):<\/p>\n<p>    dt = datetime.datetime.strptime(date_str, date_format)<\/p>\n<p>    return dt.year, dt.month, dt.day<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>year, month, day = date_to_sequence(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\uff1a\u5e74={year}, \u6708={month}, \u65e5={day}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2 \u4f7f\u7528<code>pandas<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u5e74\u3001\u6708\u3001\u65e5\u7b49\u683c\u5f0f<\/strong><\/h2>\n<p>def date_to_sequence_pandas(date_str):<\/p>\n<p>    dt = pd.to_datetime(date_str)<\/p>\n<p>    return dt.year, dt.month, dt.day<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>year, month, day = date_to_sequence_pandas(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\uff1a\u5e74={year}, \u6708={month}, \u65e5={day}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u63d0\u53d6\u65e5\u671f\u7279\u5f81<\/h3>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u673a\u5668\u5b66\u4e60\u548c\u6570\u636e\u5206\u6790\u65f6\uff0c\u63d0\u53d6\u65e5\u671f\u7279\u5f81\u662f\u5e38\u7528\u7684\u7279\u5f81\u5de5\u7a0b\u624b\u6bb5\u3002\u5e38\u89c1\u7684\u65e5\u671f\u7279\u5f81\u6709\u5e74\u3001\u6708\u3001\u65e5\u3001\u5468\u51e0\u3001\u5b63\u5ea6\u7b49\u3002<\/p>\n<\/p>\n<p><h4>3.1 \u4f7f\u7528<code>datetime<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import datetime<\/p>\n<h2><strong>\u63d0\u53d6\u65e5\u671f\u7279\u5f81<\/strong><\/h2>\n<p>def extract_date_features(date_str, date_format=&quot;%Y-%m-%d&quot;):<\/p>\n<p>    dt = datetime.datetime.strptime(date_str, date_format)<\/p>\n<p>    features = {<\/p>\n<p>        &quot;year&quot;: dt.year,<\/p>\n<p>        &quot;month&quot;: dt.month,<\/p>\n<p>        &quot;day&quot;: dt.day,<\/p>\n<p>        &quot;weekday&quot;: dt.weekday(),  # \u5468\u51e0\uff080\u8868\u793a\u5468\u4e00\uff0c6\u8868\u793a\u5468\u65e5\uff09<\/p>\n<p>        &quot;quarter&quot;: (dt.month - 1) \/\/ 3 + 1  # \u5b63\u5ea6<\/p>\n<p>    }<\/p>\n<p>    return features<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>features = extract_date_features(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u7684\u7279\u5f81\u4e3a\uff1a{features}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2 \u4f7f\u7528<code>pandas<\/code>\u6a21\u5757<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u63d0\u53d6\u65e5\u671f\u7279\u5f81<\/strong><\/h2>\n<p>def extract_date_features_pandas(date_str):<\/p>\n<p>    dt = pd.to_datetime(date_str)<\/p>\n<p>    features = {<\/p>\n<p>        &quot;year&quot;: dt.year,<\/p>\n<p>        &quot;month&quot;: dt.month,<\/p>\n<p>        &quot;day&quot;: dt.day,<\/p>\n<p>        &quot;weekday&quot;: dt.weekday(),  # \u5468\u51e0\uff080\u8868\u793a\u5468\u4e00\uff0c6\u8868\u793a\u5468\u65e5\uff09<\/p>\n<p>        &quot;quarter&quot;: dt.quarter  # \u5b63\u5ea6<\/p>\n<p>    }<\/p>\n<p>    return features<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>date_str = &quot;2023-10-01&quot;<\/p>\n<p>features = extract_date_features_pandas(date_str)<\/p>\n<p>print(f&quot;\u65e5\u671f {date_str} \u7684\u7279\u5f81\u4e3a\uff1a{features}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\u53ef\u4ee5\u7b80\u5316\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u5de5\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><h4>4.1 \u65f6\u95f4\u5e8f\u5217\u6570\u636e\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u5206\u6790\u662f\u91d1\u878d\u3001\u6c14\u8c61\u7b49\u9886\u57df\u7684\u91cd\u8981\u5e94\u7528\u3002\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u7684\u5b58\u50a8\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u65f6\u95f4\u5e8f\u5217\u6570\u636e<\/strong><\/h2>\n<p>date_range = pd.date_range(start=&quot;2023-01-01&quot;, end=&quot;2023-12-31&quot;, freq=&quot;D&quot;)<\/p>\n<p>data = pd.Series(range(len(date_range)), index=date_range)<\/p>\n<h2><strong>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/strong><\/h2>\n<p>data.index = data.index.map(lambda x: x.timestamp())<\/p>\n<p>print(data.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2 \u673a\u5668\u5b66\u4e60\u7279\u5f81\u5de5\u7a0b<\/h4>\n<\/p>\n<p><p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u65e5\u671f\u7279\u5f81\u53ef\u4ee5\u4f5c\u4e3a\u91cd\u8981\u7684\u8f93\u5165\u7279\u5f81\u3002\u4f8b\u5982\uff0c\u5728\u9500\u552e\u9884\u6d4b\u4e2d\uff0c\u65e5\u671f\u7279\u5f81\u53ef\u4ee5\u5e2e\u52a9\u6a21\u578b\u6355\u6349\u5b63\u8282\u6027\u53d8\u5316\u548c\u5468\u671f\u6027\u8d8b\u52bf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e<\/strong><\/h2>\n<p>data = pd.DataFrame({<\/p>\n<p>    &quot;date&quot;: [&quot;2023-01-01&quot;, &quot;2023-02-01&quot;, &quot;2023-03-01&quot;],<\/p>\n<p>    &quot;sales&quot;: [100, 150, 200]<\/p>\n<p>})<\/p>\n<h2><strong>\u63d0\u53d6\u65e5\u671f\u7279\u5f81<\/strong><\/h2>\n<p>data[&quot;date&quot;] = pd.to_datetime(data[&quot;date&quot;])<\/p>\n<p>data[&quot;year&quot;] = data[&quot;date&quot;].dt.year<\/p>\n<p>data[&quot;month&quot;] = data[&quot;date&quot;].dt.month<\/p>\n<p>data[&quot;day&quot;] = data[&quot;date&quot;].dt.day<\/p>\n<p>data[&quot;weekday&quot;] = data[&quot;date&quot;].dt.weekday<\/p>\n<p>data[&quot;quarter&quot;] = data[&quot;date&quot;].dt.quarter<\/p>\n<p>print(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\u662f\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\u7684\u5e38\u89c1\u9700\u6c42\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u8f6c\u6362\uff0c\u5305\u62ec\u4f7f\u7528\u65f6\u95f4\u6233\u3001\u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\u548c\u63d0\u53d6\u65e5\u671f\u7279\u5f81\u7b49\u3002\u8fd9\u4e9b\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u5316\u4e86\u6570\u636e\u5904\u7406\u7684\u8fc7\u7a0b\uff0c\u8fd8\u53ef\u4ee5\u4e3a\u540e\u7eed\u7684\u6570\u636e\u5206\u6790\u548c\u673a\u5668\u5b66\u4e60\u63d0\u4f9b\u6709\u4ef7\u503c\u7684\u7279\u5f81\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u683c\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>datetime<\/code>\u6a21\u5757\u6765\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002\u901a\u8fc7<code>datetime<\/code>\u5bf9\u8c61\u7684<code>timestamp()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u81ea1970\u5e741\u67081\u65e5\u4ee5\u6765\u7684\u79d2\u6570\uff0c\u4ece\u800c\u5f62\u6210\u6570\u5b57\u4fe1\u53f7\u3002\u4f8b\u5982\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165<code>datetime<\/code>\u6a21\u5757\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a<code>datetime<\/code>\u5bf9\u8c61\uff0c\u6700\u540e\u8c03\u7528<code>timestamp()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u5bf9\u5e94\u7684\u6570\u5b57\u4fe1\u53f7\u3002<\/p>\n<p><strong>\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\u7684\u5e94\u7528\u573a\u666f\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\u5728\u8bb8\u591a\u5e94\u7528\u4e2d\u90fd\u975e\u5e38\u91cd\u8981\uff0c\u4f8b\u5982\u6570\u636e\u5206\u6790\u3001\u65f6\u95f4\u5e8f\u5217\u9884\u6d4b\u548c\u673a\u5668\u5b66\u4e60\u6a21\u578b\u8bad\u7ec3\u3002\u901a\u8fc7\u5c06\u65e5\u671f\u8f6c\u5316\u4e3a\u6570\u5b57\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u8ba1\u7b97\u673a\u66f4\u5bb9\u6613\u5904\u7406\u548c\u5206\u6790\u65f6\u95f4\u76f8\u5173\u7684\u6570\u636e\u3002\u6b64\u5916\uff0c\u8fd9\u79cd\u8f6c\u6362\u8fd8\u53ef\u4ee5\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u65f6\u95f4\u5e8f\u5217\u6570\u636e\u7684\u53d8\u5316\u8d8b\u52bf\u3002<\/p>\n<p><strong>\u5728\u8f6c\u6362\u65e5\u671f\u65f6\uff0c\u5982\u4f55\u5904\u7406\u65f6\u533a\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u65e5\u671f\u8f6c\u6362\u65f6\uff0c\u65f6\u533a\u7684\u5904\u7406\u662f\u4e00\u4e2a\u5173\u952e\u56e0\u7d20\u3002Python\u7684<code>pytz<\/code>\u5e93\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u65f6\u533a\u3002\u4e3a\u4e86\u51c6\u786e\u5730\u5c06\u65e5\u671f\u8f6c\u6362\u4e3a\u6570\u5b57\u4fe1\u53f7\uff0c\u5efa\u8bae\u5728\u521b\u5efa<code>datetime<\/code>\u5bf9\u8c61\u65f6\u660e\u786e\u6307\u5b9a\u65f6\u533a\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pytz.timezone()<\/code>\u6765\u8bbe\u7f6e\u6240\u9700\u7684\u65f6\u533a\uff0c\u786e\u4fdd\u8f6c\u6362\u540e\u7684\u65f6\u95f4\u6233\u662f\u6b63\u786e\u7684\uff0c\u907f\u514d\u56e0\u65f6\u533a\u5dee\u5f02\u5bfc\u81f4\u7684\u6570\u636e\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c06\u65e5\u671f\u8f6c\u5316\u4e3a\u6570\u5b57\u4fe1\u53f7\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u65f6\u95f4\u6233\u3001\u8f6c\u6362\u4e3a\u5e8f\u5217\u683c\u5f0f\u3001\u63d0\u53d6\u65e5\u671f\u7279\u5f81\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5c06\u65e5\u671f\u8f6c\u6362 [&hellip;]","protected":false},"author":3,"featured_media":1127100,"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\/1127091"}],"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=1127091"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1127091\/revisions"}],"predecessor-version":[{"id":1127101,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1127091\/revisions\/1127101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1127100"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1127091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1127091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1127091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}