{"id":1064102,"date":"2024-12-31T16:06:10","date_gmt":"2024-12-31T08:06:10","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1064102.html"},"modified":"2024-12-31T16:06:12","modified_gmt":"2024-12-31T08:06:12","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%81%9a%e5%87%ba%e8%bf%9b%e5%ba%a6%e6%9d%a1","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1064102.html","title":{"rendered":"\u5982\u4f55\u7528python\u505a\u51fa\u8fdb\u5ea6\u6761"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/b857121d-5493-45ff-9f10-e4e1ef2a731c.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u505a\u51fa\u8fdb\u5ea6\u6761\" \/><\/p>\n<p><p> <strong>\u7528Python\u505a\u51fa\u8fdb\u5ea6\u6761\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u53ef\u4ee5\u4f7f\u7528\u201ctqdm\u201d\u5e93\u3001\u624b\u52a8\u521b\u5efa\u8fdb\u5ea6\u6761\u3001\u4f7f\u7528\u201cprogressbar\u201d\u5e93\u3001\u4f7f\u7528\u201crich\u201d\u5e93\u3002\u8fd9\u91cc\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u201ctqdm\u201d\u5e93\u7684\u65b9\u6cd5\uff0ctqdm \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u548c\u7b80\u4fbf\u7684\u5e93\uff0c\u4e0d\u9700\u8981\u590d\u6742\u7684\u8bbe\u7f6e\uff0c\u53ea\u9700\u51e0\u884c\u4ee3\u7801\u5c31\u53ef\u4ee5\u5b9e\u73b0\u8fdb\u5ea6\u6761\u7684\u663e\u793a\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>tqdm\u5e93\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>tqdm \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u8fdb\u5ea6\u6761\u5e93\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u663e\u793a\u8fdb\u5ea6\u6761\u3002\u5b89\u88c5 tqdm \u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4f7f\u7528 pip \u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install tqdm<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 tqdm \u5e93\u6765\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u8fdb\u5ea6\u6761\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tqdm import tqdm<\/p>\n<p>import time<\/p>\n<p>for i in tqdm(range(100)):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0ctqdm \u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff08\u5982 range(100)\uff09\uff0c\u5e76\u5728\u6bcf\u6b21\u8fed\u4ee3\u65f6\u66f4\u65b0\u8fdb\u5ea6\u6761\u3002\u6211\u4eec\u8fd8\u4f7f\u7528\u4e86 time.sleep(0.1) \u6765\u6a21\u62df\u4e00\u4e2a\u8017\u65f6\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001tqdm\u7684\u9ad8\u7ea7\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u8fdb\u5ea6\u6761\uff0ctqdm \u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u4f8b\u5982\u81ea\u5b9a\u4e49\u63cf\u8ff0\u3001\u8fdb\u5ea6\u6761\u683c\u5f0f\u3001\u591a\u7ebf\u7a0b\/\u591a\u8fdb\u7a0b\u652f\u6301\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\u81ea\u5b9a\u4e49\u63cf\u8ff0<\/li>\n<\/ol>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7 <code>desc<\/code> \u53c2\u6570\u6765\u6dfb\u52a0\u81ea\u5b9a\u4e49\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tqdm import tqdm<\/p>\n<p>import time<\/p>\n<p>for i in tqdm(range(100), desc=&quot;Processing&quot;):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c\u8fdb\u5ea6\u6761\u524d\u9762\u4f1a\u663e\u793a &quot;Processing&quot; \u63cf\u8ff0\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u8fdb\u5ea6\u6761\u683c\u5f0f<\/li>\n<\/ol>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7 <code>bar_format<\/code> \u53c2\u6570\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761\u7684\u663e\u793a\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tqdm import tqdm<\/p>\n<p>import time<\/p>\n<p>for i in tqdm(range(100), bar_format=&#39;{l_bar}{bar}| {n_fmt}\/{total_fmt}&#39;):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>bar_format<\/code> \u53c2\u6570\u5141\u8bb8\u4f60\u4f7f\u7528\u5360\u4f4d\u7b26\u6765\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761\u7684\u663e\u793a\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u591a\u7ebf\u7a0b\/\u591a\u8fdb\u7a0b\u652f\u6301<\/li>\n<\/ol>\n<p><p>\u5728\u591a\u7ebf\u7a0b\u6216\u591a\u8fdb\u7a0b\u73af\u5883\u4e2d\u4f7f\u7528 tqdm \u4e5f\u662f\u975e\u5e38\u7b80\u5355\u7684\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>tqdm<\/code> \u6a21\u5757\u63d0\u4f9b\u7684 <code>tqdm_thread_map<\/code> \u548c <code>tqdm_process_map<\/code> \u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from tqdm.contrib.concurrent import thread_map<\/p>\n<p>import time<\/p>\n<p>def process_item(item):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p>    return item<\/p>\n<p>items = range(100)<\/p>\n<p>results = thread_map(process_item, items, max_workers=4)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>thread_map<\/code> \u51fd\u6570\u4f1a\u4e3a\u6bcf\u4e2a\u9879\u76ee\u521b\u5efa\u4e00\u4e2a\u7ebf\u7a0b\uff0c\u5e76\u663e\u793a\u8fdb\u5ea6\u6761\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u624b\u52a8\u521b\u5efa\u8fdb\u5ea6\u6761<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u4e5f\u53ef\u4ee5\u624b\u52a8\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u8fdb\u5ea6\u6761\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>import time<\/p>\n<p>def print_progress_bar(iteration, total, prefix=&#39;&#39;, suffix=&#39;&#39;, decimals=1, length=50, fill=&#39;\u2588&#39;):<\/p>\n<p>    percent = f&quot;{100 * (iteration \/ float(total)):.{decimals}f}&quot;<\/p>\n<p>    filled_length = int(length * iteration \/\/ total)<\/p>\n<p>    bar = fill * filled_length + &#39;-&#39; * (length - filled_length)<\/p>\n<p>    sys.stdout.write(f&#39;\\r{prefix} |{bar}| {percent}% {suffix}&#39;)<\/p>\n<p>    sys.stdout.flush()<\/p>\n<p>total = 100<\/p>\n<p>for i in range(total):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p>    print_progress_bar(i + 1, total, prefix=&#39;Progress&#39;, suffix=&#39;Complete&#39;, length=50)<\/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>print_progress_bar<\/code> \u51fd\u6570\u6765\u6253\u5370\u8fdb\u5ea6\u6761\u3002\u7136\u540e\uff0c\u6211\u4eec\u5728\u4e00\u4e2a\u5faa\u73af\u4e2d\u8c03\u7528\u8be5\u51fd\u6570\u6765\u66f4\u65b0\u8fdb\u5ea6\u6761\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u4f7f\u7528 progressbar \u5e93<\/strong><\/p>\n<\/p>\n<p><p>progressbar \u662f\u53e6\u4e00\u4e2a\u6d41\u884c\u7684\u8fdb\u5ea6\u6761\u5e93\u3002\u5b89\u88c5 progressbar \u4e5f\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install progressbar2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528 progressbar \u5e93\u521b\u5efa\u4e00\u4e2a\u8fdb\u5ea6\u6761\u975e\u5e38\u7b80\u5355\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import progressbar<\/p>\n<p>import time<\/p>\n<p>bar = progressbar.ProgressBar(max_value=100)<\/p>\n<p>for i in range(100):<\/p>\n<p>    time.sleep(0.1)<\/p>\n<p>    bar.update(i + 1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a ProgressBar \u5bf9\u8c61\uff0c\u5e76\u5728\u6bcf\u6b21\u8fed\u4ee3\u65f6\u8c03\u7528 <code>update<\/code> \u65b9\u6cd5\u6765\u66f4\u65b0\u8fdb\u5ea6\u6761\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u4f7f\u7528 rich \u5e93<\/strong><\/p>\n<\/p>\n<p><p>rich \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u7f8e\u89c2\u7684\u8fdb\u5ea6\u6761\u3001\u65e5\u5fd7\u3001\u8868\u683c\u7b49\u3002\u5b89\u88c5 rich \u4e5f\u975e\u5e38\u7b80\u5355\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install rich<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528 rich \u5e93\u521b\u5efa\u4e00\u4e2a\u8fdb\u5ea6\u6761\u975e\u5e38\u7b80\u5355\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from rich.progress import Progress<\/p>\n<p>import time<\/p>\n<p>with Progress() as progress:<\/p>\n<p>    task = progress.add_task(&quot;Processing&quot;, total=100)<\/p>\n<p>    for i in range(100):<\/p>\n<p>        time.sleep(0.1)<\/p>\n<p>        progress.update(task, advance=1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a Progress \u5bf9\u8c61\uff0c\u5e76\u4f7f\u7528 <code>add_task<\/code> \u65b9\u6cd5\u6dfb\u52a0\u4e00\u4e2a\u4efb\u52a1\u3002\u7136\u540e\uff0c\u6211\u4eec\u5728\u6bcf\u6b21\u8fed\u4ee3\u65f6\u8c03\u7528 <code>update<\/code> \u65b9\u6cd5\u6765\u66f4\u65b0\u8fdb\u5ea6\u6761\u3002<\/p>\n<\/p>\n<p><p><strong>\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ecb\u7ecd\u4e86\u56db\u79cd\u5728 Python \u4e2d\u521b\u5efa\u8fdb\u5ea6\u6761\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528 tqdm \u5e93\u3001\u624b\u52a8\u521b\u5efa\u8fdb\u5ea6\u6761\u3001\u4f7f\u7528 progressbar \u5e93\u3001\u4f7f\u7528 rich \u5e93\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>tqdm \u5e93<\/strong> \u662f\u6700\u63a8\u8350\u7684\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u6613\u7528\u4e14\u529f\u80fd\u5f3a\u5927\u3002\u5bf9\u4e8e\u4e00\u4e9b\u7b80\u5355\u7684\u4efb\u52a1\uff0c\u624b\u52a8\u521b\u5efa\u8fdb\u5ea6\u6761\u4e5f\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u5982\u679c\u4f60\u9700\u8981\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\u548c\u7f8e\u89c2\u6548\u679c\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 <strong>progressbar<\/strong> \u6216 <strong>rich \u5e93<\/strong>\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u4efb\u52a1\u4e2d\u63d0\u4f9b\u66f4\u597d\u7684\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u884c\u8fdb\u5ea6\u6761\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u57fa\u672c\u7684\u6253\u5370\u529f\u80fd\u6765\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u547d\u4ee4\u884c\u8fdb\u5ea6\u6761\u3002\u901a\u8fc7\u7ed3\u5408\u5faa\u73af\u548c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\uff0c\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u52a8\u6001\u66f4\u65b0\u7684\u8fdb\u5ea6\u6761\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sys.stdout.write<\/code>\u548c<code>sys.stdout.flush<\/code>\u6765\u5b9e\u73b0\u5b9e\u65f6\u66f4\u65b0\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import sys\nimport time\n\ndef progress_bar(iteration, total, length=40):\n    percent = (iteration \/ total)\n    arrow = &#39;\u2588&#39; * int(length * percent)\n    spaces = &#39; &#39; * (length - len(arrow))\n    sys.stdout.write(f&#39;\\r|{arrow}{spaces}| {percent:.2%}&#39;)\n    sys.stdout.flush()\n\nfor i in range(101):\n    time.sleep(0.1)  # \u6a21\u62df\u5de5\u4f5c\u8fdb\u7a0b\n    progress_bar(i, 100)\n<\/code><\/pre>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u73b0\u6210\u7684\u5e93\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u8fdb\u5ea6\u6761\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u4e2d\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u60a8\u8f7b\u677e\u5b9e\u73b0\u8fdb\u5ea6\u6761\u529f\u80fd\u3002\u4f8b\u5982\uff0c<code>tqdm<\/code>\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5e93\uff0c\u53ef\u4ee5\u5728\u5faa\u73af\u4e2d\u6dfb\u52a0\u8fdb\u5ea6\u6761\u3002\u53ea\u9700\u5b89\u88c5\u8be5\u5e93\u5e76\u5c06\u5176\u4e0e\u8fed\u4ee3\u5bf9\u8c61\u7ed3\u5408\u4f7f\u7528\uff0c\u5c31\u53ef\u4ee5\u83b7\u5f97\u4e00\u4e2a\u4f18\u96c5\u7684\u8fdb\u5ea6\u6761\u3002\u5b89\u88c5\u65b9\u6cd5\u4e3a\uff1a<code>pip install tqdm<\/code>\u3002\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">from tqdm import tqdm\nimport time\n\nfor i in tqdm(range(100)):\n    time.sleep(0.1)  # \u6a21\u62df\u5de5\u4f5c\u8fdb\u7a0b\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5b9e\u73b0\u8fdb\u5ea6\u6761\uff1f<\/strong><br \/>\u5728Python\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5982<code>tkinter<\/code>\u6216<code>PyQt<\/code>\u8fd9\u6837\u7684\u5e93\u6765\u521b\u5efa\u8fdb\u5ea6\u6761\u3002\u5728<code>tkinter<\/code>\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>ttk.Progressbar<\/code>\u6765\u5b9e\u73b0\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import tkinter as tk\nfrom tkinter import ttk\nimport time\n\ndef start_progress():\n    for i in range(101):\n        time.sleep(0.1)  # \u6a21\u62df\u5de5\u4f5c\u8fdb\u7a0b\n        progress_var.set(i)\n        root.update_idletasks()\n\nroot = tk.Tk()\nroot.title(&quot;\u8fdb\u5ea6\u6761\u793a\u4f8b&quot;)\n\nprogress_var = tk.DoubleVar()\nprogress = ttk.Progressbar(root, maximum=100, variable=progress_var)\nprogress.pack(pady=20)\n\nstart_button = tk.Button(root, text=&quot;\u5f00\u59cb&quot;, command=start_progress)\nstart_button.pack(pady=10)\n\nroot.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()\n<\/code><\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u8fdb\u5ea6\u6761\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u7528Python\u505a\u51fa\u8fdb\u5ea6\u6761\u7684\u65b9\u6cd5\u6709\u5f88\u591a\u79cd\uff0c\u53ef\u4ee5\u4f7f\u7528\u201ctqdm\u201d\u5e93\u3001\u624b\u52a8\u521b\u5efa\u8fdb\u5ea6\u6761\u3001\u4f7f\u7528\u201cprogressbar\u201d [&hellip;]","protected":false},"author":3,"featured_media":1064110,"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\/1064102"}],"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=1064102"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1064102\/revisions"}],"predecessor-version":[{"id":1064112,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1064102\/revisions\/1064112"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1064110"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1064102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1064102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1064102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}