{"id":176778,"date":"2024-05-08T19:17:49","date_gmt":"2024-05-08T11:17:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/176778.html"},"modified":"2024-05-08T19:18:00","modified_gmt":"2024-05-08T11:18:00","slug":"%e6%80%8e%e4%b9%88%e5%88%a9%e7%94%a8python%e6%8a%8a%e6%97%a5%e6%9c%9f%e5%88%86%e4%b8%ba%e5%91%a8%e6%9c%ab%e5%92%8c%e9%9d%9e%e5%91%a8%e6%9c%ab","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/176778.html","title":{"rendered":"\u600e\u4e48\u5229\u7528Python\u628a\u65e5\u671f\u5206\u4e3a\u5468\u672b\u548c\u975e\u5468\u672b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27060541\/0604e98b-0d5a-4a4d-8bd0-8bb02c9fdc44.webp\" alt=\"\u600e\u4e48\u5229\u7528Python\u628a\u65e5\u671f\u5206\u4e3a\u5468\u672b\u548c\u975e\u5468\u672b\" \/><\/p>\n<p><p>\u4f7f\u7528Python\u533a\u5206\u5468\u672b\u548c\u975e\u5468\u672b\u7684\u65e5\u671f\u662f\u901a\u8fc7\u65e5\u671f\u65f6\u95f4\u5904\u7406\u6a21\u5757\uff08\u5982<code>datetime<\/code>\uff09\u5b9e\u73b0\u7684\u3002\u8981\u8fbe\u6210\u8fd9\u4e2a\u76ee\u7684\uff0c\u9700\u8981\u5224\u65ad\u7ed9\u5b9a\u65e5\u671f\u662f\u5468\u51e0\u3002<strong>\u901a\u5e38\uff0c\u6211\u4eec\u5c06\u661f\u671f\u516d\u548c\u661f\u671f\u65e5\u89c6\u4e3a\u5468\u672b\u3001\u5176\u4ed6\u65e5\u5b50\u5219\u662f\u975e\u5468\u672b<\/strong>\u3002\u5728<code>datetime<\/code>\u6a21\u5757\u4e2d\uff0c<code>weekday()<\/code>\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de0-6\u7684\u6574\u6570\uff0c\u5bf9\u5e94\u5468\u4e00\u81f3\u5468\u65e5\uff0c\u6211\u4eec\u53ef\u4ee5\u5229\u7528\u8fd9\u4e2a\u51fd\u6570\u6765\u5224\u65ad\u3002\u4f8b\u5982\uff0c\u82e5<code>weekday()<\/code>\u8fd4\u56de\u7684\u6570\u5b57\u662f5\u62166\uff0c\u5219\u8bf4\u660e\u662f\u5468\u672b\u3002\u4ee5\u4e0b\u662f\u8fdb\u4e00\u6b65\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><p>\u9996\u5148\u5bfc\u5165Python\u7684<code>datetime<\/code>\u6a21\u5757\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u65e5\u671f\u5bf9\u8c61\u3002\u63a5\u7740\uff0c\u4f7f\u7528<code>weekday()<\/code>\u6216<code>isoweekday()<\/code>\u65b9\u6cd5\u6765\u5224\u65ad\u3002\u5982\u679c<code>weekday()<\/code>\u8fd4\u56de5\uff08\u661f\u671f\u516d\uff09\u62166\uff08\u661f\u671f\u65e5\uff09\uff0c\u6216<code>isoweekday()<\/code>\u8fd4\u56de6\u62167\uff0c\u5219\u65e5\u671f\u662f\u5468\u672b\u3002\u57fa\u4e8e\u8fd9\u4e2a\u903b\u8f91\uff0c\u53ef\u4ee5\u7f16\u5199\u51fd\u6570\u6765\u5206\u7c7b\u65e5\u671f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime, timedelta<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u5b9a\u4e49\u5224\u65ad\u5468\u672b\u7684\u51fd\u6570<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_weekend(date_input):<\/p>\n<p>    if date_input.weekday() == 5 or date_input.weekday() == 6:<\/p>\n<p>        return True<\/p>\n<p>    else:<\/p>\n<p>        return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u793a\u4f8b\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u6bb5\u793a\u4f8b\u4ee3\u7801\uff0c\u6f14\u793a\u5982\u4f55\u4f7f\u7528\u4e0a\u8ff0\u51fd\u6570\u6765\u5224\u65ad\u67d0\u4e2a\u65e5\u671f\u662f\u5468\u672b\u8fd8\u662f\u975e\u5468\u672b\uff0c\u5e76\u6253\u5370\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u51fd\u6570\u8c03\u7528\u548c\u8f93\u51fa\u7ed3\u679c<\/p>\n<p>date_example = datetime(2023, 3, 5)  # 2023\u5e743\u67085\u65e5<\/p>\n<p>if is_weekend(date_example):<\/p>\n<p>    print(f&#039;The date {date_example.strftime(&quot;%Y-%m-%d&quot;)} is a weekend.&#039;)<\/p>\n<p>else:<\/p>\n<p>    print(f&#039;The date {date_example.strftime(&quot;%Y-%m-%d&quot;)} is not a weekend.&#039;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u65e5\u671f\u5206\u4e3a\u5468\u672b\u548c\u975e\u5468\u672b\u5728\u5f88\u591a\u5e94\u7528\u4e2d\u90fd\u5f88\u6709\u7528\uff0c\u6bd4\u5982\u5de5\u4f5c\u65e5\u62a5\u544a\u751f\u6210\u3001\u6d3b\u52a8\u89c4\u5212\u3001\u5546\u4e1a\u9500\u552e\u5206\u6790\u7b49\u7b49\u3002Python\u63d0\u4f9b\u7684\u65e5\u671f\u65f6\u95f4\u5904\u7406\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b8c\u6210\u8fd9\u7c7b\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><h2>\u65e5\u671f\u548c\u65f6\u95f4\u57fa\u7840<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u6df1\u5165\u5730\u7406\u89e3\u65f6\u95f4\u5904\u7406\uff0c\u6211\u4eec\u9996\u5148\u9700\u8981\u638c\u63e1Python\u7684<code>datetime<\/code>\u6a21\u5757\u7684\u57fa\u7840\u77e5\u8bc6\u3002<code>datetime<\/code>\u662fPython\u4e2d\u7528\u4e8e\u7ba1\u7406\u65e5\u671f\u548c\u65f6\u95f4\u7684\u6807\u51c6\u5e93\uff0c\u63d0\u4f9b\u4e86\u7b80\u5355\u800c\u5f3a\u5927\u7684\u65e5\u671f\u548c\u65f6\u95f4\u5904\u7406\u80fd\u529b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001DATETIME\u6a21\u5757\u4ecb\u7ecd<\/p>\n<\/p>\n<p><p><code>datetime<\/code>\u6a21\u5757\u5305\u542b\u51e0\u4e2a\u4e0d\u540c\u7684\u7c7b\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>datetime.date<\/code>\uff1a\u4ee3\u8868\u65e5\u671f\uff0c\u5e38\u7528\u5c5e\u6027\u6709year\u3001month\u548cday\u3002<\/li>\n<li><code>datetime.time<\/code>\uff1a\u4ee3\u8868\u65f6\u95f4\uff0c\u5e38\u7528\u5c5e\u6027hour\u3001minute\u3001second\u7b49\u3002<\/li>\n<li><code>datetime.datetime<\/code>\uff1a\u5305\u542b\u65e5\u671f\u548c\u65f6\u95f4\u4fe1\u606f\u3002<\/li>\n<li><code>datetime.timedelta<\/code>\uff1a\u4ee3\u8868\u4e24\u4e2a<code>datetime<\/code>\u5bf9\u8c61\u4e4b\u95f4\u7684\u65f6\u95f4\u5dee\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u65e5\u671f\u65f6\u95f4\u5bf9\u8c61\u7684\u521b\u5efa<\/p>\n<\/p>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u65e5\u671f\u6216\u65f6\u95f4\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u6784\u9020\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">today_date = datetime.date.today()<\/p>\n<p>now_time = datetime.datetime.now()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u83b7\u53d6\u5230\u5f53\u524d\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><h2>\u5224\u65ad\u5468\u672b\u7684\u903b\u8f91<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7<code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u7684\u65b9\u6cd5\u6765\u786e\u5b9a\u4e00\u4e2a\u65e5\u671f\u662f\u5c5e\u4e8e\u5468\u672b\u8fd8\u662f\u5de5\u4f5c\u65e5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001WEEKDAY()\u548cISOWEEKDAY()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p><code>weekday()<\/code>\u65b9\u6cd5\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u4ece0\uff08\u5468\u4e00\uff09\u52306\uff08\u5468\u65e5\uff09\u7684\u6574\u6570\uff0c\u800c<code>isoweekday()<\/code>\u65b9\u6cd5\u662f\u8fd4\u56de1\uff08\u5468\u4e00\uff09\u52307\uff08\u5468\u65e5\uff09\u7684\u6574\u6570\u3002\u8fd9\u4e24\u4e2a\u65b9\u6cd5\u90fd\u53ef\u4ee5\u7528\u6765\u5224\u65ad\u5468\u672b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def classify_date(date):<\/p>\n<p>    day_of_week = date.weekday()<\/p>\n<p>    return &quot;Weekend&quot; if day_of_week &gt;= 5 else &quot;Weekday&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u793a\u4f8b\u5c55\u793a<\/p>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65e5\u671f\u8303\u56f4\uff0c\u5e76\u5bf9\u6bcf\u4e2a\u65e5\u671f\u8fdb\u884c\u5224\u65ad\uff0c\u6765\u5c55\u793a\u5982\u4f55\u5206\u7c7b\u65e5\u671f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">start_date = datetime.date(2023, 1, 1)<\/p>\n<p>end_date = datetime.date(2023, 1, 31)<\/p>\n<p>delta = timedelta(days=1)<\/p>\n<p>while start_date &lt;= end_date:<\/p>\n<p>    day_type = classify_date(start_date)<\/p>\n<p>    print(f&quot;{start_date} is a {day_type}&quot;)<\/p>\n<p>    start_date += delta<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u65e5\u671f\u5206\u7c7b<\/h2>\n<\/p>\n<p><p>\u5b9e\u9645\u7684\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5904\u7406\u5927\u91cf\u7684\u65e5\u671f\u6570\u636e\uff0c\u5e76\u6309\u7167\u662f\u5426\u662f\u5468\u672b\u8fdb\u884c\u5206\u7c7b\u548c\u6c47\u603b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6279\u91cf\u5904\u7406\u65e5\u671f\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u53ef\u4ee5\u5b9a\u4e49\u51fd\u6570\u5bf9\u65e5\u671f\u6570\u7ec4\u8fdb\u884c\u5206\u7c7b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def classify_dates(dates):<\/p>\n<p>    weekend_dates = []<\/p>\n<p>    weekday_dates = []<\/p>\n<p>    for date in dates:<\/p>\n<p>        if is_weekend(date):<\/p>\n<p>            weekend_dates.append(date)<\/p>\n<p>        else:<\/p>\n<p>            weekday_dates.append(date)<\/p>\n<p>    return weekend_dates, weekday_dates<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u6c47\u603b\u7edf\u8ba1<\/p>\n<\/p>\n<p><p>\u83b7\u53d6\u4e86\u5468\u672b\u548c\u5de5\u4f5c\u65e5\u7684\u65e5\u671f\u540e\uff0c\u53ef\u4ee5\u5bf9\u6570\u636e\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u6c47\u603b\u548c\u5206\u6790\uff0c\u6bd4\u5982\u7edf\u8ba1\u5468\u672b\u548c\u5de5\u4f5c\u65e5\u7684\u6570\u91cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">date_list = [datetime.date(2023, 3, i) for i in range(1, 32)]  # \u521b\u5efa3\u6708\u4efd\u7684\u65e5\u671f\u5217\u8868<\/p>\n<p>weekends, weekdays = classify_dates(date_list)<\/p>\n<p>print(f&quot;Total weekdays: {len(weekdays)}&quot;)<\/p>\n<p>print(f&quot;Total weekends: {len(weekends)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u5c31\u80fd\u6709\u6548\u5730\u4f7f\u7528Python\u6765\u533a\u5206\u548c\u5904\u7406\u5927\u91cf\u7684\u65e5\u671f\u6570\u636e\uff0c\u5c06\u5b83\u4eec\u5b9a\u4e3a\u662f\u5468\u672b\u8fd8\u662f\u975e\u5468\u672b\u3002\u8fd9\u9879\u6280\u80fd\u5728\u6570\u636e\u5206\u6790\u3001\u81ea\u52a8\u62a5\u544a\u751f\u6210\u7b49\u591a\u4e2a\u9886\u57df\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528Python\u5c06\u65e5\u671f\u5206\u4e3a\u5468\u672b\u548c\u975e\u5468\u672b\uff1f<\/strong><\/p>\n<p>Python\u63d0\u4f9b\u4e86datetime\u6a21\u5757\u6765\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002\u8981\u5c06\u65e5\u671f\u5206\u4e3a\u5468\u672b\u548c\u975e\u5468\u672b\uff0c\u53ef\u4ee5\u4f7f\u7528datetime\u6a21\u5757\u4e2d\u7684weekday()\u51fd\u6570\u6765\u5224\u65ad\u65e5\u671f\u662f\u661f\u671f\u51e0\u3002\u5728Python\u4e2d\uff0c\u661f\u671f\u4e00\u5230\u661f\u671f\u65e5\u5206\u522b\u75280\u52306\u6765\u8868\u793a\uff0c\u5176\u4e2d0\u8868\u793a\u661f\u671f\u4e00\uff0c6\u8868\u793a\u661f\u671f\u65e5\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import datetime\n\ndef categorize_date(date):\n    if date.weekday() &lt; 5:  # 0-4 \u8868\u793a\u5de5\u4f5c\u65e5\n        return &quot;\u5de5\u4f5c\u65e5&quot;\n    else:\n        return &quot;\u5468\u672b&quot;\n\n# \u6d4b\u8bd5\u4ee3\u7801\ndate = datetime.datetime.today() # \u83b7\u53d6\u5f53\u524d\u65e5\u671f\ncategory = categorize_date(date)\nprint(&quot;\u4eca\u5929\u662f\uff1a&quot; + date.strftime(&#039;%Y-%m-%d&#039;) + &quot;\uff0c&quot; + &quot;\u5c5e\u4e8e&quot; + category)\n<\/code><\/pre>\n<p><strong>2. \u5982\u4f55\u4f7f\u7528Python\u5224\u65ad\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u65e5\u671f\u662f\u5468\u672b\u8fd8\u662f\u975e\u5468\u672b\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u5224\u65ad\u4e00\u6bb5\u65f6\u95f4\u5185\u7684\u65e5\u671f\u662f\u5468\u672b\u8fd8\u662f\u975e\u5468\u672b\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684datetime\u6a21\u5757\u548ctimedelta\u7c7b\u6765\u5b8c\u6210\u3002\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u8d77\u59cb\u65e5\u671f\u548c\u4e00\u4e2a\u7ed3\u675f\u65e5\u671f\uff0c\u7136\u540e\u4f7f\u7528\u5faa\u73af\u904d\u5386\u8fd9\u4e9b\u65e5\u671f\uff0c\u5e76\u4f7f\u7528weekday()\u51fd\u6570\u5224\u65ad\u6bcf\u4e2a\u65e5\u671f\u662f\u5468\u672b\u8fd8\u662f\u975e\u5468\u672b\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import datetime\n\ndef categorize_dates(start_date, end_date):\n    dates = []\n    current_date = start_date\n\n    while current_date &lt;= end_date:\n        category = categorize_date(current_date)\n        dates.append((current_date, category))\n        current_date += datetime.timedelta(days=1)  # \u9012\u589e\u4e00\u5929\n\n    return dates\n\n# \u6d4b\u8bd5\u4ee3\u7801\nstart_date = datetime.datetime(2022, 1, 1)\nend_date = datetime.datetime(2022, 1, 7)\n\ndates = categorize_dates(start_date, end_date)\nfor date in dates:\n    print(date[0].strftime(&#039;%Y-%m-%d&#039;) + &quot;\uff1a&quot; + date[1])\n<\/code><\/pre>\n<p><strong>3. \u5982\u4f55\u5728Python\u4e2d\u7edf\u8ba1\u4e00\u6bb5\u65f6\u95f4\u5185\u5468\u672b\u7684\u5929\u6570\u548c\u975e\u5468\u672b\u7684\u5929\u6570\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u60f3\u7edf\u8ba1\u4e00\u6bb5\u65f6\u95f4\u5185\u5468\u672b\u7684\u5929\u6570\u548c\u975e\u5468\u672b\u7684\u5929\u6570\uff0c\u4f60\u53ef\u4ee5\u57fa\u4e8e\u4e0a\u9762\u7684\u4ee3\u7801\u7a0d\u4f5c\u4fee\u6539\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import datetime\n\ndef count_weekday_vs_weekend(start_date, end_date):\n    weekday_count = 0\n    weekend_count = 0\n\n    dates = categorize_dates(start_date, end_date)\n    for date in dates:\n        if date[1] == &quot;\u5de5\u4f5c\u65e5&quot;:\n            weekday_count += 1\n        else:\n            weekend_count += 1\n\n    return weekday_count, weekend_count\n\n# \u6d4b\u8bd5\u4ee3\u7801\nstart_date = datetime.datetime(2022, 1, 1)\nend_date = datetime.datetime(2022, 1, 31)\n\nweekday_count, weekend_count = count_weekday_vs_weekend(start_date, end_date)\nprint(&quot;\u5de5\u4f5c\u65e5\u6570\u91cf\uff1a&quot; + str(weekday_count))\nprint(&quot;\u5468\u672b\u6570\u91cf\uff1a&quot; + str(weekend_count))\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u533a\u5206\u5468\u672b\u548c\u975e\u5468\u672b\u7684\u65e5\u671f\u662f\u901a\u8fc7\u65e5\u671f\u65f6\u95f4\u5904\u7406\u6a21\u5757\uff08\u5982datetime\uff09\u5b9e\u73b0\u7684\u3002\u8981\u8fbe\u6210\u8fd9\u4e2a\u76ee\u7684\uff0c\u9700\u8981 [&hellip;]","protected":false},"author":3,"featured_media":176799,"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\/176778"}],"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=176778"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/176778\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/176799"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=176778"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=176778"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=176778"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}