{"id":1113844,"date":"2025-01-08T17:51:44","date_gmt":"2025-01-08T09:51:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1113844.html"},"modified":"2025-01-08T17:51:46","modified_gmt":"2025-01-08T09:51:46","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e9%bc%a0%e6%a0%87%e4%b8%80%e7%9b%b4%e6%8c%89%e4%b8%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1113844.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u9f20\u6807\u4e00\u76f4\u6309\u4e0b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075300\/4aef3355-fd02-495d-a387-141b428096f7.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u9f20\u6807\u4e00\u76f4\u6309\u4e0b\" \/><\/p>\n<p><p> <strong>Python\u5224\u65ad\u9f20\u6807\u4e00\u76f4\u6309\u4e0b<\/strong>\u7684\u95ee\u9898\u53ef\u4ee5\u901a\u8fc7\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6\u5e76\u8bb0\u5f55\u5176\u72b6\u6001\u6765\u89e3\u51b3\u3002<strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982<code>pynput<\/code>\u6765\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6\u3001\u8bb0\u5f55\u9f20\u6807\u6309\u4e0b\u72b6\u6001\u3001\u7ed3\u5408\u4e8b\u4ef6\u5904\u7406\u5668\u548c\u56de\u8c03\u51fd\u6570\u6765\u5b9e\u65f6\u76d1\u63a7<\/strong>\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4ee3\u7801\u793a\u4f8b\uff0c\u5e2e\u52a9\u4f60\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528<code>pynput<\/code>\u5e93\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6<\/h2>\n<\/p>\n<p><p><code>pynput<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u76d1\u542c\u548c\u63a7\u5236\u9f20\u6807\u548c\u952e\u76d8\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u6355\u6349\u9f20\u6807\u7684\u6309\u4e0b\u548c\u91ca\u653e\u4e8b\u4ef6\uff0c\u5e76\u8bb0\u5f55\u9f20\u6807\u5f53\u524d\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><h2>1\u3001\u5b89\u88c5<code>pynput<\/code>\u5e93<\/h2>\n<\/p>\n<p><p>\u9996\u5148\u9700\u8981\u5b89\u88c5<code>pynput<\/code>\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code>pip install pynput<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>2\u3001\u7f16\u5199\u76d1\u542c\u4ee3\u7801<\/h2>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u6765\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6\uff0c\u5e76\u8bb0\u5f55\u9f20\u6807\u662f\u5426\u4e00\u76f4\u6309\u4e0b\u3002\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pynput import mouse<\/p>\n<p>mouse_pressed = False<\/p>\n<p>def on_click(x, y, button, pressed):<\/p>\n<p>    global mouse_pressed<\/p>\n<p>    if pressed:<\/p>\n<p>        mouse_pressed = True<\/p>\n<p>        print(&quot;Mouse button pressed.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        mouse_pressed = False<\/p>\n<p>        print(&quot;Mouse button released.&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u76d1\u542c\u5668<\/strong><\/h2>\n<p>listener = mouse.Listener(on_click=on_click)<\/p>\n<p>listener.start()<\/p>\n<h2><strong>\u4e3b\u7a0b\u5e8f\u5faa\u73af<\/strong><\/h2>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        if mouse_pressed:<\/p>\n<p>            print(&quot;Mouse is being held down.&quot;)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    listener.stop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5168\u5c40\u53d8\u91cf<code>mouse_pressed<\/code>\u6765\u8bb0\u5f55\u9f20\u6807\u662f\u5426\u6309\u4e0b\uff0c\u5e76\u4f7f\u7528<code>pynput.mouse.Listener<\/code>\u6765\u76d1\u542c\u9f20\u6807\u70b9\u51fb\u4e8b\u4ef6\u3002\u901a\u8fc7<code>on_click<\/code>\u56de\u8c03\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u9f20\u6807\u6309\u4e0b\u548c\u91ca\u653e\u65f6\u66f4\u65b0<code>mouse_pressed<\/code>\u7684\u72b6\u6001\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u6269\u5c55\u529f\u80fd<\/h2>\n<\/p>\n<p><h2>1\u3001\u8bb0\u5f55\u9f20\u6807\u6309\u4e0b\u6301\u7eed\u65f6\u95f4<\/h2>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u8fd8\u9700\u8981\u8bb0\u5f55\u9f20\u6807\u6309\u4e0b\u7684\u6301\u7eed\u65f6\u95f4\u3002\u53ef\u4ee5\u5728\u4e0a\u9762\u7684\u57fa\u7840\u4e0a\u8fdb\u884c\u6269\u5c55\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>from pynput import mouse<\/p>\n<p>mouse_pressed = False<\/p>\n<p>press_time = 0<\/p>\n<p>def on_click(x, y, button, pressed):<\/p>\n<p>    global mouse_pressed, press_time<\/p>\n<p>    if pressed:<\/p>\n<p>        mouse_pressed = True<\/p>\n<p>        press_time = time.time()<\/p>\n<p>        print(&quot;Mouse button pressed.&quot;)<\/p>\n<p>    else:<\/p>\n<p>        mouse_pressed = False<\/p>\n<p>        duration = time.time() - press_time<\/p>\n<p>        print(f&quot;Mouse button released. Duration: {duration:.2f} seconds.&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u76d1\u542c\u5668<\/strong><\/h2>\n<p>listener = mouse.Listener(on_click=on_click)<\/p>\n<p>listener.start()<\/p>\n<h2><strong>\u4e3b\u7a0b\u5e8f\u5faa\u73af<\/strong><\/h2>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        if mouse_pressed:<\/p>\n<p>            print(&quot;Mouse is being held down.&quot;)<\/p>\n<p>        time.sleep(0.1)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    listener.stop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u6269\u5c55\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u589e\u52a0\u4e86\u4e00\u4e2a<code>press_time<\/code>\u53d8\u91cf\u6765\u8bb0\u5f55\u9f20\u6807\u6309\u4e0b\u7684\u65f6\u95f4\uff0c\u5e76\u5728\u9f20\u6807\u91ca\u653e\u65f6\u8ba1\u7b97\u6309\u4e0b\u7684\u6301\u7eed\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u5904\u7406\u591a\u4e2a\u9f20\u6807\u6309\u952e<\/h2>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5904\u7406\u591a\u4e2a\u9f20\u6807\u6309\u952e\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u5f15\u5165\u66f4\u591a\u7684\u903b\u8f91\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pynput import mouse<\/p>\n<p>mouse_pressed = {<\/p>\n<p>    mouse.Button.left: False,<\/p>\n<p>    mouse.Button.right: False,<\/p>\n<p>    mouse.Button.middle: False<\/p>\n<p>}<\/p>\n<p>def on_click(x, y, button, pressed):<\/p>\n<p>    if button in mouse_pressed:<\/p>\n<p>        mouse_pressed[button] = pressed<\/p>\n<p>        if pressed:<\/p>\n<p>            print(f&quot;{button} button pressed.&quot;)<\/p>\n<p>        else:<\/p>\n<p>            print(f&quot;{button} button released.&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u76d1\u542c\u5668<\/strong><\/h2>\n<p>listener = mouse.Listener(on_click=on_click)<\/p>\n<p>listener.start()<\/p>\n<h2><strong>\u4e3b\u7a0b\u5e8f\u5faa\u73af<\/strong><\/h2>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        if any(mouse_pressed.values()):<\/p>\n<p>            print(&quot;One or more mouse buttons are being held down.&quot;)<\/p>\n<p>        time.sleep(0.1)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    listener.stop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u5b57\u5178<code>mouse_pressed<\/code>\u6765\u8bb0\u5f55\u4e0d\u540c\u9f20\u6807\u6309\u952e\u7684\u72b6\u6001\uff0c\u901a\u8fc7<code>on_click<\/code>\u56de\u8c03\u51fd\u6570\u6765\u66f4\u65b0\u8fd9\u4e9b\u72b6\u6001\uff0c\u5e76\u5728\u4e3b\u5faa\u73af\u4e2d\u68c0\u67e5\u662f\u5426\u6709\u4efb\u610f\u4e00\u4e2a\u6309\u952e\u88ab\u6309\u4e0b\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h2>\n<\/p>\n<p><h2>1\u3001\u6e38\u620f\u5f00\u53d1<\/h2>\n<\/p>\n<p><p>\u5728\u6e38\u620f\u5f00\u53d1\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u6d4b\u73a9\u5bb6\u662f\u5426\u4e00\u76f4\u6309\u4f4f\u67d0\u4e2a\u9f20\u6807\u6309\u952e\uff0c\u4f8b\u5982\u5728\u5c04\u51fb\u6e38\u620f\u4e2d\u68c0\u6d4b\u73a9\u5bb6\u662f\u5426\u957f\u6309\u9f20\u6807\u5de6\u952e\u8fdb\u884c\u8fde\u7eed\u5c04\u51fb\u3002\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u5b9e\u65f6\u76d1\u63a7\u9f20\u6807\u6309\u4e0b\u72b6\u6001\uff0c\u5e76\u89e6\u53d1\u76f8\u5e94\u7684\u6e38\u620f\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h2>2\u3001\u56fe\u5f62\u7f16\u8f91\u8f6f\u4ef6<\/h2>\n<\/p>\n<p><p>\u5728\u56fe\u5f62\u7f16\u8f91\u8f6f\u4ef6\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u68c0\u6d4b\u7528\u6237\u662f\u5426\u4e00\u76f4\u6309\u4f4f\u9f20\u6807\u8fdb\u884c\u62d6\u52a8\u64cd\u4f5c\uff0c\u4f8b\u5982\u7ed8\u5236\u8fde\u7eed\u7684\u7ebf\u6761\u6216\u8c03\u6574\u56fe\u5f62\u5927\u5c0f\u3002\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u76d1\u63a7\u9f20\u6807\u6309\u4e0b\u72b6\u6001\uff0c\u5e76\u5728\u6309\u4f4f\u671f\u95f4\u8fdb\u884c\u76f8\u5e94\u7684\u7ed8\u56fe\u6216\u8c03\u6574\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><h2>3\u3001\u81ea\u52a8\u5316\u6d4b\u8bd5<\/h2>\n<\/p>\n<p><p>\u5728\u81ea\u52a8\u5316\u6d4b\u8bd5\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u6a21\u62df\u7528\u6237\u7684\u9f20\u6807\u64cd\u4f5c\uff0c\u68c0\u6d4b\u67d0\u4e9b\u529f\u80fd\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u76d1\u63a7\u9f20\u6807\u6309\u4e0b\u72b6\u6001\uff0c\u5e76\u5728\u81ea\u52a8\u5316\u811a\u672c\u4e2d\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\uff0c\u9a8c\u8bc1\u8f6f\u4ef6\u884c\u4e3a\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<\/p>\n<\/p>\n<p><h2>\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528<code>pynput<\/code>\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5728Python\u4e2d\u5b9e\u73b0\u9f20\u6807\u4e00\u76f4\u6309\u4e0b\u7684\u68c0\u6d4b\u529f\u80fd\u3002\u65e0\u8bba\u662f\u5728\u6e38\u620f\u5f00\u53d1\u3001\u56fe\u5f62\u7f16\u8f91\u8f6f\u4ef6\u8fd8\u662f\u81ea\u52a8\u5316\u6d4b\u8bd5\u4e2d\uff0c\u8fd9\u9879\u6280\u672f\u90fd\u80fd\u5e26\u6765\u5f88\u5927\u7684\u5e2e\u52a9\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u80fd\u591f\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u5e94\u7528\u8fd9\u4e9b\u6280\u672f\uff0c\u5b9e\u73b0\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u6d4b\u9f20\u6807\u7684\u6309\u4e0b\u72b6\u6001\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pynput<\/code>\u5e93\u6765\u68c0\u6d4b\u9f20\u6807\u7684\u6309\u4e0b\u72b6\u6001\u3002\u901a\u8fc7\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u5b9e\u65f6\u83b7\u53d6\u9f20\u6807\u6309\u94ae\u7684\u72b6\u6001\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u76d1\u542c\u5668\uff0c\u6355\u83b7<code>on_click<\/code>\u4e8b\u4ef6\uff0c\u5e76\u8bb0\u5f55\u9f20\u6807\u662f\u5426\u88ab\u6309\u4e0b\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">from pynput import mouse\n\nis_pressed = False\n\ndef on_click(x, y, button, pressed):\n    global is_pressed\n    is_pressed = pressed\n    if pressed:\n        print(f&#39;{button} pressed at ({x}, {y})&#39;)\n    else:\n        print(f&#39;{button} released at ({x}, {y})&#39;)\n\nwith mouse.Listener(on_click=on_click) as listener:\n    listener.join()\n<\/code><\/pre>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u4f1a\u8f93\u51fa\u9f20\u6807\u6309\u4e0b\u548c\u91ca\u653e\u7684\u4e8b\u4ef6\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u6301\u7eed\u76d1\u542c\u9f20\u6807\u72b6\u6001\u7684\u5e94\u7528\uff1f<\/strong><br \/>\u53ef\u4ee5\u5229\u7528<code>pynput<\/code>\u5e93\u521b\u5efa\u4e00\u4e2a\u6301\u7eed\u76d1\u542c\u9f20\u6807\u72b6\u6001\u7684\u5e94\u7528\u3002\u901a\u8fc7\u8bbe\u7f6e\u4e00\u4e2a\u5faa\u73af\u5e76\u5728\u6bcf\u6b21\u8fed\u4ee3\u4e2d\u68c0\u67e5\u9f20\u6807\u7684\u72b6\u6001\uff0c\u53ef\u4ee5\u5b9e\u73b0\u5b9e\u65f6\u76d1\u63a7\u3002\u7ed3\u5408\u7ebf\u7a0b\u548c\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5e94\u7528\u7684\u54cd\u5e94\u901f\u5ea6\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u4e00\u4e2a\u7ebf\u7a0b\u4e2d\u8fd0\u884c\u9f20\u6807\u76d1\u542c\u5668\uff0c\u5728\u4e3b\u7ebf\u7a0b\u4e2d\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u5982\u4f55\u5224\u65ad\u9f20\u6807\u957f\u6309\u7684\u65f6\u95f4\uff1f<\/strong><br \/>\u8981\u5224\u65ad\u9f20\u6807\u662f\u5426\u957f\u6309\uff0c\u53ef\u4ee5\u7ed3\u5408\u65f6\u95f4\u6233\u548c\u9f20\u6807\u4e8b\u4ef6\u6765\u5b9e\u73b0\u3002\u8bb0\u5f55\u9f20\u6807\u6309\u4e0b\u7684\u65f6\u95f4\u70b9\uff0c\u5982\u679c\u5728\u4e00\u5b9a\u65f6\u95f4\u5185\u9f20\u6807\u4ecd\u7136\u5904\u4e8e\u6309\u4e0b\u72b6\u6001\uff0c\u5219\u8ba4\u4e3a\u662f\u957f\u6309\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\uff1a<\/p>\n<pre><code class=\"language-python\">import time\nfrom pynput import mouse\n\npress_time = None\n\ndef on_click(x, y, button, pressed):\n    global press_time\n    if pressed:\n        press_time = time.time()\n    else:\n        if press_time:\n            duration = time.time() - press_time\n            if duration &gt; 1:  # \u5224\u65ad\u662f\u5426\u957f\u6309\u8d85\u8fc71\u79d2\n                print(&quot;\u957f\u6309\u4e86\u9f20\u6807&quot;)\n            press_time = None\n\nwith mouse.Listener(on_click=on_click) as listener:\n    listener.join()\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u8bbe\u7f6e\u957f\u6309\u7684\u65f6\u95f4\u9608\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5224\u65ad\u9f20\u6807\u4e00\u76f4\u6309\u4e0b\u7684\u95ee\u9898\u53ef\u4ee5\u901a\u8fc7\u76d1\u542c\u9f20\u6807\u4e8b\u4ef6\u5e76\u8bb0\u5f55\u5176\u72b6\u6001\u6765\u89e3\u51b3\u3002\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982pynput\u6765\u76d1\u542c\u9f20\u6807 [&hellip;]","protected":false},"author":3,"featured_media":1113848,"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\/1113844"}],"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=1113844"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1113844\/revisions"}],"predecessor-version":[{"id":1113850,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1113844\/revisions\/1113850"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1113848"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1113844"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1113844"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1113844"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}