{"id":953810,"date":"2024-12-27T01:48:18","date_gmt":"2024-12-26T17:48:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/953810.html"},"modified":"2024-12-27T01:48:20","modified_gmt":"2024-12-26T17:48:20","slug":"python%e5%a6%82%e4%bd%95%e6%b8%85%e9%99%a4%e5%b1%8f%e5%b9%95%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/953810.html","title":{"rendered":"python\u5982\u4f55\u6e05\u9664\u5c4f\u5e55\u4ee3\u7801"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094205\/7bd9f66a-ab61-435f-b6ea-41bb22007a43.webp\" alt=\"python\u5982\u4f55\u6e05\u9664\u5c4f\u5e55\u4ee3\u7801\" \/><\/p>\n<p><p> \u5728Python\u4e2d\u6e05\u9664\u5c4f\u5e55\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u5305\u62ec<strong>\u4f7f\u7528os.system\u51fd\u6570\u3001\u5229\u7528\u7279\u5b9a\u5e93\u5982curses\u3001\u4ee5\u53ca\u76f4\u63a5\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u4f7f\u7528os.system\u51fd\u6570\u662f\u6700\u4e3a\u7b80\u5355\u4e14\u517c\u5bb9\u6027\u8f83\u597d\u7684\u65b9\u6cd5<\/strong>\u3002\u4ee5\u4e0b\u662f\u5bf9\u8fd9\u4e00\u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1aos.system\u51fd\u6570\u53ef\u4ee5\u5728Python\u4e2d\u6267\u884c\u7ec8\u7aef\u547d\u4ee4\uff0c\u56e0\u6b64\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u7cfb\u7edf\u7684\u6e05\u5c4f\u547d\u4ee4\u5b9e\u73b0\u5c4f\u5e55\u6e05\u9664\u3002\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u8fd9\u4e2a\u547d\u4ee4\u662f&#39;cls&#39;\uff0c\u800c\u5728Unix\u6216Linux\u7cfb\u7edf\u4e2d\u662f&#39;clear&#39;\u3002\u4f7f\u7528\u8be5\u65b9\u6cd5\u9700\u8981\u5148\u5bfc\u5165os\u6a21\u5757\uff0c\u7136\u540e\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u9009\u62e9\u5408\u9002\u7684\u547d\u4ee4\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528os.system\u51fd\u6570<\/p>\n<\/p>\n<p><p>os.system\u51fd\u6570\u662fPython\u4e2d\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u529f\u80fd\uff0c\u80fd\u591f\u5728Python\u811a\u672c\u4e2d\u6267\u884c\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u3002\u901a\u8fc7\u8c03\u7528\u6b64\u51fd\u6570\uff0c\u53ef\u4ee5\u6e05\u9664\u7ec8\u7aef\u5c4f\u5e55\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5bfc\u5165os\u6a21\u5757<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5bfc\u5165os\u6a21\u5757\uff0c\u56e0\u4e3aos.system\u51fd\u6570\u662fos\u6a21\u5757\u7684\u4e00\u90e8\u5206\u3002\u5bfc\u5165os\u6a21\u5757\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6267\u884c\u6e05\u5c4f\u547d\u4ee4<\/strong><\/li>\n<\/ol>\n<p><p>\u7136\u540e\uff0c\u4f7f\u7528os.system\u6267\u884c\u6e05\u5c4f\u547d\u4ee4\u3002\u5728Windows\u4e2d\u4f7f\u7528&#39;cls&#39;\u547d\u4ee4\uff0c\u5728Linux\u548cmacOS\u4e2d\u4f7f\u7528&#39;clear&#39;\u547d\u4ee4\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def clear_screen():<\/p>\n<p>    # \u5224\u65ad\u64cd\u4f5c\u7cfb\u7edf<\/p>\n<p>    if os.name == &#39;nt&#39;:  # \u5982\u679c\u662fWindows<\/p>\n<p>        os.system(&#39;cls&#39;)<\/p>\n<p>    else:  # \u5982\u679c\u662fLinux\u6216macOS<\/p>\n<p>        os.system(&#39;clear&#39;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>clear_screen()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0cos.name\u7528\u4e8e\u5224\u65ad\u5f53\u524d\u7684\u64cd\u4f5c\u7cfb\u7edf\u7c7b\u578b\u3002&#39;nt&#39;\u8868\u793aWindows\uff0c\u5176\u4ed6\u7cfb\u7edf\u5219\u4f7f\u7528&#39;clear&#39;\u547d\u4ee4\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f18\u7f3a\u70b9<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528os.system\u51fd\u6570\u7684\u4f18\u70b9\u662f\u7b80\u5355\u6613\u7528\uff0c\u4e14\u80fd\u591f\u5f88\u597d\u5730\u517c\u5bb9\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u6cd5\u4f9d\u8d56\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u7684\u547d\u4ee4\u63a5\u53e3\uff0c\u56e0\u6b64\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff08\u4f8b\u5982\u6ca1\u6709\u547d\u4ee4\u884c\u5de5\u5177\u7684\u5d4c\u5165\u5f0f\u7cfb\u7edf\uff09\uff0c\u53ef\u80fd\u65e0\u6cd5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5229\u7528\u7279\u5b9a\u5e93\uff08\u5982curses\uff09<\/p>\n<\/p>\n<p><p>curses\u662f\u4e00\u4e2a\u4e13\u95e8\u7528\u4e8e\u63a7\u5236\u7ec8\u7aef\u663e\u793a\u7684\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u66f4\u4e3a\u590d\u6742\u7684\u7ec8\u7aef\u64cd\u4f5c\u529f\u80fd\uff0c\u5305\u62ec\u6e05\u9664\u5c4f\u5e55\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u5bfc\u5165curses\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Linux\u548cmacOS\u4e2d\uff0ccurses\u901a\u5e38\u662f\u9884\u5b89\u88c5\u7684\uff1b\u5728Windows\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u66ff\u4ee3\u5e93\uff0c\u5982windows-curses\u3002\u5b89\u88c5\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install windows-curses<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165curses\u5e93\u7684\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import curses<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528curses\u6e05\u9664\u5c4f\u5e55<\/strong><\/li>\n<\/ol>\n<p><p>curses\u5e93\u901a\u8fc7\u521d\u59cb\u5316\u7ec8\u7aef\u7a97\u53e3\u5e76\u8c03\u7528\u76f8\u5e94\u7684\u6e05\u5c4f\u51fd\u6570\u6765\u5b9e\u73b0\u5c4f\u5e55\u6e05\u9664\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import curses<\/p>\n<p>def m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(stdscr):<\/p>\n<p>    # \u6e05\u9664\u5c4f\u5e55<\/p>\n<p>    stdscr.clear()<\/p>\n<p>    stdscr.refresh()<\/p>\n<p>    stdscr.getkey()<\/p>\n<h2><strong>\u542f\u52a8curses\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>curses.wrapper(main)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cstdscr\u662fcurses\u7684\u6807\u51c6\u5c4f\u5e55\u5bf9\u8c61\uff0c\u901a\u8fc7\u8c03\u7528\u5176clear\u548crefresh\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5c4f\u5e55\u7684\u6e05\u9664\u548c\u5237\u65b0\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f18\u7f3a\u70b9<\/strong><\/li>\n<\/ol>\n<p><p>curses\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u7ec8\u7aef\u64cd\u4f5c\u80fd\u529b\uff0c\u9002\u5408\u9700\u8981\u590d\u6742\u754c\u9762\u63a7\u5236\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u7136\u800c\uff0c\u5b83\u7684\u4f7f\u7528\u590d\u6742\u5ea6\u8f83\u9ad8\uff0c\u901a\u5e38\u4e0d\u9002\u5408\u4ec5\u7528\u4e8e\u7b80\u5355\u6e05\u5c4f\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217<\/p>\n<\/p>\n<p><p>ANSI\u8f6c\u4e49\u5e8f\u5217\u662f\u4e00\u79cd\u901a\u8fc7\u7279\u5b9a\u5b57\u7b26\u5e8f\u5217\u63a7\u5236\u7ec8\u7aef\u663e\u793a\u7684\u65b9\u5f0f\uff0c\u5728\u652f\u6301ANSI\u7684\u7ec8\u7aef\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u7279\u5b9a\u7684\u5e8f\u5217\u6765\u6e05\u9664\u5c4f\u5e55\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u57fa\u672c\u539f\u7406<\/strong><\/li>\n<\/ol>\n<p><p>ANSI\u8f6c\u4e49\u5e8f\u5217\u901a\u8fc7\u5b57\u7b26\u4e32\u7684\u5f62\u5f0f\u53d1\u9001\u5230\u7ec8\u7aef\uff0c\u63a7\u5236\u7ec8\u7aef\u7684\u663e\u793a\u884c\u4e3a\u3002\u6e05\u9664\u5c4f\u5e55\u7684\u8f6c\u4e49\u5e8f\u5217\u662f&#39;\\033[2J&#39;\uff0c\u5c06\u5176\u6253\u5370\u5230\u7ec8\u7aef\u5373\u53ef\u5b9e\u73b0\u6e05\u5c4f\u6548\u679c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9e\u73b0\u4ee3\u7801<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Python\u4e2d\uff0c\u901a\u8fc7print\u51fd\u6570\u8f93\u51faANSI\u8f6c\u4e49\u5e8f\u5217\u5373\u53ef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def clear_screen_ansi():<\/p>\n<p>    print(&quot;\\033[2J\\033[H&quot;)<\/p>\n<h2><strong>\u8c03\u7528\u51fd\u6570<\/strong><\/h2>\n<p>clear_screen_ansi()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u51fd\u6570\u4e2d\uff0c&#39;\\033[2J&#39;\u7528\u4e8e\u6e05\u9664\u5c4f\u5e55\uff0c&#39;\\033[H&#39;\u5c06\u5149\u6807\u79fb\u52a8\u5230\u5c4f\u5e55\u5de6\u4e0a\u89d2\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f18\u7f3a\u70b9<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217\u7684\u4f18\u70b9\u662f\u5feb\u901f\u4e14\u65e0\u9700\u989d\u5916\u7684\u6a21\u5757\u652f\u6301\uff0c\u4f46\u7f3a\u70b9\u662f\u4ec5\u5728\u652f\u6301ANSI\u7684\u7ec8\u7aef\u4e2d\u6709\u6548\uff0c\u4e14\u4e0d\u9002\u7528\u4e8eWindows\u9ed8\u8ba4\u7684\u547d\u4ee4\u63d0\u793a\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u65b9\u5f0f\u53ef\u4ee5\u7528\u4e8e\u6e05\u9664\u5c4f\u5e55\uff0c\u4f8b\u5982\u901a\u8fc7GUI\u5e93\u7684\u7279\u5b9a\u529f\u80fd\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528Tkinter<\/strong><\/li>\n<\/ol>\n<p><p>\u5728Python\u4e2d\uff0cTkinter\u662f\u4e00\u4e2a\u5e38\u7528\u7684GUI\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u56fe\u5f62\u5316\u7684\u7528\u6237\u754c\u9762\u3002\u901a\u8fc7\u63a7\u5236Tkinter\u7a97\u53e3\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u95f4\u63a5\u5b9e\u73b0\u6e05\u5c4f\u6548\u679c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528Pygame<\/strong><\/li>\n<\/ol>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u6e38\u620f\u7684Python\u5e93\uff0c\u901a\u8fc7\u63a7\u5236\u6e38\u620f\u7a97\u53e3\u7684\u6e32\u67d3\u5185\u5bb9\uff0c\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u6e05\u5c4f\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6e05\u9664\u5c4f\u5e55\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\u9700\u6c42\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528os.system\u51fd\u6570\u662f\u6700\u4f73\u9009\u62e9\uff0c\u56e0\u5176\u7b80\u5355\u3001\u76f4\u63a5\u4e14\u5177\u6709\u826f\u597d\u7684\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u3002\u5bf9\u4e8e\u6709\u7279\u6b8a\u9700\u6c42\u7684\u5e94\u7528\u7a0b\u5e8f\uff0ccurses\u5e93\u548cANSI\u8f6c\u4e49\u5e8f\u5217\u4e5f\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\u3002\u65e0\u8bba\u9009\u62e9\u4f55\u79cd\u65b9\u6cd5\uff0c\u7406\u89e3\u5176\u57fa\u672c\u539f\u7406\u548c\u9002\u7528\u8303\u56f4\u90fd\u81f3\u5173\u91cd\u8981\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\u5c4f\u5e55\uff1f<\/strong><br \/>\u5728Python\u4e2d\u6e05\u9664\u63a7\u5236\u53f0\u5c4f\u5e55\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.system(&#39;cls&#39;)<\/code>\uff0c\u800c\u5728Unix\u6216Linux\u7cfb\u7edf\u4e2d\uff0c\u4f7f\u7528<code>os.system(&#39;clear&#39;)<\/code>\u3002\u786e\u4fdd\u5728\u4ee3\u7801\u4e2d\u5bfc\u5165os\u6a21\u5757\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\nos.system(&#39;cls&#39; if os.name == &#39;nt&#39; else &#39;clear&#39;)\n<\/code><\/pre>\n<p><strong>\u6e05\u9664\u5c4f\u5e55\u7684\u4ee3\u7801\u662f\u5426\u53ef\u4ee5\u5728\u6240\u6709Python\u73af\u5883\u4e2d\u4f7f\u7528\uff1f<\/strong><br \/>\u6e05\u9664\u5c4f\u5e55\u7684\u4ee3\u7801\u5728\u5927\u591a\u6570\u6807\u51c6Python\u73af\u5883\u4e2d\u90fd\u80fd\u6b63\u5e38\u5de5\u4f5c\uff0c\u4f46\u5728\u67d0\u4e9b\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\uff0c\u5982Jupyter Notebook\u6216\u67d0\u4e9b\u5728\u7ebf\u7f16\u8bd1\u5668\uff0c\u53ef\u80fd\u65e0\u6cd5\u6e05\u9664\u5c4f\u5e55\u3002\u8fd9\u4e9b\u73af\u5883\u53ef\u80fd\u9700\u8981\u5176\u4ed6\u65b9\u6cd5\u6765\u5904\u7406\u8f93\u51fa\uff0c\u6216\u6839\u672c\u4e0d\u652f\u6301\u6e05\u9664\u5c4f\u5e55\u7684\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\u6765\u6e05\u9664\u5c4f\u5e55\uff1f<\/strong><br \/>\u521b\u5efa\u4e00\u4e2a\u6e05\u9664\u5c4f\u5e55\u7684\u51fd\u6570\u975e\u5e38\u7b80\u5355\u3002\u53ef\u4ee5\u5c06\u6e05\u9664\u5c4f\u5e55\u7684\u4ee3\u7801\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\uff0c\u4ee5\u4fbf\u4e8e\u91cd\u590d\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\n\ndef clear_screen():\n    os.system(&#39;cls&#39; if os.name == &#39;nt&#39; else &#39;clear&#39;)\n\n# \u8c03\u7528\u51fd\u6570\u6765\u6e05\u9664\u5c4f\u5e55\nclear_screen()\n<\/code><\/pre>\n<p>\u4f7f\u7528\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u9700\u8981\u6e05\u9664\u5c4f\u5e55\u65f6\u8c03\u7528\uff0c\u4fdd\u6301\u4ee3\u7801\u7684\u6574\u6d01\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u6e05\u9664\u5c4f\u5e55\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528os.system\u51fd\u6570\u3001\u5229\u7528\u7279\u5b9a\u5e93\u5982curses\u3001\u4ee5 [&hellip;]","protected":false},"author":3,"featured_media":953817,"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\/953810"}],"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=953810"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/953810\/revisions"}],"predecessor-version":[{"id":953818,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/953810\/revisions\/953818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/953817"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=953810"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=953810"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=953810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}