{"id":1121690,"date":"2025-01-08T19:12:23","date_gmt":"2025-01-08T11:12:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1121690.html"},"modified":"2025-01-08T19:12:27","modified_gmt":"2025-01-08T11:12:27","slug":"python%e5%a6%82%e4%bd%95%e5%86%99%e6%8e%b7%e4%b8%a4%e4%b8%aa%e9%aa%b0%e5%ad%90","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1121690.html","title":{"rendered":"python\u5982\u4f55\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083835\/6ffdca1e-2f45-4363-ac1f-4cfcc9591766.webp\" alt=\"python\u5982\u4f55\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50\" \/><\/p>\n<p><p> <strong>Python\u5982\u4f55\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528Python\u7f16\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u4ee3\u7801\u5341\u5206\u7b80\u5355\uff0c\u901a\u8fc7\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4ee5\u53ca\u6570\u636e\u53ef\u89c6\u5316\u7b49\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u540c\u7a0b\u5ea6\u7684\u590d\u6742\u6027\u3002<\/strong>\u6211\u4eec\u53ef\u4ee5\u4ece\u57fa\u672c\u7684\u968f\u673a\u6570\u751f\u6210\u5165\u624b\uff0c\u7136\u540e\u9010\u6b65\u589e\u52a0\u529f\u80fd\uff0c\u5982\u7edf\u8ba1\u7ed3\u679c\u3001\u6a21\u62df\u591a\u6b21\u63b7\u9ab0\u5b50\u3001\u7ed8\u5236\u7ed3\u679c\u5206\u5e03\u56fe\u7b49\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e9b\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u751f\u6210\u968f\u673a\u6570<\/h3>\n<\/p>\n<p><p>Python\u81ea\u5e26\u7684<code>random<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u751f\u6210\u968f\u673a\u6570\u7684\u529f\u80fd\uff0c\u8fd9\u4f7f\u5f97\u6a21\u62df\u63b7\u9ab0\u5b50\u53d8\u5f97\u975e\u5e38\u7b80\u5355\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import random<\/p>\n<p>def roll_dice():<\/p>\n<p>    die1 = random.randint(1, 6)<\/p>\n<p>    die2 = random.randint(1, 6)<\/p>\n<p>    return die1, die2<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>print(roll_dice())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u4f7f\u7528<code>random.randint(1, 6)<\/code>\u6765\u751f\u62101\u52306\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u6a21\u62df\u4e00\u4e2a\u516d\u9762\u9ab0\u5b50\u7684\u63b7\u9ab0\u7ed3\u679c\u3002\u7136\u540e\uff0c\u5c06\u4e24\u4e2a\u9ab0\u5b50\u7684\u7ed3\u679c\u8fd4\u56de\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u7edf\u8ba1\u7ed3\u679c<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u6df1\u5165\u5730\u5206\u6790\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\uff0c\u6211\u4eec\u53ef\u4ee5\u7edf\u8ba1\u591a\u6b21\u63b7\u9ab0\u5b50\u540e\u7684\u7ed3\u679c\u5206\u5e03\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def roll_dice_multiple_times(n):<\/p>\n<p>    results = []<\/p>\n<p>    for _ in range(n):<\/p>\n<p>        results.append(roll_dice())<\/p>\n<p>    return results<\/p>\n<p>def analyze_results(results):<\/p>\n<p>    frequency = {}<\/p>\n<p>    for result in results:<\/p>\n<p>        total = sum(result)<\/p>\n<p>        if total in frequency:<\/p>\n<p>            frequency[total] += 1<\/p>\n<p>        else:<\/p>\n<p>            frequency[total] = 1<\/p>\n<p>    return frequency<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>results = roll_dice_multiple_times(1000)<\/p>\n<p>analysis = analyze_results(results)<\/p>\n<p>print(analysis)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>roll_dice_multiple_times<\/code>\u51fd\u6570\u6a21\u62df\u591a\u6b21\u63b7\u9ab0\u5b50\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u50a8\u5728\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<code>analyze_results<\/code>\u51fd\u6570\u5bf9\u7ed3\u679c\u8fdb\u884c\u7edf\u8ba1\uff0c\u8ba1\u7b97\u6bcf\u4e2a\u53ef\u80fd\u7684\u548c\u51fa\u73b0\u7684\u9891\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6570\u636e\u53ef\u89c6\u5316<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u76f4\u89c2\u5730\u5c55\u793a\u7ed3\u679c\u5206\u5e03\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u6765\u7ed8\u5236\u76f4\u65b9\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>def plot_results(analysis):<\/p>\n<p>    labels = sorted(analysis.keys())<\/p>\n<p>    values = [analysis[label] for label in labels]<\/p>\n<p>    plt.bar(labels, values)<\/p>\n<p>    plt.xlabel(&#39;Sum of Dice&#39;)<\/p>\n<p>    plt.ylabel(&#39;Frequency&#39;)<\/p>\n<p>    plt.title(&#39;Distribution of Dice Rolls&#39;)<\/p>\n<p>    plt.show()<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>plot_results(analysis)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>plot_results<\/code>\u51fd\u6570\u63a5\u53d7\u5206\u6790\u7ed3\u679c\uff0c\u5e76\u4f7f\u7528<code>matplotlib<\/code>\u7ed8\u5236\u76f4\u65b9\u56fe\u3002<code>sorted(analysis.keys())<\/code>\u786e\u4fdd\u6a2a\u5750\u6807\u6807\u7b7e\u6309\u7167\u4ece\u5c0f\u5230\u5927\u7684\u987a\u5e8f\u6392\u5217\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u91cd\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u63b7\u9ab0\u5b50\u7684\u529f\u80fd\u5c01\u88c5\u5230\u4e00\u4e2a\u7c7b\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Dice:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        self.die1 = 0<\/p>\n<p>        self.die2 = 0<\/p>\n<p>    def roll(self):<\/p>\n<p>        self.die1 = random.randint(1, 6)<\/p>\n<p>        self.die2 = random.randint(1, 6)<\/p>\n<p>        return self.die1, self.die2<\/p>\n<p>class DiceGame:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        self.results = []<\/p>\n<p>    def play(self, n):<\/p>\n<p>        dice = Dice()<\/p>\n<p>        for _ in range(n):<\/p>\n<p>            self.results.append(dice.roll())<\/p>\n<p>    def analyze(self):<\/p>\n<p>        frequency = {}<\/p>\n<p>        for result in self.results:<\/p>\n<p>            total = sum(result)<\/p>\n<p>            if total in frequency:<\/p>\n<p>                frequency[total] += 1<\/p>\n<p>            else:<\/p>\n<p>                frequency[total] = 1<\/p>\n<p>        return frequency<\/p>\n<p>    def plot(self, analysis):<\/p>\n<p>        labels = sorted(analysis.keys())<\/p>\n<p>        values = [analysis[label] for label in labels]<\/p>\n<p>        plt.bar(labels, values)<\/p>\n<p>        plt.xlabel(&#39;Sum of Dice&#39;)<\/p>\n<p>        plt.ylabel(&#39;Frequency&#39;)<\/p>\n<p>        plt.title(&#39;Distribution of Dice Rolls&#39;)<\/p>\n<p>        plt.show()<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>game = DiceGame()<\/p>\n<p>game.play(1000)<\/p>\n<p>analysis = game.analyze()<\/p>\n<p>game.plot(analysis)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c<code>Dice<\/code>\u7c7b\u5c01\u88c5\u4e86\u5355\u4e2a\u9ab0\u5b50\u7684\u63b7\u9ab0\u529f\u80fd\uff0c\u800c<code>DiceGame<\/code>\u7c7b\u5219\u7ba1\u7406\u591a\u6b21\u63b7\u9ab0\u5b50\u7684\u7ed3\u679c\uff0c\u5e76\u63d0\u4f9b\u5206\u6790\u548c\u7ed8\u56fe\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f18\u5316\u548c\u6269\u5c55<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5bf9\u4ee3\u7801\u8fdb\u884c\u4f18\u5316\u548c\u6269\u5c55\uff0c\u4ee5\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><h4>1. \u6dfb\u52a0\u66f4\u591a\u7684\u9ab0\u5b50<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u589e\u52a0\u9ab0\u5b50\u7684\u6570\u91cf\u6765\u6269\u5c55\u529f\u80fd\uff0c\u53ea\u9700\u5728<code>Dice<\/code>\u7c7b\u4e2d\u4fee\u6539\u9ab0\u5b50\u7684\u6570\u91cf\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Dice:<\/p>\n<p>    def __init__(self, num_dice=2):<\/p>\n<p>        self.num_dice = num_dice<\/p>\n<p>        self.dice = [0] * num_dice<\/p>\n<p>    def roll(self):<\/p>\n<p>        self.dice = [random.randint(1, 6) for _ in range(self.num_dice)]<\/p>\n<p>        return self.dice<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u589e\u52a0\u63b7\u9ab0\u5b50\u7684\u89c4\u5219<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u6dfb\u52a0\u66f4\u591a\u7684\u6e38\u620f\u89c4\u5219\uff0c\u4f8b\u5982\u82e5\u5e72\u6b21\u63b7\u9ab0\u5b50\u7684\u6700\u5927\u503c\u3001\u6700\u5c0f\u503c\u6216\u8005\u5e73\u5747\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class DiceGame:<\/p>\n<p>    # Other methods rem<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n the same<\/p>\n<p>    def max_roll(self):<\/p>\n<p>        return max(sum(result) for result in self.results)<\/p>\n<p>    def min_roll(self):<\/p>\n<p>        return min(sum(result) for result in self.results)<\/p>\n<p>    def average_roll(self):<\/p>\n<p>        return sum(sum(result) for result in self.results) \/ len(self.results)<\/p>\n<h2><strong>Example usage<\/strong><\/h2>\n<p>game = DiceGame()<\/p>\n<p>game.play(1000)<\/p>\n<p>print(&quot;Max roll:&quot;, game.max_roll())<\/p>\n<p>print(&quot;Min roll:&quot;, game.min_roll())<\/p>\n<p>print(&quot;Average roll:&quot;, game.average_roll())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u9010\u6b65\u589e\u52a0\u529f\u80fd\uff0c\u6211\u4eec\u4ece\u57fa\u7840\u7684\u968f\u673a\u6570\u751f\u6210\uff0c\u6269\u5c55\u5230\u7edf\u8ba1\u5206\u6790\u3001\u6570\u636e\u53ef\u89c6\u5316\u4ee5\u53ca\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u4e5f\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\uff0c\u53ef\u4ee5\u5e94\u5bf9\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u63b7\u9ab0\u5b50\u7684\u6a21\u62df\u662f\u5b66\u4e60Python\u7f16\u7a0b\u7684\u4e00\u4e2a\u5f88\u597d\u7684\u7ec3\u4e60\uff0c\u5b83\u6db5\u76d6\u4e86\u968f\u673a\u6570\u751f\u6210\u3001\u6570\u636e\u7ed3\u6784\u3001\u7edf\u8ba1\u5206\u6790\u3001\u6570\u636e\u53ef\u89c6\u5316\u548c\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u7b49\u591a\u4e2a\u65b9\u9762\u7684\u5185\u5bb9\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u60a8\u80fd\u591f\u5bf9\u5982\u4f55\u4f7f\u7528Python\u7f16\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u4ee3\u7801\u6709\u4e00\u4e2a\u5168\u9762\u7684\u4e86\u89e3\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u6a21\u62df\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u8fc7\u7a0b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u5668\u6765\u6a21\u62df\u63b7\u9ab0\u5b50\u7684\u8fc7\u7a0b\u3002\u901a\u8fc7<code>random<\/code>\u6a21\u5757\u4e2d\u7684<code>randint<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u751f\u62101\u52306\u4e4b\u95f4\u7684\u968f\u673a\u6574\u6570\uff0c\u4ee3\u8868\u6bcf\u4e2a\u9ab0\u5b50\u7684\u70b9\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import random\n\ndef roll_two_dice():\n    die1 = random.randint(1, 6)\n    die2 = random.randint(1, 6)\n    return die1, die2\n\nresult = roll_two_dice()\nprint(f&quot;\u9ab0\u5b50\u7ed3\u679c: {result[0]} \u548c {result[1]}&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u8ba1\u7b97\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u7ed3\u679c\u548c\u6982\u7387\uff1f<\/strong><br \/>\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u7ed3\u679c\u8303\u56f4\u4ece2\u523012\u3002\u6bcf\u79cd\u7ed3\u679c\u7684\u6982\u7387\u53ef\u4ee5\u901a\u8fc7\u7edf\u8ba1\u6240\u6709\u53ef\u80fd\u7684\u7ed3\u679c\u7ec4\u5408\u6765\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u7ed3\u679c\u4e3a7\u7684\u7ec4\u5408\u6709\u591a\u79cd\u53ef\u80fd\u6027\uff081+6, 2+5, 3+4\u7b49\uff09\uff0c\u800c\u7ed3\u679c\u4e3a2\u548c12\u5219\u53ea\u6709\u4e00\u79cd\u7ec4\u5408\u3002\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\u6765\u6a21\u62df\u591a\u6b21\u63b7\u9ab0\u5b50\uff0c\u5e76\u8ba1\u7b97\u6bcf\u79cd\u7ed3\u679c\u51fa\u73b0\u7684\u9891\u7387\uff0c\u4ece\u800c\u5f97\u51fa\u5176\u6982\u7387\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u6269\u5c55\u63b7\u9ab0\u5b50\u7684\u7a0b\u5e8f\u4ee5\u652f\u6301\u66f4\u591a\u9ab0\u5b50\u6216\u4e0d\u540c\u7684\u9762\u6570\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\uff01\u53ea\u9700\u4fee\u6539\u4ee3\u7801\u4e2d\u7684<code>randint<\/code>\u51fd\u6570\u7684\u53c2\u6570\uff0c\u6216\u589e\u52a0\u66f4\u591a\u7684\u9ab0\u5b50\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60f3\u63b7\u4e09\u4e2a\u516d\u9762\u9ab0\u5b50\uff0c\u53ea\u9700\u589e\u52a0\u4e00\u4e2a\u968f\u673a\u6570\u751f\u6210\u7684\u8c03\u7528\uff0c\u5e76\u76f8\u5e94\u8c03\u6574\u51fd\u6570\u8fd4\u56de\u503c\u3002\u5bf9\u4e8e\u4e0d\u540c\u9762\u6570\u7684\u9ab0\u5b50\uff0c\u76f4\u63a5\u66ff\u6362<code>randint(1, 6)<\/code>\u4e2d\u76846\u4e3a\u6240\u9700\u9762\u6570\u5373\u53ef\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff0c\u63b7\u4e09\u4e2a\u56db\u9762\u9ab0\u5b50\uff1a<\/p>\n<pre><code class=\"language-python\">def roll_three_d4():\n    die1 = random.randint(1, 4)\n    die2 = random.randint(1, 4)\n    die3 = random.randint(1, 4)\n    return die1, die2, die3\n\nresult = roll_three_d4()\nprint(f&quot;\u4e09\u4e2a\u56db\u9762\u9ab0\u5b50\u7684\u7ed3\u679c: {result[0]}, {result[1]}, {result[2]}&quot;)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"Python\u5982\u4f55\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50 \u4f7f\u7528Python\u7f16\u5199\u63b7\u4e24\u4e2a\u9ab0\u5b50\u7684\u4ee3\u7801\u5341\u5206\u7b80\u5355\uff0c\u901a\u8fc7\u4f7f\u7528\u968f\u673a\u6570\u751f\u6210\u3001\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4ee5 [&hellip;]","protected":false},"author":3,"featured_media":1121701,"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\/1121690"}],"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=1121690"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121690\/revisions"}],"predecessor-version":[{"id":1121704,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1121690\/revisions\/1121704"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1121701"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1121690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1121690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1121690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}