{"id":965964,"date":"2024-12-27T04:43:03","date_gmt":"2024-12-26T20:43:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/965964.html"},"modified":"2024-12-27T04:43:06","modified_gmt":"2024-12-26T20:43:06","slug":"python%e5%a6%82%e4%bd%95%e6%b8%85%e9%99%a4%e8%be%93%e5%87%ba%e5%86%85%e5%ae%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/965964.html","title":{"rendered":"python\u5982\u4f55\u6e05\u9664\u8f93\u51fa\u5185\u5bb9"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182008\/8ae531dc-8056-4327-8b94-0fe270100694.webp\" alt=\"python\u5982\u4f55\u6e05\u9664\u8f93\u51fa\u5185\u5bb9\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6e05\u9664\u8f93\u51fa\u5185\u5bb9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7279\u5b9a\u5e93\u7684\u51fd\u6570\u3001\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u6216\u91cd\u5b9a\u5411\u8f93\u51fa\u6d41\u6765\u5b9e\u73b0\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u63a7\u5236\u53f0\u547d\u4ee4\u5982&#39;cls&#39;\u548c&#39;clear&#39;\u3001\u5229\u7528\u5e93\u5982&#39;os&#39;\u6a21\u5757\u6765\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u3001\u4ee5\u53ca\u901a\u8fc7Jupyter Notebook\u7279\u5b9a\u65b9\u6cd5\u8fdb\u884c\u6e05\u9664\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528&#39;os&#39;\u6a21\u5757\u6765\u6267\u884c\u6e05\u5c4f\u64cd\u4f5c\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u901a\u8fc7<code>os<\/code>\u6a21\u5757\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u8c03\u7528\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u529f\u80fd\uff0c\u5176\u4e2d\u5305\u62ec\u6e05\u9664\u547d\u4ee4\u884c\u7a97\u53e3\u7684\u5185\u5bb9\u3002\u5177\u4f53\u5b9e\u73b0\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def clear_console():<\/p>\n<p>    # \u5224\u65ad\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b<\/p>\n<p>    if os.name == &#39;nt&#39;:  # \u5982\u679c\u662fWindows\u7cfb\u7edf<\/p>\n<p>        os.system(&#39;cls&#39;)<\/p>\n<p>    else:  # \u5982\u679c\u662f\u7c7bUnix\u7cfb\u7edf\uff08Linux\u3001Mac OS\u7b49\uff09<\/p>\n<p>        os.system(&#39;clear&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u51fd\u6570\u4f1a\u6839\u636e\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u7684\u7c7b\u578b\u9009\u62e9\u5408\u9002\u7684\u547d\u4ee4\u6765\u6e05\u7a7a\u63a7\u5236\u53f0\u7a97\u53e3\u3002\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u4f7f\u7528<code>cls<\/code>\u547d\u4ee4\uff0c\u800c\u5728Unix\u6216Linux\u7cfb\u7edf\u4e0a\u5219\u4f7f\u7528<code>clear<\/code>\u547d\u4ee4\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001OS\u6a21\u5757\u6e05\u9664\u8f93\u51fa<\/p>\n<\/p>\n<p><p>Python\u7684<code>os<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u7684\u529f\u80fd\uff0c\u80fd\u591f\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u3002\u901a\u8fc7\u8c03\u7528<code>os.system()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6e05\u9664\u63a7\u5236\u53f0\u8f93\u51fa\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8de8\u5e73\u53f0\u517c\u5bb9\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528<code>os.system()<\/code>\u65f6\uff0c\u9700\u8981\u8003\u8651\u5230\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u5dee\u5f02\u3002Windows\u7cfb\u7edf\u4f7f\u7528<code>cls<\/code>\u547d\u4ee4\uff0c\u800cUnix\u6216Linux\u7cfb\u7edf\u4f7f\u7528<code>clear<\/code>\u547d\u4ee4\u3002\u901a\u8fc7<code>os.name<\/code>\u53ef\u4ee5\u5224\u65ad\u5f53\u524d\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4ece\u800c\u9009\u62e9\u5408\u9002\u7684\u547d\u4ee4\u8fdb\u884c\u6267\u884c\u3002\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u4ee3\u7801\u7684\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def clear_console():<\/p>\n<p>    if os.name == &#39;nt&#39;:<\/p>\n<p>        os.system(&#39;cls&#39;)<\/p>\n<p>    else:<\/p>\n<p>        os.system(&#39;clear&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u9002\u7528\u4e8e\u5728\u811a\u672c\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u9700\u8981\u6e05\u9664\u5148\u524d\u8f93\u51fa\u7684\u573a\u666f\u3002\u6bd4\u5982\u5728\u5f00\u53d1\u63a7\u5236\u53f0\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u53ef\u4ee5\u5728\u6bcf\u6b21\u5faa\u73af\u5f00\u59cb\u65f6\u6e05\u9664\u5c4f\u5e55\uff0c\u4ee5\u4fbf\u4e8e\u7528\u6237\u67e5\u770b\u5f53\u524d\u7684\u4fe1\u606f\u800c\u4e0d\u88ab\u5386\u53f2\u4fe1\u606f\u5e72\u6270\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u63a7\u5236\u5b57\u7b26\u6e05\u9664\u8f93\u51fa<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u63a7\u5236\u5b57\u7b26\u6765\u6e05\u9664\u7ec8\u7aef\u7684\u8f93\u51fa\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4f9d\u8d56\u4e8e\u5916\u90e8\u547d\u4ee4\uff0c\u66f4\u52a0\u9ad8\u6548\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>ANSI\u8f6c\u4e49\u5e8f\u5217<\/strong><\/p>\n<\/p>\n<p><p>\u5927\u591a\u6570\u73b0\u4ee3\u7ec8\u7aef\u90fd\u652f\u6301ANSI\u8f6c\u4e49\u5e8f\u5217\uff0c\u5176\u4e2d\u5305\u62ec\u6e05\u9664\u5c4f\u5e55\u7684\u547d\u4ee4\u3002\u901a\u8fc7\u5728\u8f93\u51fa\u6d41\u4e2d\u53d1\u9001\u7279\u5b9a\u7684\u5b57\u7b26\u5e8f\u5217\uff0c\u53ef\u4ee5\u76f4\u63a5\u63a7\u5236\u7ec8\u7aef\u7684\u663e\u793a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def clear_console_ansi():<\/p>\n<p>    print(&quot;\\033[H\\033[J&quot;, end=&quot;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u7684<code>\\033[H\\033[J<\/code>\u662fANSI\u8f6c\u4e49\u5e8f\u5217\uff0c<code>H<\/code>\u6307\u4ee4\u5c06\u5149\u6807\u79fb\u52a8\u5230\u5c4f\u5e55\u7684\u5de6\u4e0a\u89d2\uff0c<code>J<\/code>\u6307\u4ee4\u6e05\u9664\u4ece\u5149\u6807\u4f4d\u7f6e\u5230\u5c4f\u5e55\u672b\u5c3e\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9002\u7528\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u652f\u6301ANSI\u8f6c\u4e49\u5e8f\u5217\u7684\u7ec8\u7aef\uff0c\u5982\u5927\u591a\u6570Linux\u7ec8\u7aef\u548c\u4e00\u4e9bWindows\u7ec8\u7aef\u6a21\u62df\u5668\uff08\u5982Windows Terminal\uff09\u3002\u7136\u800c\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u67d0\u4e9b\u7ec8\u7aef\u53ef\u80fd\u4e0d\u652f\u6301\u8fd9\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001Jupyter Notebook\u6e05\u9664\u8f93\u51fa<\/p>\n<\/p>\n<p><p>\u5728Jupyter Notebook\u4e2d\uff0c\u901a\u5e38\u4e0d\u4f1a\u4f7f\u7528\u63a7\u5236\u53f0\u547d\u4ee4\u6765\u6e05\u9664\u8f93\u51fa\uff0c\u800c\u662f\u5229\u7528\u5176\u5185\u7f6e\u529f\u80fd\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>IPython.display<\/strong><\/p>\n<\/p>\n<p><p>Jupyter Notebook\u63d0\u4f9b\u4e86<code>clear_output()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u6e05\u9664\u5355\u5143\u683c\u7684\u8f93\u51fa\u3002\u8fd9\u4e2a\u65b9\u6cd5\u901a\u8fc7\u5728\u6bcf\u6b21\u6267\u884c\u4ee3\u7801\u5355\u5143\u65f6\u8c03\u7528<code>clear_output()<\/code>\uff0c\u53ef\u4ee5\u6e05\u9664\u5148\u524d\u7684\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from IPython.display import clear_output<\/p>\n<p>def clear_notebook_output():<\/p>\n<p>    clear_output(w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>t=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u53c2\u6570<code>wait=True<\/code>\u8868\u793a\u6e05\u9664\u8f93\u51fa\u540e\u7acb\u5373\u663e\u793a\u65b0\u7684\u8f93\u51fa\uff0c\u4ece\u800c\u51cf\u5c11\u95ea\u70c1\u73b0\u8c61\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>\u5728Jupyter Notebook\u4e2d\u8fdb\u884c\u6570\u636e\u5206\u6790\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u53cd\u590d\u8c03\u6574\u4ee3\u7801\u5e76\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002\u901a\u8fc7<code>clear_output()<\/code>\uff0c\u53ef\u4ee5\u907f\u514d\u8f93\u51fa\u7ed3\u679c\u5806\u79ef\uff0c\u4f7f\u5f97Notebook\u66f4\u52a0\u6574\u6d01\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5176\u4ed6Python\u5e93\u5b9e\u73b0\u6e05\u9664\u8f93\u51fa<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u6709\u4e00\u4e9bPython\u5e93\u80fd\u591f\u63d0\u4f9b\u6e05\u9664\u8f93\u51fa\u7684\u529f\u80fd\uff0c\u9002\u5408\u7279\u5b9a\u573a\u666f\u4e0b\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Rich\u5e93<\/strong><\/p>\n<\/p>\n<p><p>Rich\u662f\u4e00\u4e2a\u7528\u4e8e\u7f8e\u5316\u63a7\u5236\u53f0\u8f93\u51fa\u7684Python\u5e93\uff0c\u63d0\u4f9b\u4e86\u6e05\u9664\u5c4f\u5e55\u7684\u529f\u80fd\u3002\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>console.clear()<\/code>\u65b9\u6cd5\u6765\u6e05\u9664\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from rich.console import Console<\/p>\n<p>console = Console()<\/p>\n<p>def clear_rich_output():<\/p>\n<p>    console.clear()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Rich\u5e93\u4e0d\u4ec5\u53ef\u4ee5\u6e05\u9664\u8f93\u51fa\uff0c\u8fd8\u80fd\u591f\u63d0\u4f9b\u591a\u79cd\u683c\u5f0f\u5316\u9009\u9879\uff0c\u4f7f\u5f97\u63a7\u5236\u53f0\u8f93\u51fa\u66f4\u52a0\u7f8e\u89c2\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>Rich\u5e93\u9002\u5408\u7528\u4e8e\u5f00\u53d1\u9700\u8981\u4e30\u5bcc\u63a7\u5236\u53f0\u8f93\u51fa\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982\u547d\u4ee4\u884c\u754c\u9762\uff08CLI\uff09\u5de5\u5177\u3002\u901a\u8fc7\u7ed3\u5408\u5176\u683c\u5f0f\u5316\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u5177\u4ea4\u4e92\u6027\u548c\u7f8e\u89c2\u7684\u7ec8\u7aef\u754c\u9762\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u6e05\u9664Python\u8f93\u51fa\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u5e73\u53f0\u8981\u6c42\u3002\u5728\u547d\u4ee4\u884c\u7a0b\u5e8f\u4e2d\uff0c<code>os.system()<\/code>\u548cANSI\u8f6c\u4e49\u5e8f\u5217\u662f\u5e38\u7528\u7684\u9009\u62e9\uff0c\u800c\u5728Jupyter Notebook\u4e2d\uff0c<code>clear_output()<\/code>\u5219\u66f4\u52a0\u5408\u9002\u3002\u5bf9\u4e8e\u9700\u8981\u7f8e\u5316\u63a7\u5236\u53f0\u8f93\u51fa\u7684\u5e94\u7528\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528Rich\u5e93\u7b49\u7b2c\u4e09\u65b9\u5de5\u5177\u3002\u901a\u8fc7\u5408\u7406\u5730\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u7a0b\u5e8f\u7684\u7528\u6237\u4f53\u9a8c\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6e05\u9664\u63a7\u5236\u53f0\u8f93\u51fa\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6e05\u9664\u63a7\u5236\u53f0\u8f93\u51fa\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u60a8\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u4e2d\u7684<code>system<\/code>\u51fd\u6570\u6267\u884c<code>cls<\/code>\u547d\u4ee4\uff0c\u800c\u5728Linux\u6216MacOS\u4e0a\u5219\u4f7f\u7528<code>clear<\/code>\u547d\u4ee4\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\n\ndef clear_console():\n    os.system(&#39;cls&#39; if os.name == &#39;nt&#39; else &#39;clear&#39;)\n\nclear_console()\n<\/code><\/pre>\n<p><strong>Python\u662f\u5426\u6709\u5185\u7f6e\u51fd\u6570\u53ef\u4ee5\u6e05\u9664\u8f93\u51fa\uff1f<\/strong><br \/>Python\u672c\u8eab\u5e76\u6ca1\u6709\u4e13\u95e8\u7684\u5185\u7f6e\u51fd\u6570\u6765\u6e05\u9664\u63a7\u5236\u53f0\u8f93\u51fa\u3002\u901a\u5e38\u9700\u8981\u4f9d\u8d56\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u547d\u4ee4\uff0c\u6216\u8005\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982<code>curses<\/code>\u6765\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u63a7\u5236\u53f0\u7ba1\u7406\u3002\u5982\u679c\u60a8\u9700\u8981\u9891\u7e41\u6e05\u9664\u8f93\u51fa\uff0c\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\u6765\u5c01\u88c5\u8fd9\u4e00\u64cd\u4f5c\u662f\u4e2a\u597d\u4e3b\u610f\u3002<\/p>\n<p><strong>\u5728Jupyter Notebook\u4e2d\u5982\u4f55\u6e05\u9664\u8f93\u51fa\u5185\u5bb9\uff1f<\/strong><br \/>\u5728Jupyter Notebook\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528<code>IPython.display<\/code>\u6a21\u5757\u4e2d\u7684<code>clear_output<\/code>\u51fd\u6570\u6765\u6e05\u9664\u8f93\u51fa\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from IPython.display import clear_output\n\nclear_output(wait=True)\n<\/code><\/pre>\n<p>\u4f7f\u7528<code>wait=True<\/code>\u53c2\u6570\u53ef\u4ee5\u5728\u65b0\u7684\u8f93\u51fa\u751f\u6210\u65f6\u907f\u514d\u95ea\u70c1\u73b0\u8c61\uff0c\u4f7f\u5f97\u7528\u6237\u4f53\u9a8c\u66f4\u52a0\u6d41\u7545\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6e05\u9664\u8f93\u51fa\u5185\u5bb9\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u7279\u5b9a\u5e93\u7684\u51fd\u6570\u3001\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u6216\u91cd\u5b9a\u5411\u8f93\u51fa\u6d41\u6765\u5b9e\u73b0\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u63a7 [&hellip;]","protected":false},"author":3,"featured_media":965972,"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\/965964"}],"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=965964"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/965964\/revisions"}],"predecessor-version":[{"id":965974,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/965964\/revisions\/965974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/965972"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=965964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=965964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=965964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}