{"id":1106101,"date":"2025-01-08T16:37:01","date_gmt":"2025-01-08T08:37:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1106101.html"},"modified":"2025-01-08T16:37:04","modified_gmt":"2025-01-08T08:37:04","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e6%95%b0%e5%ad%a6%e8%a1%a8%e8%be%be%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1106101.html","title":{"rendered":"Python\u4e2d\u5982\u4f55\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070715\/b5c86e13-2485-4110-86f6-ca6686d0e6d1.webp\" alt=\"Python\u4e2d\u5982\u4f55\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f<\/strong>\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5176\u4e2d\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684<code>eval()<\/code>\u51fd\u6570\u3001<code>ast<\/code>\u6a21\u5757\u4e2d\u7684<code>literal_eval()<\/code>\u51fd\u6570\u3001<code>sympy<\/code>\u5e93\u4ee5\u53ca<code>numpy<\/code>\u5e93\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<strong>eval()\u51fd\u6570\u3001ast.literal_eval()\u51fd\u6570\u3001sympy\u5e93\u3001numpy\u5e93<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u5176\u7279\u70b9\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528eval()\u51fd\u6570<\/h3>\n<\/p>\n<p><p><strong>eval()\u51fd\u6570<\/strong>\u662fPython\u5185\u7f6e\u51fd\u6570\u4e4b\u4e00\uff0c\u7528\u4e8e\u52a8\u6001\u6267\u884c\u8868\u8fbe\u5f0f\u5b57\u7b26\u4e32\u4e2d\u7684Python\u4ee3\u7801\u3002\u5b83\u53ef\u4ee5\u8ba1\u7b97\u5e76\u8fd4\u56de\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528eval()\u51fd\u6570\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f<\/p>\n<p>expression = &quot;2 + 3 * (4 - 1)&quot;<\/p>\n<p>result = eval(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\u7ed3\u679c\u4e3a11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u7b80\u5355\u3001\u76f4\u63a5\uff0c\u9002\u5408\u5feb\u901f\u8ba1\u7b97\u7b80\u5355\u8868\u8fbe\u5f0f\u3002<\/li>\n<li>\u652f\u6301Python\u8bed\u6cd5\uff0c\u53ef\u4ee5\u8ba1\u7b97\u590d\u6742\u7684\u5d4c\u5957\u8868\u8fbe\u5f0f\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b58\u5728\u5b89\u5168\u98ce\u9669\uff0c\u5982\u679c\u8f93\u5165\u7684\u8868\u8fbe\u5f0f\u5305\u542b\u6076\u610f\u4ee3\u7801\uff0c\u53ef\u80fd\u4f1a\u5bf9\u7cfb\u7edf\u9020\u6210\u5371\u5bb3\u3002<\/li>\n<li>\u4e0d\u9002\u5408\u7528\u4e8e\u5904\u7406\u4e0d\u4fe1\u4efb\u7684\u7528\u6237\u8f93\u5165\u3002<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4f7f\u7528ast.literal_eval()\u51fd\u6570<\/h3>\n<\/p>\n<p><p><strong>ast.literal_eval()\u51fd\u6570<\/strong>\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u5b89\u5168\u51fd\u6570\uff0c\u7528\u4e8e\u8ba1\u7b97\u5b57\u9762\u5e38\u91cf\u8868\u8fbe\u5f0f\uff08\u5373\u53ea\u5305\u542b\u6570\u5b57\u3001\u5b57\u7b26\u4e32\u3001\u5143\u7ec4\u3001\u5217\u8868\u3001\u5b57\u5178\u3001\u5e03\u5c14\u503c\u548cNone\u7684\u8868\u8fbe\u5f0f\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ast<\/p>\n<h2><strong>\u4f7f\u7528ast.literal_eval()\u51fd\u6570\u8ba1\u7b97\u7b80\u5355\u6570\u5b66\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expression = &quot;2 + 3 * (4 - 1)&quot;<\/p>\n<p>result = ast.literal_eval(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\u7ed3\u679c\u4e3a11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u6bd4eval()\u51fd\u6570\u66f4\u5b89\u5168\uff0c\u56e0\u4e3a\u5b83\u53ea\u5141\u8bb8\u5b57\u9762\u5e38\u91cf\u8868\u8fbe\u5f0f\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u4e0d\u652f\u6301\u590d\u6742\u8868\u8fbe\u5f0f\u548c\u51fd\u6570\u8c03\u7528\uff0c\u53ea\u80fd\u8ba1\u7b97\u7b80\u5355\u7684\u5b57\u9762\u5e38\u91cf\u8868\u8fbe\u5f0f\u3002<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u4f7f\u7528sympy\u5e93<\/h3>\n<\/p>\n<p><p><strong>sympy<\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u7b26\u53f7\u6570\u5b66\u8ba1\u7b97\u7684Python\u5e93\uff0c\u652f\u6301\u4ee3\u6570\u3001\u5fae\u79ef\u5206\u3001\u65b9\u7a0b\u6c42\u89e3\u7b49\u591a\u79cd\u6570\u5b66\u64cd\u4f5c\u3002\u4f7f\u7528sympy\u5e93\u53ef\u4ee5\u5b89\u5168\u3001\u51c6\u786e\u5730\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import sympify<\/p>\n<h2><strong>\u4f7f\u7528sympy\u5e93\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expression = &quot;2 + 3 * (4 - 1)&quot;<\/p>\n<p>result = sympify(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\u7ed3\u679c\u4e3a11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u652f\u6301\u7b26\u53f7\u8ba1\u7b97\uff0c\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u3002<\/li>\n<li>\u63d0\u4f9b\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u548c\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u5de5\u7a0b\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9700\u8981\u989d\u5916\u5b89\u88c5\u5e93\uff0c\u4f7f\u7528\u76f8\u5bf9\u590d\u6742\u3002<\/li>\n<li>\u8ba1\u7b97\u901f\u5ea6\u53ef\u80fd\u8f83\u6162\uff0c\u4e0d\u9002\u5408\u5b9e\u65f6\u8ba1\u7b97\u3002<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u4f7f\u7528numpy\u5e93<\/h3>\n<\/p>\n<p><p><strong>numpy<\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684Python\u5e93\uff0c\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\u548c\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u3002\u901a\u8fc7numpy\u5e93\u53ef\u4ee5\u9ad8\u6548\u5730\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u4f7f\u7528numpy\u5e93\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expression = &quot;2 + 3 * (4 - 1)&quot;<\/p>\n<p>result = eval(expression, {&quot;__builtins__&quot;: None}, {&quot;np&quot;: np})<\/p>\n<p>print(result)  # \u8f93\u51fa\u7ed3\u679c\u4e3a11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u8ba1\u7b97\u901f\u5ea6\u5feb\uff0c\u9002\u5408\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u548c\u77e9\u9635\u8fd0\u7b97\u3002<\/li>\n<li>\u63d0\u4f9b\u4e30\u5bcc\u7684\u6570\u5b66\u51fd\u6570\u548c\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u5de5\u7a0b\u5e94\u7528\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u9700\u8981\u989d\u5916\u5b89\u88c5\u5e93\uff0c\u4f7f\u7528\u76f8\u5bf9\u590d\u6742\u3002<\/li>\n<li>eval()\u51fd\u6570\u7684\u5b89\u5168\u6027\u95ee\u9898\u4ecd\u7136\u5b58\u5728\u3002<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u89e3\u6790\u5668<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u573a\u666f\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u89e3\u6790\u5668\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u7684\u9700\u6c42\u3002\u901a\u8fc7\u7f16\u5199\u81ea\u5b9a\u4e49\u89e3\u6790\u5668\uff0c\u53ef\u4ee5\u5b8c\u5168\u63a7\u5236\u8868\u8fbe\u5f0f\u7684\u89e3\u6790\u548c\u8ba1\u7b97\u8fc7\u7a0b\uff0c\u786e\u4fdd\u5b89\u5168\u6027\u548c\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u81ea\u5b9a\u4e49\u89e3\u6790\u5668\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f<\/p>\n<p>import operator<\/p>\n<p>ops = {<\/p>\n<p>    &#39;+&#39;: operator.add,<\/p>\n<p>    &#39;-&#39;: operator.sub,<\/p>\n<p>    &#39;*&#39;: operator.mul,<\/p>\n<p>    &#39;\/&#39;: operator.truediv,<\/p>\n<p>}<\/p>\n<p>def parse_expression(expression):<\/p>\n<p>    stack = []<\/p>\n<p>    tokens = expression.split()<\/p>\n<p>    for token in tokens:<\/p>\n<p>        if token in ops:<\/p>\n<p>            b = stack.pop()<\/p>\n<p>            a = stack.pop()<\/p>\n<p>            stack.append(ops[token](a, b))<\/p>\n<p>        else:<\/p>\n<p>            stack.append(float(token))<\/p>\n<p>    return stack[0]<\/p>\n<p>expression = &quot;2 3 4 1 - * +&quot;<\/p>\n<p>result = parse_expression(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\u7ed3\u679c\u4e3a11<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b8c\u5168\u63a7\u5236\u89e3\u6790\u548c\u8ba1\u7b97\u8fc7\u7a0b\uff0c\u786e\u4fdd\u5b89\u5168\u6027\u3002<\/li>\n<li>\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u81ea\u5b9a\u4e49\u89e3\u6790\u89c4\u5219\uff0c\u7075\u6d3b\u6027\u9ad8\u3002<\/li>\n<\/ul>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5b9e\u73b0\u590d\u6742\uff0c\u5f00\u53d1\u548c\u7ef4\u62a4\u6210\u672c\u8f83\u9ad8\u3002<\/li>\n<li>\u9700\u8981\u5bf9\u8868\u8fbe\u5f0f\u89e3\u6790\u548c\u8ba1\u7b97\u539f\u7406\u6709\u4e00\u5b9a\u7684\u4e86\u89e3\u3002<\/li>\n<\/ul>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\u9009\u62e9\uff0c\u5305\u62ec<strong>eval()\u51fd\u6570<\/strong>\u3001<strong>ast.literal_eval()\u51fd\u6570<\/strong>\u3001<strong>sympy\u5e93<\/strong>\u3001<strong>numpy\u5e93<\/strong>\u548c\u81ea\u5b9a\u4e49\u89e3\u6790\u5668\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u6709\u5176\u72ec\u7279\u7684\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u5b89\u5168\u6027\u8003\u8651\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>eval()\u51fd\u6570<\/strong>\uff1a\u9002\u5408\u5feb\u901f\u8ba1\u7b97\u7b80\u5355\u8868\u8fbe\u5f0f\uff0c\u4f46\u5b58\u5728\u5b89\u5168\u98ce\u9669\u3002<\/li>\n<li><strong>ast.literal_eval()\u51fd\u6570<\/strong>\uff1a\u5b89\u5168\u6027\u8f83\u9ad8\uff0c\u4f46\u4ec5\u652f\u6301\u5b57\u9762\u5e38\u91cf\u8868\u8fbe\u5f0f\u3002<\/li>\n<li><strong>sympy\u5e93<\/strong>\uff1a\u9002\u7528\u4e8e\u7b26\u53f7\u8ba1\u7b97\u548c\u590d\u6742\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u529f\u80fd\u5f3a\u5927\u3002<\/li>\n<li><strong>numpy\u5e93<\/strong>\uff1a\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\uff0c\u8ba1\u7b97\u901f\u5ea6\u5feb\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49\u89e3\u6790\u5668<\/strong>\uff1a\u7075\u6d3b\u6027\u9ad8\uff0c\u53ef\u4ee5\u5b8c\u5168\u63a7\u5236\u89e3\u6790\u548c\u8ba1\u7b97\u8fc7\u7a0b\uff0c\u4f46\u5b9e\u73b0\u590d\u6742\u3002<\/li>\n<\/ul>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5e76\u7ed3\u5408\u5b89\u5168\u6027\u3001\u6027\u80fd\u548c\u53ef\u7ef4\u62a4\u6027\u7b49\u56e0\u7d20\u8fdb\u884c\u7efc\u5408\u8003\u8651\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u600e\u6837\u624d\u80fd\u5b89\u5168\u5730\u8ba1\u7b97\u7528\u6237\u8f93\u5165\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff1f<\/strong><br \/>\u4e3a\u4e86\u5b89\u5168\u5730\u8ba1\u7b97\u7528\u6237\u8f93\u5165\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>eval()<\/code>\u51fd\u6570\uff0c\u4f46\u8981\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u4f1a\u6267\u884c\u4efb\u610f\u4ee3\u7801\uff0c\u5b58\u5728\u5b89\u5168\u9690\u60a3\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u98ce\u9669\uff0c\u53ef\u4ee5\u4f7f\u7528<code>asteval<\/code>\u5e93\u6216<code>sympy<\/code>\u5e93\u6765\u89e3\u6790\u548c\u8ba1\u7b97\u8868\u8fbe\u5f0f\uff0c\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5b89\u5168\u7684\u8ba1\u7b97\u73af\u5883\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u65f6\uff0c\u6709\u54ea\u4e9b\u5185\u7f6e\u5e93\u53ef\u4ee5\u5e2e\u52a9\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5f3a\u5927\u7684\u5185\u7f6e\u5e93\u6765\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u4f8b\u5982<code>math<\/code>\u5e93\u7528\u4e8e\u57fa\u672c\u6570\u5b66\u64cd\u4f5c\uff0c<code>numpy<\/code>\u5e93\u7528\u4e8e\u5904\u7406\u6570\u7ec4\u548c\u77e9\u9635\u7684\u6570\u5b66\u8ba1\u7b97\uff0c<code>sympy<\/code>\u5e93\u5219\u4e13\u6ce8\u4e8e\u7b26\u53f7\u8ba1\u7b97\uff0c\u5141\u8bb8\u7528\u6237\u5904\u7406\u66f4\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u5e76\u8fdb\u884c\u6c42\u89e3\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u4f8b\u5982\u6d89\u53ca\u53d8\u91cf\u7684\u516c\u5f0f\uff1f<\/strong><br \/>\u5728\u5904\u7406\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u65f6\uff0c\u53ef\u4ee5\u5229\u7528<code>sympy<\/code>\u5e93\uff0c\u5b83\u652f\u6301\u7b26\u53f7\u8ba1\u7b97\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9a\u4e49\u53d8\u91cf\u5e76\u8fdb\u884c\u4ee3\u6570\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u7528\u6237\u53ef\u4ee5\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf\uff0c\u6784\u5efa\u65b9\u7a0b\uff0c\u5e76\u4f7f\u7528<code>solve()<\/code>\u51fd\u6570\u6c42\u89e3\u8fd9\u4e9b\u65b9\u7a0b\uff0c\u9002\u5408\u89e3\u51b3\u5404\u79cd\u6570\u5b66\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5176\u4e2d\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684eval()\u51fd\u6570\u3001ast\u6a21\u5757\u4e2d\u7684liter [&hellip;]","protected":false},"author":3,"featured_media":1106108,"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\/1106101"}],"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=1106101"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1106101\/revisions"}],"predecessor-version":[{"id":1106112,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1106101\/revisions\/1106112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1106108"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1106101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1106101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1106101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}