{"id":204851,"date":"2025-05-29T16:58:03","date_gmt":"2025-05-29T08:58:03","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204851\/"},"modified":"2025-05-29T16:58:03","modified_gmt":"2025-05-29T08:58:03","slug":"%e9%80%82%e5%90%88%e5%88%9d%e5%ad%a6%e8%80%85%e7%9a%84-python-%e9%a1%b9%e7%9b%ae%e5%8f%8a%e5%85%b6%e6%ba%90%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204851\/","title":{"rendered":"\u9002\u5408\u521d\u5b66\u8005\u7684 Python \u9879\u76ee\u53ca\u5176\u6e90\u4ee3\u7801"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u9002\u5408\u521d\u5b66\u8005\u7684 Python \u9879\u76ee\u53ca\u5176\u6e90\u4ee3\u7801<\/h1>\n<p>\u5728IT\u884c\u4e1a\u8fd9\u4e2a\u53d1\u5c55\u66f4\u65b0\u901f\u5ea6\u5f88\u5feb\u7684\u884c\u4e1a\uff0c\u53ea\u6709\u4e0d\u505c\u6b62\u7684\u5b66\u4e60\uff0c\u624d\u4e0d\u4f1a\u88ab\u884c\u4e1a\u6240\u6dd8\u6c70\u3002\u5982\u679c\u4f60\u662f\u6587\u7ae0\u5b66\u4e60\u8005\uff0c\u90a3\u4e48\u672c\u6587\u300a\u9002\u5408\u521d\u5b66\u8005\u7684 Python \u9879\u76ee\u53ca\u5176\u6e90\u4ee3\u7801\u300b\u5c31\u5f88\u9002\u5408\u4f60\uff01\u672c\u7bc7\u5185\u5bb9\u4e3b\u8981\u5305\u62ec##content_title##\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff0c\u52a9\u529b\u5b9e\u6218\u5f00\u53d1\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241117\/17318459326739df2c12a55.jpg\" class=\"aligncenter\"><\/p>\n<p>\u4ece\u9002\u5408\u521d\u5b66\u8005\u7684 python \u9879\u76ee\u5f00\u59cb\u662f\u5de9\u56fa\u60a8\u5bf9\u7f16\u7801\u57fa\u7840\u77e5\u8bc6\u7684\u7406\u89e3\u7684\u7edd\u4f73\u65b9\u6cd5\u3002\u5f53\u60a8\u4ece\u4e8b\u8fd9\u4e9b\u5c0f\u9879\u76ee\u65f6\uff0c\u60a8\u5c06\u63d0\u9ad8\u57fa\u672c\u6280\u80fd\uff0c\u5305\u62ec\u4f7f\u7528\u6570\u636e\u7c7b\u578b\u3001\u7ba1\u7406\u7528\u6237\u8f93\u5165\u3001\u4f7f\u7528\u6761\u4ef6\u548c\u5904\u7406\u57fa\u672c\u903b\u8f91\u3002\u8fd9\u4e9b\u9879\u76ee\u65e8\u5728\u4f9b\u7f16\u7a0b\u65b0\u624b\u4f7f\u7528\uff0c\u5e76\u5c06\u5e2e\u52a9\u60a8\u4ee5\u5b9e\u7528\u7684\u65b9\u5f0f\u7ec3\u4e60 python \u6982\u5ff5\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u4e94\u4e2a\u6d41\u884c\u7684 python \u9879\u76ee\uff0c\u5e76\u9644\u6709\u5206\u6b65\u6307\u5357\u548c\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u9879\u76ee\uff1f<\/strong><\/p>\n<p>\u8ba1\u7b97\u5668\u662f\u4e00\u4e2a\u7ed3\u5408\u4e86\u7528\u6237\u8f93\u5165\u3001\u51fd\u6570\u5b9a\u4e49\u548c\u57fa\u672c\u7b97\u672f\u7684\u57fa\u7840\u9879\u76ee\u3002\u5b83\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\uff0c\u56e0\u4e3a\u5b83\u6559\u6388\u51fd\u6570\u4f7f\u7528\u548c\u57fa\u672c\u9519\u8bef\u5904\u7406\uff08\u4f8b\u5982\u9664\u4ee5\u96f6\uff09\u7b49\u6838\u5fc3\u6982\u5ff5\u3002\u8be5\u9879\u76ee\u8fd8\u5f3a\u8c03\u53ef\u91cd\u7528\u4ee3\u7801\uff0c\u56e0\u4e3a\u6bcf\u4e2a\u64cd\u4f5c\uff08\u52a0\u6cd5\u3001\u51cf\u6cd5\u7b49\uff09\u90fd\u53ef\u4ee5\u5206\u4e3a\u81ea\u5df1\u7684\u51fd\u6570\u3002<\/p>\n<p><strong>\u9879\u76ee\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u6b64\u8ba1\u7b97\u5668\u6839\u636e\u7528\u6237\u8f93\u5165\u6267\u884c\u57fa\u672c\u8fd0\u7b97 &#8211; \u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u548c\u9664\u6cd5\u3002<\/p>\n<p><strong>\u5206\u6b65\u6307\u5357\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u4e3a\u6bcf\u4e2a\u8fd0\u7b97\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff08\u52a0\u6cd5\u3001\u51cf\u6cd5\u7b49\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u63a5\u53d7\u7528\u6237\u8f93\u5165\u6570\u5b57\u548c\u64cd\u4f5c\u7c7b\u578b\u7684\u4e3b\u51fd\u6570\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u7b80\u5355\u7684\u6761\u4ef6\u68c0\u67e5\u5904\u7406\u9664\u4ee5\u96f6\u3002<\/p>\n<\/li>\n<li>\n<p>\u6839\u636e\u7528\u6237\u8f93\u5165\u8c03\u7528\u9002\u5f53\u7684\u51fd\u6570\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u6e90\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>def add(x, y):\n    return x + y\n\ndef subtract(x, y):\n    return x - y\n\ndef multiply(x, y):\n    return x * y\n\ndef divide(x, y):\n    if y == 0:\n        return \"error: division by zero\"\n    return x \/ y\n\ndef calculator():\n    print(\"select operation: 1. add 2. subtract 3. multiply 4. divide\")\n    choice = input(\"enter choice (1\/2\/3\/4): \")\n    if choice in ('1', '2', '3', '4'):\n        num1 = float(input(\"enter first number: \"))\n        num2 = float(input(\"enter second number: \"))\n\n        if choice == '1':\n            print(f\"result: {add(num1, num2)}\")\n        elif choice == '2':\n            print(f\"result: {subtract(num1, num2)}\")\n        elif choice == '3':\n            print(f\"result: {multiply(num1, num2)}\")\n        elif choice == '4':\n            print(f\"result: {divide(num1, num2)}\")\n    else:\n        print(\"invalid input\")\n\ncalculator()\n\n<\/pre>\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u9879\u76ee\uff1f<\/strong><\/p>\n<p>\u5f85\u529e\u4e8b\u9879\u5217\u8868\u5e94\u7528\u7a0b\u5e8f\u53ef\u5e2e\u52a9\u60a8\u7ec3\u4e60\u6570\u636e\u5b58\u50a8\u3001\u5faa\u73af\u548c\u6761\u4ef6\u3002\u8fd9\u4e5f\u662f\u5728\u63a7\u5236\u53f0\u4e2d\u521b\u5efa\u7528\u6237\u754c\u9762\u7684\u7b80\u5355\u4ecb\u7ecd\u3002\u901a\u8fc7\u4f7f\u7528\u5217\u8868\uff0c\u60a8\u5c06\u5b66\u4e60\u5982\u4f55\u7ba1\u7406\u591a\u4e2a\u9879\u76ee\u4ee5\u53ca\u5982\u4f55\u4f7f\u7528\u5faa\u73af\u6765\u663e\u793a\u548c\u64cd\u4f5c\u6570\u636e\u3002<\/p>\n<p><strong>\u9879\u76ee\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684\u5f85\u529e\u4e8b\u9879\u5217\u8868\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u6dfb\u52a0\u3001\u67e5\u770b\u548c\u5220\u9664\u4efb\u52a1\u3002<\/p>\n<p><strong>\u5206\u6b65\u6307\u5357\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868\u6765\u5b58\u50a8\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u6dfb\u52a0\u3001\u663e\u793a\u548c\u5220\u9664\u4efb\u52a1\u7684\u51fd\u6570\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528\u5faa\u73af\u5bfc\u822a\u83dc\u5355\u9009\u9879\u5e76\u4e3a\u6bcf\u4e2a\u64cd\u4f5c\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3002<\/p>\n<\/li>\n<li>\n<p>\u5c06\u4efb\u52a1\u6253\u5370\u5728\u7f16\u53f7\u5217\u8868\u4e2d\u4ee5\u65b9\u4fbf\u53c2\u8003\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u6e90\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>tasks = []\n\ndef add_task():\n    task = input(\"enter a new task: \")\n    tasks.append(task)\n    print(f\"task '{task}' added.\")\n\ndef view_tasks():\n    if not tasks:\n        print(\"no tasks available.\")\n    else:\n        for i, task in enumerate(tasks, start=1):\n            print(f\"{i}. {task}\")\n\ndef delete_task():\n    view_tasks()\n    try:\n        task_num = int(input(\"enter task number to delete: \")) - 1\n        removed_task = tasks.pop(task_num)\n        print(f\"task '{removed_task}' deleted.\")\n    except (indexerror, valueerror):\n        print(\"invalid task number.\")\n\ndef menu():\n    while true:\n        print(\"\\n1. add task  2. view tasks  3. delete task  4. exit\")\n        choice = input(\"enter your choice: \")\n        if choice == '1':\n            add_task()\n        elif choice == '2':\n            view_tasks()\n        elif choice == '3':\n            delete_task()\n        elif choice == '4':\n            print(\"exiting to-do list app.\")\n            break\n        else:\n            print(\"invalid choice. please try again.\")\n\nmenu()\n\n<\/pre>\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u9879\u76ee\uff1f<\/strong><\/p>\n<p>\u731c\u8c1c\u6e38\u620f\u5411\u60a8\u4ecb\u7ecd\u5faa\u73af\u3001\u6761\u4ef6\u548c\u968f\u673a\u6027\u3002\u8be5\u9879\u76ee\u975e\u5e38\u9002\u5408\u7406\u89e3\u63a7\u5236\u6d41\u548c\u7528\u6237\u4ea4\u4e92\u7684\u57fa\u7840\u77e5\u8bc6\u3002\u5b83\u8fd8\u6559\u60a8\u5904\u7406\u7528\u6237\u53cd\u9988\uff0c\u8fd9\u5bf9\u4e8e\u521b\u5efa\u5f15\u4eba\u5165\u80dc\u7684\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<p><strong>\u9879\u76ee\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5728\u8fd9\u4e2a\u731c\u8c1c\u6e38\u620f\u4e2d\uff0c\u7a0b\u5e8f\u968f\u673a\u9009\u62e9\u4e00\u4e2a\u6570\u5b57\uff0c\u73a9\u5bb6\u5c1d\u8bd5\u5728\u4e00\u5b9a\u8303\u56f4\u5185\u731c\u6d4b\u5b83\u3002<\/p>\n<p><strong>\u5206\u6b65\u6307\u5357\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u4f7f\u7528\u968f\u673a\u6a21\u5757\u751f\u6210\u968f\u673a\u6570\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u5faa\u73af\uff0c\u5141\u8bb8\u73a9\u5bb6\u591a\u6b21\u731c\u6d4b\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5982\u679c\u731c\u6d4b\u8fc7\u9ad8\u6216\u8fc7\u4f4e\uff0c\u8bf7\u63d0\u4f9b\u53cd\u9988\u3002\u4e00\u65e6\u731c\u5230\u6b63\u786e\u7684\u6570\u5b57\uff0c\u5c31\u4f1a\u663e\u793a\u5c1d\u8bd5\u6b21\u6570\u3002<\/p>\n<p><strong>\u6e90\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>import random\n\ndef guessing_game():\n    number_to_guess = random.randint(1, 100)\n    attempts = 0\n    print(\"guess the number between 1 and 100.\")\n\n    while true:\n        guess = int(input(\"enter your guess: \"))\n        attempts += 1\n        if guess &lt; number_to_guess:\n            print(\"too low!\")\n        elif guess &gt; number_to_guess:\n            print(\"too high!\")\n        else:\n            print(f\"congratulations! you've guessed the number in {attempts} attempts.\")\n            break\n\nguessing_game()\n\n<\/pre>\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u9879\u76ee\uff1f<\/strong><\/p>\n<p>\u751f\u6210\u5bc6\u7801\u662f\u4e86\u89e3\u5b57\u7b26\u4e32\u64cd\u4f5c\u548c\u968f\u673a\u6027\u7684\u597d\u65b9\u6cd5\u3002\u8be5\u9879\u76ee\u53ef\u4ee5\u5e2e\u52a9\u60a8\u7ec3\u4e60\u751f\u6210\u968f\u673a\u5e8f\u5217\uff0c\u5e76\u52a0\u5f3a\u60a8\u5bf9\u6570\u636e\u7c7b\u578b\u548c\u7528\u6237\u5b9a\u4e49\u51fd\u6570\u7684\u7406\u89e3\u3002<\/p>\n<p><strong>\u9879\u76ee\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u5bc6\u7801\u751f\u6210\u5668\u6839\u636e\u5b57\u6bcd\u3001\u6570\u5b57\u548c\u7b26\u53f7\u7684\u7ec4\u5408\u521b\u5efa\u968f\u673a\u5bc6\u7801\u3002<\/p>\n<p><strong>\u5206\u6b65\u6307\u5357\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u4f7f\u7528\u5b57\u7b26\u4e32\u548c\u968f\u673a\u6a21\u5757\u521b\u5efa\u5b57\u7b26\u6c60\u3002<\/p>\n<\/li>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\u6765\u968f\u673a\u9009\u62e9\u7528\u6237\u5b9a\u4e49\u7684\u5bc6\u7801\u957f\u5ea6\u7684\u5b57\u7b26\u3002<\/p>\n<\/li>\n<li>\n<p>\u5c06\u751f\u6210\u7684\u5bc6\u7801\u8f93\u51fa\u7ed9\u7528\u6237\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u6e90\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>import string\nimport random\n\ndef generate_password(length):\n    characters = string.ascii_letters + string.digits + string.punctuation\n    password = ''.join(random.choice(characters) for _ in range(length))\n    return password\n\ndef password_generator():\n    length = int(input(\"enter password length: \"))\n    password = generate_password(length)\n    print(f\"generated password: {password}\")\n\npassword_generator()\n\n<\/pre>\n<p><strong>\u4e3a\u4ec0\u4e48\u8fd9\u4e2a\u9879\u76ee\uff1f<\/strong><\/p>\n<p>\u8fd9\u6b3e\u7ecf\u5178\u6e38\u620f\u901a\u8fc7\u6761\u4ef6\u548c\u968f\u673a\u6027\u4ee5\u53ca\u7528\u6237\u8f93\u5165\u5904\u7406\u6765\u589e\u5f3a\u60a8\u7684\u6280\u80fd\u3002\u8fd9\u4e5f\u662f\u5bf9\u6e38\u620f\u903b\u8f91\u548c\u7f16\u5199\u51fd\u6570\u7684\u4e00\u4e2a\u5f88\u597d\u7684\u4ecb\u7ecd\uff0c\u7528\u4e8e\u6bd4\u8f83\u9009\u62e9\u5e76\u786e\u5b9a\u83b7\u80dc\u8005\u3002<\/p>\n<p><strong>\u9879\u76ee\u63cf\u8ff0\uff1a<\/strong><\/p>\n<p>\u6b64\u7248\u672c\u7684\u77f3\u5934\u526a\u5200\u5e03\u8ba9\u73a9\u5bb6\u4e0e\u7535\u8111\u5bf9\u6218\u3002<\/p>\n<p><strong>\u5206\u6b65\u6307\u5357\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u521b\u5efa\u4e00\u4e2a\u9009\u62e9\u5217\u8868\uff08\u77f3\u5934\u3001\u5e03\u3001\u526a\u5200\uff09\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f7f\u7528 random.choice() \u8fdb\u884c\u8ba1\u7b97\u673a\u7684\u79fb\u52a8\uff0c\u4f7f\u7528 input() \u8fdb\u884c\u73a9\u5bb6\u7684\u9009\u62e9\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bd4\u8f83\u9009\u62e9\u4ee5\u786e\u5b9a\u83b7\u80dc\u8005\u3002<\/p>\n<\/li>\n<li>\n<p>\u663e\u793a\u7ed3\u679c\u5e76\u63d0\u793a\u518d\u6b21\u64ad\u653e\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u6e90\u4ee3\u7801\uff1a<\/strong><\/p>\n<pre>import random\n\ndef play_game():\n    choices = [\"rock\", \"paper\", \"scissors\"]\n    computer_choice = random.choice(choices)\n    player_choice = input(\"Enter rock, paper, or scissors: \").lower()\n\n    if player_choice not in choices:\n        print(\"Invalid choice. Please try again.\")\n        return\n\n    print(f\"Computer chose: {computer_choice}\")\n    if player_choice == computer_choice:\n        print(\"It's a tie!\")\n    elif (player_choice == \"rock\" and computer_choice == \"scissors\") or \\\n         (player_choice == \"paper\" and computer_choice == \"rock\") or \\\n         (player_choice == \"scissors\" and computer_choice == \"paper\"):\n        print(\"You win!\")\n    else:\n        print(\"You lose.\")\n\nplay_game()\n\n<\/pre>\n<p>\u5b8c\u6210\u8fd9\u4e9b\u521d\u5b66\u8005 python \u9879\u76ee\u5c06\u4e3a\u60a8\u63d0\u4f9b\u57fa\u672c\u7f16\u7a0b\u6982\u5ff5\u7684\u5b9e\u8df5\u7ecf\u9a8c\u5e76\u63d0\u9ad8\u60a8\u7684\u4fe1\u5fc3\u3002\u6bcf\u4e2a\u9879\u76ee\u90fd\u63d0\u4f9b\u5b9e\u7528\u77e5\u8bc6\uff0c\u968f\u7740\u60a8\u6280\u80fd\u7684\u589e\u957f\uff0c\u8fd9\u4e9b\u77e5\u8bc6\u53ef\u4ee5\u6269\u5c55\u5230\u66f4\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u8bd5\u9a8c\u4ee3\u7801\uff0c\u6dfb\u52a0\u60a8\u81ea\u5df1\u7684\u529f\u80fd\uff0c\u770b\u770b\u60a8\u7684\u521b\u9020\u529b\u5c06\u5e26\u60a8\u8d70\u5411\u4f55\u65b9\uff01<\/p>\n<p><strong>\u5982\u679c\u60a8\u5bf9\u4efb\u4f55\u9879\u76ee\u6709\u4efb\u4f55\u7591\u95ee\u90fd\u53ef\u4ee5\u95ee\u6211\u3002<\/strong><\/p>\n<p>\u6587\u4e2d\u5173\u4e8e\u7684\u77e5\u8bc6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u5bf9\u4f60\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01\u82e5\u662f\u53d7\u76ca\u532a\u6d45\uff0c\u90a3\u5c31\u52a8\u52a8\u9f20\u6807\u6536\u85cf\u8fd9\u7bc7\u300a\u9002\u5408\u521d\u5b66\u8005\u7684 Python \u9879\u76ee\u53ca\u5176\u6e90\u4ee3\u7801\u300b\u6587\u7ae0\u5427\uff0c\u4e5f\u53ef\u5173\u6ce8\u516c\u4f17\u53f7\u4e86\u89e3\u76f8\u5173\u6280\u672f\u6587\u7ae0\u3002<\/p>\n<p>      \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb\u5220\u9664<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9002\u5408\u521d\u5b66\u8005\u7684 Python \u9879\u76ee&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-204851","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=204851"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204851\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}