{"id":1117364,"date":"2025-01-08T18:25:18","date_gmt":"2025-01-08T10:25:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1117364.html"},"modified":"2025-01-08T18:25:22","modified_gmt":"2025-01-08T10:25:22","slug":"python%e5%a6%82%e4%bd%95%e5%af%b9%e5%88%97%e8%a1%a8%e9%87%8c%e7%9a%84%e5%86%85%e5%ae%b9%e6%b1%82%e5%9d%87%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1117364.html","title":{"rendered":"python\u5982\u4f55\u5bf9\u5217\u8868\u91cc\u7684\u5185\u5bb9\u6c42\u5747\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081316\/d01ecfac-a1c4-4fc1-bf70-1e20a1e92e50.webp\" alt=\"python\u5982\u4f55\u5bf9\u5217\u8868\u91cc\u7684\u5185\u5bb9\u6c42\u5747\u503c\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5bf9\u5217\u8868\u4e2d\u7684\u5185\u5bb9\u6c42\u5747\u503c\uff0c\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bd4\u5982\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u5bfc\u5165\u7edf\u8ba1\u5e93\u3001\u4f7f\u7528NumPy\u5e93\u7b49\u3002<\/strong> \u5176\u4e2d\uff0c\u63a8\u8350\u4f7f\u7528NumPy\u5e93\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u529f\u80fd\u5f3a\u5927\uff0c\u800c\u4e14\u8ba1\u7b97\u6548\u7387\u9ad8\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<\/p>\n<\/p>\n<p><p>Python\u7684\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u8ba9\u6211\u4eec\u8f7b\u677e\u5730\u8ba1\u7b97\u5217\u8868\u7684\u5747\u503c\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\uff1a\u6c42\u548c\u3001\u8ba1\u7b97\u5217\u8868\u957f\u5ea6\u3001\u7136\u540e\u6c42\u5747\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u5217\u8868<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u8ba1\u7b97\u5217\u8868\u7684\u548c<\/strong><\/h2>\n<p>total = sum(data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5217\u8868\u7684\u957f\u5ea6<\/strong><\/h2>\n<p>length = len(data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = total \/ length<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c<code>sum(data)<\/code>\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97\u5217\u8868\u4e2d\u6240\u6709\u5143\u7d20\u7684\u548c\uff0c<code>len(data)<\/code>\u51fd\u6570\u7528\u4e8e\u8ba1\u7b97\u5217\u8868\u7684\u957f\u5ea6\uff0c\u6700\u540e\u901a\u8fc7<code>total \/ length<\/code>\u8ba1\u7b97\u5747\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Python\u6807\u51c6\u5e93\u4e2d\u7684statistics\u6a21\u5757<\/p>\n<\/p>\n<p><p>Python\u7684<code>statistics<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u540d\u4e3a<code>mean<\/code>\u7684\u51fd\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u7528\u4e8e\u8ba1\u7b97\u5747\u503c\u3002\u8fd9\u79cd\u65b9\u6cd5\u66f4\u52a0\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import statistics<\/p>\n<h2><strong>\u5b9a\u4e49\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = statistics.mean(data)<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>statistics.mean(data)<\/code>\u51fd\u6570\u76f4\u63a5\u8fd4\u56de\u5217\u8868\u7684\u5747\u503c\uff0c\u662f\u4e00\u79cd\u66f4\u7b80\u4fbf\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528NumPy\u5e93<\/p>\n<\/p>\n<p><p>NumPy\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002\u4f7f\u7528NumPy\u8ba1\u7b97\u5747\u503c\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4<\/strong><\/h2>\n<p>data_array = np.array(data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = np.mean(data_array)<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u9996\u5148\u9700\u8981\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\uff0c\u7136\u540e\u4f7f\u7528<code>np.mean<\/code>\u51fd\u6570\u8ba1\u7b97\u5747\u503c\u3002NumPy\u4e0d\u4ec5\u529f\u80fd\u5f3a\u5927\uff0c\u800c\u4e14\u5728\u5904\u7406\u5927\u6570\u636e\u65f6\u6548\u7387\u66f4\u9ad8\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528pandas\u5e93<\/p>\n<\/p>\n<p><p>Pandas\u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u5c24\u5176\u9002\u7528\u4e8e\u6570\u636e\u5206\u6790\u3002\u4f7f\u7528Pandas\u8ba1\u7b97\u5747\u503c\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u5b9a\u4e49\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<h2><strong>\u5c06\u5217\u8868\u8f6c\u6362\u4e3aPandas Series<\/strong><\/h2>\n<p>data_series = pd.Series(data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = data_series.mean()<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u9996\u5148\u9700\u8981\u5c06\u5217\u8868\u8f6c\u6362\u4e3aPandas\u7684Series\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528<code>data_series.mean()<\/code>\u51fd\u6570\u8ba1\u7b97\u5747\u503c\u3002Pandas\u7279\u522b\u9002\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5904\u7406\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\u7684\u5217\u8868<\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u5217\u8868\u4e2d\u53ef\u80fd\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\uff0c\u6211\u4eec\u9700\u8981\u5148\u8fc7\u6ee4\u6389\u8fd9\u4e9b\u5143\u7d20\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\u7684\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, &#39;a&#39;, 3, &#39;b&#39;, 4, 5]<\/p>\n<h2><strong>\u8fc7\u6ee4\u6389\u975e\u6570\u5b57\u5143\u7d20<\/strong><\/h2>\n<p>filtered_data = [x for x in data if isinstance(x, (int, float))]<\/p>\n<h2><strong>\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4<\/strong><\/h2>\n<p>data_array = np.array(filtered_data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = np.mean(data_array)<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528\u5217\u8868\u89e3\u6790\uff08list comprehension\uff09\u8fc7\u6ee4\u6389\u975e\u6570\u5b57\u5143\u7d20\uff0c\u7136\u540e\u518d\u8ba1\u7b97\u5747\u503c\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5904\u7406\u5305\u542b\u7a7a\u503c\u7684\u5217\u8868<\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u5217\u8868\u4e2d\u53ef\u80fd\u5305\u542b\u7a7a\u503c\uff08None\u3001NaN\u7b49\uff09\uff0c\u6211\u4eec\u9700\u8981\u5148\u8fc7\u6ee4\u6389\u8fd9\u4e9b\u7a7a\u503c\uff0c\u518d\u8ba1\u7b97\u5747\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49\u5305\u542b\u7a7a\u503c\u7684\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, None, 3, np.nan, 4, 5]<\/p>\n<h2><strong>\u8fc7\u6ee4\u6389\u7a7a\u503c<\/strong><\/h2>\n<p>filtered_data = [x for x in data if x is not None and not np.isnan(x)]<\/p>\n<h2><strong>\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4<\/strong><\/h2>\n<p>data_array = np.array(filtered_data)<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = np.mean(data_array)<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528\u5217\u8868\u89e3\u6790\uff08list comprehension\uff09\u8fc7\u6ee4\u6389\u7a7a\u503c\uff0c\u7136\u540e\u518d\u8ba1\u7b97\u5747\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528\u51fd\u6570\u5c01\u88c5\u8ba1\u7b97\u5747\u503c<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u590d\u7528\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8ba1\u7b97\u5747\u503c\u7684\u903b\u8f91\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def calculate_mean(data):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    \u8ba1\u7b97\u5217\u8868\u7684\u5747\u503c<\/p>\n<p>    :param data: \u8f93\u5165\u5217\u8868<\/p>\n<p>    :return: \u5747\u503c<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    # \u8fc7\u6ee4\u6389\u975e\u6570\u5b57\u5143\u7d20\u548c\u7a7a\u503c<\/p>\n<p>    filtered_data = [x for x in data if isinstance(x, (int, float)) and x is not None and not np.isnan(x)]<\/p>\n<p>    # \u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4<\/p>\n<p>    data_array = np.array(filtered_data)<\/p>\n<p>    # \u8ba1\u7b97\u5747\u503c<\/p>\n<p>    mean = np.mean(data_array)<\/p>\n<p>    return mean<\/p>\n<h2><strong>\u5b9a\u4e49\u5217\u8868<\/strong><\/h2>\n<p>data = [1, 2, None, 3, &#39;a&#39;, np.nan, 4, 5]<\/p>\n<h2><strong>\u8ba1\u7b97\u5747\u503c<\/strong><\/h2>\n<p>mean = calculate_mean(data)<\/p>\n<p>print(f&quot;The mean of the list is: {mean}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>calculate_mean<\/code>\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u6536\u4e00\u4e2a\u5217\u8868\u4f5c\u4e3a\u8f93\u5165\uff0c\u8fd4\u56de\u8ba1\u7b97\u51fa\u7684\u5747\u503c\u3002\u51fd\u6570\u5185\u90e8\u5305\u542b\u4e86\u8fc7\u6ee4\u975e\u6570\u5b57\u5143\u7d20\u548c\u7a7a\u503c\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u4f7f\u7528Python\u5bf9\u5217\u8868\u4e2d\u7684\u5185\u5bb9\u6c42\u5747\u503c\u7684\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001<code>statistics<\/code>\u6a21\u5757\u3001NumPy\u5e93\u3001Pandas\u5e93\u7b49\u3002\u5e76\u4e14\u8fd8\u4ecb\u7ecd\u4e86\u5982\u4f55\u5904\u7406\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\u548c\u7a7a\u503c\u7684\u5217\u8868\uff0c\u4ee5\u53ca\u5982\u4f55\u5c06\u8ba1\u7b97\u5747\u503c\u7684\u903b\u8f91\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8ba1\u7b97\u5217\u8868\u4e2d\u6570\u5b57\u7684\u5747\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5185\u7f6e\u7684<code>sum()<\/code>\u51fd\u6570\u548c<code>len()<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u5217\u8868\u4e2d\u6570\u5b57\u7684\u5747\u503c\u3002\u9996\u5148\uff0c\u4f7f\u7528<code>sum()<\/code>\u83b7\u53d6\u5217\u8868\u4e2d\u6240\u6709\u5143\u7d20\u7684\u603b\u548c\uff0c\u7136\u540e\u4f7f\u7528<code>len()<\/code>\u83b7\u53d6\u5217\u8868\u7684\u957f\u5ea6\uff0c\u6700\u540e\u7528\u603b\u548c\u9664\u4ee5\u957f\u5ea6\u5373\u53ef\u5f97\u5230\u5747\u503c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]\nmean = sum(numbers) \/ len(numbers)\nprint(mean)  # \u8f93\u51fa\uff1a3.0\n<\/code><\/pre>\n<p><strong>Python\u4e2d\u6709\u6ca1\u6709\u4e13\u95e8\u7684\u5e93\u53ef\u4ee5\u8ba1\u7b97\u5747\u503c\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u7684<code>statistics<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684<code>mean()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u8ba1\u7b97\u5217\u8868\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u5747\u503c\u3002\u4f7f\u7528\u8fd9\u4e2a\u5e93\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u7b80\u6d01\u6613\u8bfb\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import statistics\n\nnumbers = [1, 2, 3, 4, 5]\nmean = statistics.mean(numbers)\nprint(mean)  # \u8f93\u51fa\uff1a3.0\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5904\u7406\u66f4\u590d\u6742\u7684\u6570\u636e\u96c6\u3002<\/p>\n<p><strong>\u5982\u679c\u5217\u8868\u4e2d\u5305\u542b\u975e\u6570\u5b57\u7c7b\u578b\uff0c\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u5728\u8ba1\u7b97\u5747\u503c\u4e4b\u524d\uff0c\u786e\u4fdd\u5217\u8868\u4e2d\u7684\u6240\u6709\u5143\u7d20\u90fd\u662f\u6570\u5b57\u7c7b\u578b\u3002\u5982\u679c\u5217\u8868\u4e2d\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u8fc7\u6ee4\u6389\u8fd9\u4e9b\u5143\u7d20\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">numbers = [1, 2, &#39;three&#39;, 4, 5]\nfiltered_numbers = [num for num in numbers if isinstance(num, (int, float))]\nmean = sum(filtered_numbers) \/ len(filtered_numbers) if filtered_numbers else 0\nprint(mean)  # \u8f93\u51fa\uff1a3.0\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u80fd\u6709\u6548\u5730\u907f\u514d\u56e0\u7c7b\u578b\u9519\u8bef\u800c\u5bfc\u81f4\u7684\u8ba1\u7b97\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5bf9\u5217\u8868\u4e2d\u7684\u5185\u5bb9\u6c42\u5747\u503c\uff0c\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u6bd4\u5982\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u5bfc\u5165\u7edf\u8ba1\u5e93\u3001\u4f7f\u7528NumPy\u5e93\u7b49\u3002 \u5176\u4e2d\uff0c [&hellip;]","protected":false},"author":3,"featured_media":1117370,"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\/1117364"}],"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=1117364"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117364\/revisions"}],"predecessor-version":[{"id":1117371,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117364\/revisions\/1117371"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1117370"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1117364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1117364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1117364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}