{"id":1097348,"date":"2025-01-08T15:11:01","date_gmt":"2025-01-08T07:11:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097348.html"},"modified":"2025-01-08T15:11:04","modified_gmt":"2025-01-08T07:11:04","slug":"%e7%94%a8python%e5%a6%82%e4%bd%95%e5%86%99%e9%aa%b0%e5%ad%90%e4%bb%a3%e7%a0%81-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1097348.html","title":{"rendered":"\u7528python\u5982\u4f55\u5199\u9ab0\u5b50\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212147\/ff72c2fb-2bbf-477f-b107-3aadcc7154dd.webp\" alt=\"\u7528python\u5982\u4f55\u5199\u9ab0\u5b50\u4ee3\u7801\" \/><\/p>\n<p><p> <strong>\u7528Python\u7f16\u5199\u9ab0\u5b50\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u5e93\u3001\u5b9a\u4e49\u51fd\u6570\u6765\u6a21\u62df\u63b7\u9ab0\u5b50\u7684\u8fc7\u7a0b\u3001\u4f7f\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad\u6765\u63a7\u5236\u6e38\u620f\u903b\u8f91\u7b49\u3002<\/strong> \u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u4e2d\u7684\u4e00\u79cd\uff0c\u5e76\u9010\u6b65\u5c55\u5f00\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u5b9e\u73b0\u4e00\u4e2a\u63b7\u9ab0\u5b50\u7684\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u5f15\u5165\u968f\u673a\u6570\u751f\u6210\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>random<\/code>\u5e93\u6765\u751f\u6210\u968f\u673a\u6570\uff0c\u8fd9\u5bf9\u4e8e\u6a21\u62df\u63b7\u9ab0\u5b50\u7684\u8fc7\u7a0b\u975e\u5e38\u91cd\u8981\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5bfc\u5165<code>random<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u5b9a\u4e49\u63b7\u9ab0\u5b50\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u4ee3\u7801\u66f4\u5177\u6a21\u5757\u5316\u548c\u53ef\u91cd\u7528\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u6a21\u62df\u63b7\u9ab0\u5b50\u3002\u8fd9\u4e2a\u51fd\u6570\u5c06\u751f\u6210\u4e00\u4e2a1\u52306\u4e4b\u95f4\u7684\u968f\u673a\u6570\uff0c\u5e76\u8fd4\u56de\u8fd9\u4e2a\u6570\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def roll_dice():<\/p>\n<p>    return random.randint(1, 6)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>randint<\/code>\u51fd\u6570\u4f1a\u751f\u6210\u4e00\u4e2a\u6307\u5b9a\u8303\u56f4\u5185\u7684\u968f\u673a\u6574\u6570\uff0c\u8fd9\u91cc\u8303\u56f4\u662f1\u52306\uff0c\u6a21\u62df\u4e86\u4e00\u4e2a\u6807\u51c6\u516d\u9762\u9ab0\u5b50\u7684\u63b7\u9ab0\u5b50\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u8fd0\u884c\u63b7\u9ab0\u5b50\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u73b0\u4e86\u63b7\u9ab0\u5b50\u51fd\u6570\u4e4b\u540e\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u8fd9\u4e2a\u51fd\u6570\u6765\u8fdb\u884c\u63b7\u9ab0\u5b50\uff0c\u5e76\u5c06\u7ed3\u679c\u8f93\u51fa\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    result = roll_dice()<\/p>\n<p>    print(f&quot;\u4f60\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u662f\uff1a{result}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u56db\u3001\u6269\u5c55\u529f\u80fd\uff1a\u591a\u6b21\u63b7\u9ab0\u5b50<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u7a0b\u5e8f\u66f4\u6709\u8da3\uff0c\u53ef\u4ee5\u6dfb\u52a0\u529f\u80fd\u4f7f\u7528\u6237\u80fd\u591f\u9009\u62e9\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff0c\u5e76\u8f93\u51fa\u6bcf\u6b21\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def roll_dice_multiple(times):<\/p>\n<p>    results = []<\/p>\n<p>    for _ in range(times):<\/p>\n<p>        results.append(roll_dice())<\/p>\n<p>    return results<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    num_rolls = int(input(&quot;\u8bf7\u8f93\u5165\u4f60\u60f3\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff1a&quot;))<\/p>\n<p>    results = roll_dice_multiple(num_rolls)<\/p>\n<p>    print(f&quot;\u4f60\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u662f\uff1a{results}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u589e\u52a0\u4e86\u4e00\u4e2a<code>roll_dice_multiple<\/code>\u51fd\u6570\uff0c\u7528\u6237\u53ef\u4ee5\u8f93\u5165\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff0c\u7a0b\u5e8f\u5c06\u591a\u6b21\u8c03\u7528<code>roll_dice<\/code>\u51fd\u6570\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\uff0c\u6700\u7ec8\u8f93\u51fa\u6240\u6709\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e94\u3001\u6dfb\u52a0\u7edf\u8ba1\u529f\u80fd<\/strong><\/p>\n<\/p>\n<p><p>\u8fdb\u4e00\u6b65\u6269\u5c55\u7a0b\u5e8f\uff0c\u589e\u52a0\u7edf\u8ba1\u529f\u80fd\uff0c\u8ba1\u7b97\u6bcf\u4e2a\u70b9\u6570\u51fa\u73b0\u7684\u6b21\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def roll_dice_with_statistics(times):<\/p>\n<p>    results = roll_dice_multiple(times)<\/p>\n<p>    statistics = {i: results.count(i) for i in range(1, 7)}<\/p>\n<p>    return results, statistics<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    num_rolls = int(input(&quot;\u8bf7\u8f93\u5165\u4f60\u60f3\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff1a&quot;))<\/p>\n<p>    results, statistics = roll_dice_with_statistics(num_rolls)<\/p>\n<p>    print(f&quot;\u4f60\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u662f\uff1a{results}&quot;)<\/p>\n<p>    print(f&quot;\u6bcf\u4e2a\u70b9\u6570\u51fa\u73b0\u7684\u6b21\u6570\u662f\uff1a{statistics}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u589e\u52a0\u4e86\u4e00\u4e2a<code>roll_dice_with_statistics<\/code>\u51fd\u6570\uff0c\u8c03\u7528<code>roll_dice_multiple<\/code>\u51fd\u6570\u8fdb\u884c\u591a\u6b21\u63b7\u9ab0\u5b50\uff0c\u5e76\u901a\u8fc7\u7edf\u8ba1\u6bcf\u4e2a\u70b9\u6570\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u5c06\u7ed3\u679c\u548c\u7edf\u8ba1\u4fe1\u606f\u4e00\u5e76\u8fd4\u56de\u3002<\/p>\n<\/p>\n<p><p><strong>\u516d\u3001\u589e\u52a0\u7528\u6237\u4ea4\u4e92\u548c\u9519\u8bef\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u53ef\u4ee5\u589e\u52a0\u4e00\u4e9b\u7528\u6237\u4ea4\u4e92\u548c\u9519\u8bef\u5904\u7406\u529f\u80fd\uff0c\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u6b21\u6570\u662f\u6709\u6548\u7684\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_user_input():<\/p>\n<p>    while True:<\/p>\n<p>        try:<\/p>\n<p>            num_rolls = int(input(&quot;\u8bf7\u8f93\u5165\u4f60\u60f3\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff1a&quot;))<\/p>\n<p>            if num_rolls &lt;= 0:<\/p>\n<p>                print(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5927\u4e8e0\u7684\u6574\u6570\u3002&quot;)<\/p>\n<p>                continue<\/p>\n<p>            return num_rolls<\/p>\n<p>        except ValueError:<\/p>\n<p>            print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570\u3002&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    num_rolls = get_user_input()<\/p>\n<p>    results, statistics = roll_dice_with_statistics(num_rolls)<\/p>\n<p>    print(f&quot;\u4f60\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u662f\uff1a{results}&quot;)<\/p>\n<p>    print(f&quot;\u6bcf\u4e2a\u70b9\u6570\u51fa\u73b0\u7684\u6b21\u6570\u662f\uff1a{statistics}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u589e\u52a0\u4e86\u4e00\u4e2a<code>get_user_input<\/code>\u51fd\u6570\uff0c\u901a\u8fc7\u5faa\u73af\u548c\u5f02\u5e38\u5904\u7406\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u662f\u4e00\u4e2a\u6709\u6548\u7684\u6574\u6570\uff0c\u5e76\u4e14\u5927\u4e8e0\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e03\u3001\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u5b9e\u73b0\u4e86\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684\u63b7\u9ab0\u5b50\u7a0b\u5e8f\uff0c\u5305\u542b\u4e86\u968f\u673a\u6570\u751f\u6210\u3001\u51fd\u6570\u5b9a\u4e49\u3001\u591a\u6b21\u63b7\u9ab0\u5b50\u3001\u7edf\u8ba1\u70b9\u6570\u3001\u7528\u6237\u4ea4\u4e92\u548c\u9519\u8bef\u5904\u7406\u7b49\u529f\u80fd\u3002\u8fd9\u4e2a\u7a0b\u5e8f\u4e0d\u4ec5\u5c55\u793a\u4e86Python\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u529f\u80fd\u4f7f\u7528\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5b8c\u6574\u7684\u6848\u4f8b\uff0c\u5e2e\u52a9\u7406\u89e3\u5982\u4f55\u5c06\u591a\u4e2a\u529f\u80fd\u6a21\u5757\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u6784\u5efa\u4e00\u4e2a\u5b9e\u7528\u7684\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p><strong>\u516b\u3001\u8fdb\u4e00\u6b65\u6269\u5c55<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5e0c\u671b\u8fdb\u4e00\u6b65\u6269\u5c55\u8fd9\u4e2a\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u5411\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09<\/strong>\uff1a\u4f7f\u7528<code>tkinter<\/code>\u6216<code>PyQt<\/code>\u7b49\u5e93\uff0c\u4e3a\u7a0b\u5e8f\u6dfb\u52a0\u56fe\u5f62\u7528\u6237\u754c\u9762\uff0c\u4f7f\u64cd\u4f5c\u66f4\u52a0\u76f4\u89c2\u3002<\/li>\n<li><strong>\u63b7\u591a\u4e2a\u9ab0\u5b50<\/strong>\uff1a\u6269\u5c55\u7a0b\u5e8f\u652f\u6301\u540c\u65f6\u63b7\u591a\u4e2a\u9ab0\u5b50\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u3002<\/li>\n<li><strong>\u9ad8\u7ea7\u7edf\u8ba1\u5206\u6790<\/strong>\uff1a\u589e\u52a0\u66f4\u591a\u7684\u7edf\u8ba1\u5206\u6790\u529f\u80fd\uff0c\u4f8b\u5982\u8ba1\u7b97\u5e73\u5747\u503c\u3001\u65b9\u5dee\u3001\u5206\u5e03\u7b49\u3002<\/li>\n<li><strong>\u6e38\u620f\u5316\u529f\u80fd<\/strong>\uff1a\u5c06\u63b7\u9ab0\u5b50\u529f\u80fd\u5d4c\u5165\u5230\u4e00\u4e2a\u7b80\u5355\u7684\u6e38\u620f\u4e2d\uff0c\u4f8b\u5982\u5927\u5bcc\u7fc1\u3001\u63b7\u9ab0\u5b50\u8dd1\u9177\u7b49\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0d\u65ad\u6269\u5c55\u548c\u4f18\u5316\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e2a\u7b80\u5355\u7684\u63b7\u9ab0\u5b50\u7a0b\u5e8f\u6253\u9020\u6210\u4e00\u4e2a\u66f4\u52a0\u590d\u6742\u548c\u6709\u8da3\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u7528Python\u6a21\u62df\u63b7\u9ab0\u5b50\u7684\u8fc7\u7a0b\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Python\u7684\u968f\u673a\u6a21\u5757\u6765\u6a21\u62df\u63b7\u9ab0\u5b50\u3002\u9996\u5148\uff0c\u5bfc\u5165\u968f\u673a\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>random.randint(1, 6)<\/code>\u751f\u6210\u4e00\u4e2a1\u52306\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u8fd9\u4e2a\u6574\u6570\u5c06\u4ee3\u8868\u9ab0\u5b50\u7684\u70b9\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import random\n\ndef roll_dice():\n    return random.randint(1, 6)\n\n# \u793a\u4f8b\u8c03\u7528\nresult = roll_dice()\nprint(f&quot;\u4f60\u63b7\u51fa\u7684\u9ab0\u5b50\u70b9\u6570\u662f: {result}&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u4ee3\u7801\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570<code>roll_dice<\/code>\uff0c\u6bcf\u6b21\u8c03\u7528\u90fd\u4f1a\u8fd4\u56de\u4e00\u4e2a\u968f\u673a\u7684\u9ab0\u5b50\u70b9\u6570\u3002<\/p>\n<p><strong>\u600e\u6837\u5728Python\u4e2d\u5b9e\u73b0\u591a\u6b21\u63b7\u9ab0\u5b50\u5e76\u8f93\u51fa\u7ed3\u679c\uff1f<\/strong><br \/>\u5982\u679c\u60f3\u8981\u6a21\u62df\u591a\u6b21\u63b7\u9ab0\u5b50\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u7ed3\u6784\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u6765\u63b7\u9ab0\u5b50\u6307\u5b9a\u7684\u6b21\u6570\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u5217\u8868\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5b9e\u73b0\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import random\n\ndef roll_dice(times):\n    results = []\n    for _ in range(times):\n        results.append(random.randint(1, 6))\n    return results\n\n# \u793a\u4f8b\u8c03\u7528\nnum_rolls = 5\nresults = roll_dice(num_rolls)\nprint(f&quot;\u4f60\u63b7\u51fa\u7684\u9ab0\u5b50\u70b9\u6570\u662f: {results}&quot;)\n<\/code><\/pre>\n<p>\u5728\u6b64\u4ee3\u7801\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u6307\u5b9a\u63b7\u9ab0\u5b50\u7684\u6b21\u6570\uff0c\u6700\u7ec8\u4f1a\u8f93\u51fa\u6240\u6709\u7684\u70b9\u6570\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5bf9\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1\u5206\u6790\uff1f<\/strong><br \/>\u5982\u679c\u5e0c\u671b\u5bf9\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>collections<\/code>\u6a21\u5757\u4e2d\u7684<code>Counter<\/code>\u6765\u8ba1\u7b97\u6bcf\u4e2a\u70b9\u6570\u51fa\u73b0\u7684\u9891\u7387\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import random\nfrom collections import Counter\n\ndef roll_dice(times):\n    results = [random.randint(1, 6) for _ in range(times)]\n    return results\n\ndef analyze_results(results):\n    return Counter(results)\n\n# \u793a\u4f8b\u8c03\u7528\nnum_rolls = 100\nresults = roll_dice(num_rolls)\nanalysis = analyze_results(results)\nprint(f&quot;\u63b7\u9ab0\u5b50\u7684\u7edf\u8ba1\u7ed3\u679c: {analysis}&quot;)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u4ee3\u7801\uff0c\u7528\u6237\u53ef\u4ee5\u770b\u5230\u6bcf\u4e2a\u70b9\u6570\u5728\u591a\u6b21\u63b7\u9ab0\u5b50\u4e2d\u51fa\u73b0\u7684\u6b21\u6570\uff0c\u4ece\u800c\u8fdb\u884c\u66f4\u6df1\u5165\u7684\u5206\u6790\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u7f16\u5199\u9ab0\u5b50\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u5e93\u3001\u5b9a\u4e49\u51fd\u6570\u6765\u6a21\u62df\u63b7\u9ab0\u5b50\u7684\u8fc7\u7a0b\u3001\u4f7f\u7528\u5faa\u73af\u548c\u6761\u4ef6\u5224\u65ad [&hellip;]","protected":false},"author":3,"featured_media":1097359,"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\/1097348"}],"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=1097348"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097348\/revisions"}],"predecessor-version":[{"id":1097363,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097348\/revisions\/1097363"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097359"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}