{"id":1185902,"date":"2025-01-15T19:46:27","date_gmt":"2025-01-15T11:46:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1185902.html"},"modified":"2025-01-15T19:46:30","modified_gmt":"2025-01-15T11:46:30","slug":"python%e5%a6%82%e4%bd%95%e6%98%be%e7%a4%ba%e5%8f%98%e9%87%8f%e5%90%8d%e7%a7%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1185902.html","title":{"rendered":"python\u5982\u4f55\u663e\u793a\u53d8\u91cf\u540d\u79f0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25134904\/8172493d-f8de-4f2d-b0a4-fa0c37df6b1c.webp\" alt=\"python\u5982\u4f55\u663e\u793a\u53d8\u91cf\u540d\u79f0\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c<strong>\u8981\u663e\u793a\u53d8\u91cf\u7684\u540d\u79f0\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u95f4\u63a5\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0<\/strong>\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\u3001\u6216\u8005\u901a\u8fc7\u81ea\u5b9a\u4e49\u7c7b\u548c\u5143\u7f16\u7a0b\u7b49\u65b9\u5f0f\u3002\u5176\u4e2d\u4e00\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u901a\u8fc7\u5b57\u5178\u6765\u5173\u8054\u53d8\u91cf\u7684\u540d\u79f0\u548c\u5b83\u4eec\u7684\u503c\u3002<strong>\u4f60\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u6765\u5b58\u50a8\u53d8\u91cf\u7684\u540d\u79f0\u548c\u53d8\u91cf\u503c\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\uff0c\u4ece\u800c\u5728\u9700\u8981\u7684\u65f6\u5019\u8fdb\u884c\u8f93\u51fa\u3002<strong>\u5b57\u5178\u7684\u952e\u53ef\u4ee5\u662f\u53d8\u91cf\u7684\u540d\u79f0\uff08\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\uff09\uff0c\u800c\u503c\u53ef\u4ee5\u662f\u5b9e\u9645\u7684\u53d8\u91cf\u503c<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u4e2d\u7684\u4e00\u79cd\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5b57\u5178\u5b58\u50a8\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u5b57\u5178\u5b58\u50a8\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u6709\u6548\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u8ddf\u8e2a\u548c\u8f93\u51fa\u53d8\u91cf\u7684\u540d\u79f0\u548c\u5b83\u4eec\u7684\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u53d8\u91cf<\/p>\n<p>a = 10<\/p>\n<p>b = 20<\/p>\n<p>c = 30<\/p>\n<h2><strong>\u4f7f\u7528\u5b57\u5178\u5b58\u50a8\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>variables = {<\/p>\n<p>    &#39;a&#39;: a,<\/p>\n<p>    &#39;b&#39;: b,<\/p>\n<p>    &#39;c&#39;: c<\/p>\n<p>}<\/p>\n<h2><strong>\u8f93\u51fa\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>for var_name, var_value in variables.items():<\/p>\n<p>    print(f&quot;Variable name: {var_name}, Variable value: {var_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u4e09\u4e2a\u53d8\u91cf <code>a<\/code>\u3001<code>b<\/code> \u548c <code>c<\/code>\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u7684\u540d\u79f0\u548c\u5bf9\u5e94\u7684\u503c\u5b58\u50a8\u5728\u4e00\u4e2a\u5b57\u5178 <code>variables<\/code> \u4e2d\u3002\u901a\u8fc7\u904d\u5386\u8fd9\u4e2a\u5b57\u5178\uff0c\u6211\u4eec\u53ef\u4ee5\u8f93\u51fa\u6bcf\u4e2a\u53d8\u91cf\u7684\u540d\u79f0\u548c\u53d8\u91cf\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/h3>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u4e00\u4e9b\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u8c03\u8bd5\u65f6\u663e\u793a\u53d8\u91cf\u7684\u540d\u79f0\u548c\u503c\u3002\u8fd9\u91cc\u4ecb\u7ecd\u4e24\u79cd\u5e38\u7528\u7684\u8c03\u8bd5\u5de5\u5177\uff1a<code>pdb<\/code> \u548c <code>ipdb<\/code>\u3002<\/p>\n<\/p>\n<p><h4>1. pdb<\/h4>\n<\/p>\n<p><p><code>pdb<\/code> \u662f Python \u6807\u51c6\u5e93\u4e2d\u7684\u8c03\u8bd5\u5668\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u65ad\u70b9\u5e76\u68c0\u67e5\u53d8\u91cf\u7684\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f7f\u7528 <code>pdb<\/code> \u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdb<\/p>\n<h2><strong>\u5b9a\u4e49\u53d8\u91cf<\/strong><\/h2>\n<p>x = 42<\/p>\n<p>y = &#39;hello&#39;<\/p>\n<p>z = [1, 2, 3]<\/p>\n<h2><strong>\u8bbe\u7f6e\u65ad\u70b9<\/strong><\/h2>\n<p>pdb.set_trace()<\/p>\n<h2><strong>\u8f93\u51fa\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>print(f&quot;x: {x}, y: {y}, z: {z}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5f53\u6267\u884c\u5230 <code>pdb.set_trace()<\/code> \u8fd9\u4e00\u884c\u65f6\uff0c\u7a0b\u5e8f\u4f1a\u6682\u505c\u5e76\u8fdb\u5165\u8c03\u8bd5\u6a21\u5f0f\u3002\u6b64\u65f6\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u53d8\u91cf\u7684\u540d\u79f0\u6765\u67e5\u770b\u53d8\u91cf\u7684\u503c\u3002\u4f8b\u5982\uff0c\u8f93\u5165 <code>x<\/code> \u56de\u8f66\u540e\uff0c\u4f1a\u663e\u793a <code>42<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2. ipdb<\/h4>\n<\/p>\n<p><p><code>ipdb<\/code> \u662f <code>pdb<\/code> \u7684\u4e00\u4e2a\u589e\u5f3a\u7248\u672c\uff0c\u63d0\u4f9b\u4e86\u66f4\u53cb\u597d\u7684\u7528\u6237\u754c\u9762\u548c\u66f4\u591a\u529f\u80fd\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5 <code>ipdb<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install ipdb<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528 <code>ipdb<\/code> \u7684\u65b9\u6cd5\u4e0e <code>pdb<\/code> \u7c7b\u4f3c\uff0c\u53ea\u9700\u5c06 <code>pdb<\/code> \u66ff\u6362\u4e3a <code>ipdb<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import ipdb<\/p>\n<h2><strong>\u5b9a\u4e49\u53d8\u91cf<\/strong><\/h2>\n<p>x = 42<\/p>\n<p>y = &#39;hello&#39;<\/p>\n<p>z = [1, 2, 3]<\/p>\n<h2><strong>\u8bbe\u7f6e\u65ad\u70b9<\/strong><\/h2>\n<p>ipdb.set_trace()<\/p>\n<h2><strong>\u8f93\u51fa\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>print(f&quot;x: {x}, y: {y}, z: {z}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u548c\u5143\u7f16\u7a0b<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u5b57\u5178\u548c\u8c03\u8bd5\u5de5\u5177\u5916\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49\u7c7b\u548c\u5143\u7f16\u7a0b\u6765\u5b9e\u73b0\u663e\u793a\u53d8\u91cf\u540d\u79f0\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Variable:<\/p>\n<p>    def __init__(self, name, value):<\/p>\n<p>        self.name = name<\/p>\n<p>        self.value = value<\/p>\n<p>    def __repr__(self):<\/p>\n<p>        return f&quot;Variable(name=&#39;{self.name}&#39;, value={self.value})&quot;<\/p>\n<h2><strong>\u521b\u5efa\u53d8\u91cf\u5bf9\u8c61<\/strong><\/h2>\n<p>a = Variable(&#39;a&#39;, 10)<\/p>\n<p>b = Variable(&#39;b&#39;, 20)<\/p>\n<p>c = Variable(&#39;c&#39;, 30)<\/p>\n<h2><strong>\u8f93\u51fa\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>print(a)<\/p>\n<p>print(b)<\/p>\n<p>print(c)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a <code>Variable<\/code> \u7c7b\uff0c\u7528\u4e8e\u5b58\u50a8\u53d8\u91cf\u7684\u540d\u79f0\u548c\u53d8\u91cf\u503c\u3002\u901a\u8fc7\u521b\u5efa <code>Variable<\/code> \u7c7b\u7684\u5b9e\u4f8b\uff0c\u53ef\u4ee5\u5c06\u53d8\u91cf\u7684\u540d\u79f0\u548c\u53d8\u91cf\u503c\u5173\u8054\u8d77\u6765\uff0c\u5e76\u901a\u8fc7\u91cd\u5199 <code>__repr__<\/code> \u65b9\u6cd5\uff0c\u5b9e\u73b0\u53d8\u91cf\u540d\u79f0\u548c\u503c\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 <code>globals()<\/code> \u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>globals()<\/code> \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u5168\u5c40\u7b26\u53f7\u8868\u7684\u5b57\u5178\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u8fd9\u4e2a\u5b57\u5178\u6765\u67e5\u627e\u53d8\u91cf\u7684\u540d\u79f0\u548c\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u53d8\u91cf<\/p>\n<p>a = 10<\/p>\n<p>b = 20<\/p>\n<p>c = 30<\/p>\n<h2><strong>\u4f7f\u7528 globals() \u51fd\u6570\u83b7\u53d6\u5168\u5c40\u53d8\u91cf<\/strong><\/h2>\n<p>global_vars = globals()<\/p>\n<h2><strong>\u8f93\u51fa\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>for var_name, var_value in global_vars.items():<\/p>\n<p>    if var_name in [&#39;a&#39;, &#39;b&#39;, &#39;c&#39;]:<\/p>\n<p>        print(f&quot;Variable name: {var_name}, Variable value: {var_value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7 <code>globals()<\/code> \u51fd\u6570\u83b7\u53d6\u4e86\u5f53\u524d\u5168\u5c40\u7b26\u53f7\u8868\uff0c\u5e76\u904d\u5386\u8fd9\u4e2a\u5b57\u5178\u6765\u67e5\u627e\u53d8\u91cf <code>a<\/code>\u3001<code>b<\/code> \u548c <code>c<\/code> \u7684\u540d\u79f0\u548c\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728 Python \u4e2d\u663e\u793a\u53d8\u91cf\u7684\u540d\u79f0\u548c\u53d8\u91cf\u503c\u3002<strong>\u4f7f\u7528\u5b57\u5178\u5b58\u50a8\u53d8\u91cf\u540d\u79f0\u548c\u53d8\u91cf\u503c\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u6709\u6548\u7684\u65b9\u6cd5<\/strong>\uff0c<strong>\u800c\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\u53ef\u4ee5\u5728\u8c03\u8bd5\u65f6\u65b9\u4fbf\u5730\u68c0\u67e5\u53d8\u91cf\u7684\u503c<\/strong>\u3002\u6b64\u5916\uff0c<strong>\u901a\u8fc7\u81ea\u5b9a\u4e49\u7c7b\u548c\u5143\u7f16\u7a0b\uff0c\u4f60\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u529f\u80fd<\/strong>\u3002<strong>\u6700\u540e\uff0c\u4f7f\u7528 <code>globals()<\/code> \u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u83b7\u53d6\u5168\u5c40\u7b26\u53f7\u8868\u4e2d\u7684\u53d8\u91cf<\/strong>\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u53d8\u91cf\u7684\u540d\u79f0\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u76f4\u63a5\u83b7\u53d6\u53d8\u91cf\u7684\u540d\u79f0\u5e76\u4e0d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u56e0\u4e3a\u53d8\u91cf\u540d\u901a\u5e38\u53ea\u662f\u6307\u5411\u6570\u636e\u7684\u6807\u7b7e\u3002\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u65b9\u6cd5\u6765\u95f4\u63a5\u5b9e\u73b0\u8fd9\u4e2a\u9700\u6c42\uff0c\u6bd4\u5982\u5229\u7528\u5b57\u5178\u6765\u5b58\u50a8\u53d8\u91cf\u548c\u5b83\u4eec\u7684\u540d\u79f0\u3002\u4f8b\u5982\uff0c\u901a\u8fc7\u5c06\u53d8\u91cf\u4f5c\u4e3a\u5b57\u5178\u7684\u503c\uff0c\u53d8\u91cf\u7684\u540d\u79f0\u4f5c\u4e3a\u5b57\u5178\u7684\u952e\uff0c\u53ef\u4ee5\u8f7b\u677e\u8bbf\u95ee\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u529e\u6cd5\u5728\u8c03\u8bd5\u65f6\u67e5\u770b\u6240\u6709\u53d8\u91cf\u7684\u540d\u79f0\u548c\u5b83\u4eec\u7684\u503c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>locals()<\/code>\u6216<code>globals()<\/code>\u51fd\u6570\u6765\u67e5\u770b\u5f53\u524d\u4f5c\u7528\u57df\u5185\u7684\u6240\u6709\u53d8\u91cf\u53ca\u5176\u503c\u3002<code>locals()<\/code>\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5f53\u524d\u5c40\u90e8\u53d8\u91cf\u540d\u79f0\u53ca\u5176\u503c\u7684\u5b57\u5178\uff0c\u800c<code>globals()<\/code>\u5219\u8fd4\u56de\u5168\u5c40\u53d8\u91cf\u3002\u5982\u679c\u5e0c\u671b\u5728\u8c03\u8bd5\u65f6\u5feb\u901f\u67e5\u770b\u8fd9\u4e9b\u4fe1\u606f\uff0c\u8fd9\u4e9b\u51fd\u6570\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u663e\u793a\u53d8\u91cf\u7684\u540d\u79f0\uff1f<\/strong><br \/>\u5f53\u7136\u53ef\u4ee5\u3002\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u63a5\u6536\u53d8\u91cf\u7684\u51fd\u6570\uff0c\u5e76\u4f7f\u7528<code>inspect<\/code>\u6a21\u5757\u4e2d\u7684<code>currentframe()<\/code>\u548c<code>getframeinfo()<\/code>\u65b9\u6cd5\u6765\u83b7\u53d6\u53d8\u91cf\u7684\u540d\u79f0\u3002\u8fd9\u6837\uff0c\u4f60\u53ef\u4ee5\u5728\u81ea\u5b9a\u4e49\u51fd\u6570\u4e2d\u6253\u5370\u51fa\u4f20\u5165\u53d8\u91cf\u7684\u540d\u79f0\u548c\u5bf9\u5e94\u7684\u503c\uff0c\u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u53d8\u91cf\u663e\u793a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u8981\u663e\u793a\u53d8\u91cf\u7684\u540d\u79f0\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u95f4\u63a5\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177\u3001\u6216\u8005\u901a\u8fc7\u81ea\u5b9a\u4e49\u7c7b [&hellip;]","protected":false},"author":3,"featured_media":1185911,"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\/1185902"}],"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=1185902"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185902\/revisions"}],"predecessor-version":[{"id":1185913,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1185902\/revisions\/1185913"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1185911"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1185902"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1185902"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1185902"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}