{"id":1111802,"date":"2025-01-08T17:32:39","date_gmt":"2025-01-08T09:32:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1111802.html"},"modified":"2025-01-08T17:32:41","modified_gmt":"2025-01-08T09:32:41","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5%e6%95%b0%e5%ad%a6%e8%a1%a8%e8%be%be%e5%bc%8fxx","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1111802.html","title":{"rendered":"python\u5982\u4f55\u8f93\u5165\u6570\u5b66\u8868\u8fbe\u5f0fxx"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074113\/f4f9c588-6e9f-4a87-86c9-e29c1d7e60e1.webp\" alt=\"python\u5982\u4f55\u8f93\u5165\u6570\u5b66\u8868\u8fbe\u5f0fxx\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u8f93\u5165\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u76f4\u63a5\u8ba1\u7b97\u3001\u4f7f\u7528eval\u51fd\u6570\u3001\u901a\u8fc7SymPy\u5e93\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97\u7b49\u3002<\/strong>\u4ee5\u4e0b\u662f\u8be6\u7ec6\u4ecb\u7ecd\uff1a<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u8ba1\u7b97<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u9700\u8981\u8ba1\u7b97\u7b80\u5355\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728Python\u4ee3\u7801\u4e2d\u8f93\u5165\u5e76\u8ba1\u7b97\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u76f4\u63a5\u8ba1\u7b97<\/p>\n<p>result1 = 2 + 3 * 5<\/p>\n<p>result2 = (2 + 3) * 5<\/p>\n<p>result3 = 10 \/ 2<\/p>\n<p>print(result1)  # \u8f93\u51fa\uff1a17<\/p>\n<p>print(result2)  # \u8f93\u51fa\uff1a25<\/p>\n<p>print(result3)  # \u8f93\u51fa\uff1a5.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528eval\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>eval<\/code>\u51fd\u6570\u53ef\u4ee5\u8ba1\u7b97\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u8868\u8fbe\u5f0f\u3002\u9700\u8981\u6ce8\u610f\uff0c\u4f7f\u7528<code>eval<\/code>\u51fd\u6570\u53ef\u80fd\u6709\u5b89\u5168\u9690\u60a3\uff0c\u4e0d\u80fd\u5728\u4e0d\u53ef\u4fe1\u7684\u8f93\u5165\u4e0a\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528eval\u8ba1\u7b97\u8868\u8fbe\u5f0f<\/p>\n<p>expression = &quot;2 + 3 * 5&quot;<\/p>\n<p>result = eval(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a17<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1aeval\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p><code>eval<\/code>\u51fd\u6570\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u6267\u884c\u5b58\u50a8\u5728\u5b57\u7b26\u4e32\u4e2d\u7684Python\u8868\u8fbe\u5f0f\u3002\u5b83\u7684\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">eval(expression, globals=None, locals=None)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>expression<\/code>\uff1a\u9700\u8981\u8ba1\u7b97\u7684\u8868\u8fbe\u5f0f\uff0c\u5fc5\u987b\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>globals<\/code>\uff1a\u53ef\u9009\u53c2\u6570\uff0c\u6307\u5b9a\u5168\u5c40\u547d\u540d\u7a7a\u95f4\u3002<\/li>\n<li><code>locals<\/code>\uff1a\u53ef\u9009\u53c2\u6570\uff0c\u6307\u5b9a\u5c40\u90e8\u547d\u540d\u7a7a\u95f4\u3002<\/li>\n<\/ul>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">expression = &quot;10 + 20 * (30 \/ 3)&quot;<\/p>\n<p>result = eval(expression)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a210.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>eval<\/code>\u4f1a\u6267\u884c\u4f20\u5165\u7684\u5b57\u7b26\u4e32\u8868\u8fbe\u5f0f\uff0c\u56e0\u6b64\u5982\u679c\u5305\u542b\u6076\u610f\u4ee3\u7801\uff0c\u53ef\u80fd\u4f1a\u9020\u6210\u5b89\u5168\u95ee\u9898\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">expression = &quot;__import__(&#39;os&#39;).system(&#39;rm -rf \/&#39;)&quot;<\/p>\n<p>eval(expression)  # \u8fd9\u5c06\u4f1a\u5220\u9664\u7cfb\u7edf\u6839\u76ee\u5f55\uff0c\u975e\u5e38\u5371\u9669<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56e0\u6b64\uff0c\u53ea\u6709\u5728\u5b8c\u5168\u4fe1\u4efb\u8f93\u5165\u7684\u60c5\u51b5\u4e0b\uff0c\u624d\u53ef\u4ee5\u4f7f\u7528<code>eval<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528SymPy\u5e93<\/p>\n<\/p>\n<p><p>SymPy\u662fPython\u7684\u4e00\u4e2a\u7b26\u53f7\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u89e3\u6790\u3001\u7b80\u5316\u3001\u6c42\u89e3\u548c\u64cd\u4f5c\u7b26\u53f7\u6570\u5b66\u8868\u8fbe\u5f0f\u3002\u4f7f\u7528SymPy\u5e93\u53ef\u4ee5\u66f4\u5b89\u5168\u5730\u5904\u7406\u6570\u5b66\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5SymPy\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install sympy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528SymPy\u89e3\u6790\u548c\u8ba1\u7b97\u8868\u8fbe\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import sympify, simplify<\/p>\n<h2><strong>\u89e3\u6790\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expression = &quot;2 + 3 * 5&quot;<\/p>\n<p>expr = sympify(expression)<\/p>\n<p>print(expr)  # \u8f93\u51fa\uff1a2 + 3*5<\/p>\n<h2><strong>\u8ba1\u7b97\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>result = expr.evalf()<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a17.0000000000000<\/p>\n<h2><strong>\u7b80\u5316\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>simplified_expr = simplify(&quot;x2 + 2*x + 1&quot;)<\/p>\n<p>print(simplified_expr)  # \u8f93\u51fa\uff1a(x + 1)2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u901a\u8fc7SymPy\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97<\/p>\n<\/p>\n<p><p>SymPy\u4e0d\u4ec5\u80fd\u5904\u7406\u6570\u503c\u8ba1\u7b97\uff0c\u8fd8\u80fd\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import symbols, Eq, solve<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x, y = symbols(&#39;x y&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expr = x2 + 2*x + 1<\/p>\n<h2><strong>\u6c42\u89e3\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>solutions = solve(expr, x)<\/p>\n<p>print(solutions)  # \u8f93\u51fa\uff1a[-1]<\/p>\n<h2><strong>\u521b\u5efa\u65b9\u7a0b<\/strong><\/h2>\n<p>equation = Eq(x2 + y, 4)<\/p>\n<h2><strong>\u6c42\u89e3\u65b9\u7a0b<\/strong><\/h2>\n<p>solution = solve(equation, x)<\/p>\n<p>print(solution)  # \u8f93\u51fa\uff1a[(-sqrt(4 - y), sqrt(4 - y))]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1aSymPy\u5e93<\/strong><\/p>\n<\/p>\n<p><p>SymPy\u662f\u4e00\u4e2a\u5f00\u6e90Python\u5e93\uff0c\u7528\u4e8e\u7b26\u53f7\u6570\u5b66\u8ba1\u7b97\u3002\u5b83\u53ef\u4ee5\u5904\u7406\u4ee3\u6570\u3001\u5fae\u79ef\u5206\u3001\u79bb\u6563\u6570\u5b66\u3001\u6570\u8bba\u7b49\u9886\u57df\u7684\u7b26\u53f7\u8ba1\u7b97\u3002SymPy\u7684\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u9002\u7528\u4e8e\u6559\u80b2\u3001\u7814\u7a76\u548c\u5de5\u7a0b\u5e94\u7528\u3002\u4ee5\u4e0b\u662fSymPy\u7684\u4e00\u4e9b\u4e3b\u8981\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u7b26\u53f7\u8ba1\u7b97<\/strong>\uff1a\u53ef\u4ee5\u8fdb\u884c\u7b26\u53f7\u4ee3\u6570\u3001\u5fae\u79ef\u5206\u3001\u6781\u9650\u3001\u7ea7\u6570\u5c55\u5f00\u7b49\u3002<\/li>\n<li><strong>\u65b9\u7a0b\u6c42\u89e3<\/strong>\uff1a\u53ef\u4ee5\u6c42\u89e3\u4ee3\u6570\u65b9\u7a0b\u3001\u5fae\u5206\u65b9\u7a0b\u3001\u5dee\u5206\u65b9\u7a0b\u7b49\u3002<\/li>\n<li><strong>\u77e9\u9635\u8fd0\u7b97<\/strong>\uff1a\u652f\u6301\u77e9\u9635\u7684\u5404\u79cd\u8fd0\u7b97\uff0c\u5982\u52a0\u6cd5\u3001\u4e58\u6cd5\u3001\u6c42\u9006\u3001\u7279\u5f81\u503c\u7b49\u3002<\/li>\n<li><strong>\u7b80\u5316\u8868\u8fbe\u5f0f<\/strong>\uff1a\u53ef\u4ee5\u5bf9\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u8fdb\u884c\u7b80\u5316\u3002<\/li>\n<li><strong>\u7ed8\u56fe<\/strong>\uff1a\u53ef\u4ee5\u7ed8\u5236\u51fd\u6570\u56fe\u50cf\u548c\u51e0\u4f55\u56fe\u5f62\u3002<\/li>\n<\/ol>\n<p><p><strong>\u793a\u4f8b\uff1a\u7b26\u53f7\u8ba1\u7b97<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import symbols, diff, integrate<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u5b9a\u4e49\u8868\u8fbe\u5f0f<\/strong><\/h2>\n<p>expr = x&lt;strong&gt;3 + x&lt;\/strong&gt;2 + x + 1<\/p>\n<h2><strong>\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u5bfc\u6570<\/strong><\/h2>\n<p>derivative = diff(expr, x)<\/p>\n<p>print(derivative)  # \u8f93\u51fa\uff1a3*x2 + 2*x + 1<\/p>\n<h2><strong>\u8ba1\u7b97\u8868\u8fbe\u5f0f\u7684\u79ef\u5206<\/strong><\/h2>\n<p>integral = integrate(expr, x)<\/p>\n<p>print(integral)  # \u8f93\u51fa\uff1ax&lt;strong&gt;4\/4 + x&lt;\/strong&gt;3\/3 + x2\/2 + x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u793a\u4f8b\uff1a\u65b9\u7a0b\u6c42\u89e3<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sympy import symbols, Eq, solve<\/p>\n<h2><strong>\u5b9a\u4e49\u7b26\u53f7\u53d8\u91cf<\/strong><\/h2>\n<p>x = symbols(&#39;x&#39;)<\/p>\n<h2><strong>\u521b\u5efa\u65b9\u7a0b<\/strong><\/h2>\n<p>equation = Eq(x2 + 2*x + 1, 0)<\/p>\n<h2><strong>\u6c42\u89e3\u65b9\u7a0b<\/strong><\/h2>\n<p>solutions = solve(equation, x)<\/p>\n<p>print(solutions)  # \u8f93\u51fa\uff1a[-1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8f93\u5165\u6570\u5b66\u8868\u8fbe\u5f0f\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5177\u4f53\u65b9\u6cd5\u7684\u9009\u62e9\u53d6\u51b3\u4e8e\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002\u5982\u679c\u662f\u7b80\u5355\u7684\u6570\u503c\u8ba1\u7b97\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u4ee3\u7801\u4e2d\u7f16\u5199\u8868\u8fbe\u5f0f\u6216\u4f7f\u7528<code>eval<\/code>\u51fd\u6570\u3002\u5bf9\u4e8e\u9700\u8981\u7b26\u53f7\u8ba1\u7b97\u548c\u66f4\u590d\u6742\u6570\u5b66\u64cd\u4f5c\u7684\u573a\u666f\uff0c\u63a8\u8350\u4f7f\u7528SymPy\u5e93\u3002SymPy\u4e0d\u4ec5\u529f\u80fd\u5f3a\u5927\uff0c\u8fd8\u80fd\u786e\u4fdd\u8ba1\u7b97\u7684\u5b89\u5168\u6027\uff0c\u9002\u7528\u4e8e\u6559\u80b2\u3001\u7814\u7a76\u548c\u5de5\u7a0b\u5e94\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8f93\u5165\u5e76\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>eval()<\/code>\u51fd\u6570\u6765\u8f93\u5165\u548c\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u3002\u7528\u6237\u53ea\u9700\u5c06\u6570\u5b66\u8868\u8fbe\u5f0f\u4f5c\u4e3a\u5b57\u7b26\u4e32\u4f20\u9012\u7ed9<code>eval()<\/code>\uff0c\u4f8b\u5982\uff1a<code>result = eval(&#39;2 + 3 * 5&#39;)<\/code>\u3002\u4e0d\u8fc7\uff0c\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u5efa\u8bae\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\u8fdb\u884c\u6709\u6548\u6027\u68c0\u67e5\uff0c\u907f\u514d\u6267\u884c\u6076\u610f\u4ee3\u7801\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u5e93\u6765\u5904\u7406\u6570\u5b66\u8868\u8fbe\u5f0f\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u4e2d\u6709\u8bb8\u591a\u5e93\u53ef\u4ee5\u7528\u4e8e\u89e3\u6790\u548c\u8ba1\u7b97\u6570\u5b66\u8868\u8fbe\u5f0f\u3002<code>sympy<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e93\uff0c\u53ef\u4ee5\u8fdb\u884c\u7b26\u53f7\u8ba1\u7b97\u548c\u8868\u8fbe\u5f0f\u89e3\u6790\u3002\u7528\u6237\u53ef\u4ee5\u5b89\u88c5\u6b64\u5e93\u5e76\u4f7f\u7528\u5176\u529f\u80fd\uff0c\u4f8b\u5982\u4f7f\u7528<code>sympy.sympify()<\/code>\u6765\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u5e76\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u8ba1\u7b97\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u8f93\u5165\uff1f<\/strong><br \/>\u5bf9\u4e8e\u590d\u6742\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u7528\u6237\u53ef\u4ee5\u4f7f\u7528<code>sympy<\/code>\u5e93\u4e2d\u7684\u529f\u80fd\u6765\u7b80\u5316\u548c\u6c42\u89e3\u8fd9\u4e9b\u8868\u8fbe\u5f0f\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u8868\u8fbe\u5f0f\uff0c\u5e76\u7ed3\u5408<code>try-except<\/code>\u8bed\u53e5\u6765\u6355\u6349\u548c\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff0c\u80fd\u591f\u63d0\u9ad8\u7a0b\u5e8f\u7684\u5065\u58ee\u6027\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u63d0\u793a\u7528\u6237\u8f93\u5165\u6709\u6548\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\u5e76\u8fdb\u884c\u9519\u8bef\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u8f93\u5165\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u76f4\u63a5\u8ba1\u7b97\u3001\u4f7f\u7528eval\u51fd\u6570\u3001\u901a\u8fc7SymPy\u5e93\u8fdb\u884c\u7b26\u53f7\u8ba1 [&hellip;]","protected":false},"author":3,"featured_media":1111808,"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\/1111802"}],"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=1111802"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111802\/revisions"}],"predecessor-version":[{"id":1111812,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111802\/revisions\/1111812"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1111808"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1111802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1111802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1111802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}