{"id":984059,"date":"2024-12-27T07:24:49","date_gmt":"2024-12-26T23:24:49","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/984059.html"},"modified":"2024-12-27T07:24:53","modified_gmt":"2024-12-26T23:24:53","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%82%b9%e5%87%bb%e6%89%8b%e6%9c%ba","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/984059.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u70b9\u51fb\u624b\u673a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211835\/f7c0dda4-1eab-4b8d-a85e-301ebd3562ee.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u70b9\u51fb\u624b\u673a\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u5b9e\u73b0\u70b9\u51fb\u624b\u673a\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\u3001\u8fdc\u7a0b\u63a7\u5236\u5e93\u6216\u8005\u624b\u673a\u6a21\u62df\u5668\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Appium\u3001ADB\uff08Android Debug Bridge\uff09\u548cPyAutoGUI\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<strong>Appium<\/strong> \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\uff0c\u652f\u6301\u8de8\u5e73\u53f0\u5e94\u7528\u7684\u6d4b\u8bd5\uff0c\u5305\u62ecAndroid\u548ciOS\u8bbe\u5907\u3002\u5b83\u901a\u8fc7WebDriver\u534f\u8bae\u6765\u9a71\u52a8\u79fb\u52a8\u8bbe\u5907\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u64cd\u4f5c\u3002\u4f7f\u7528Appium\u7684\u597d\u5904\u662f\u5b83\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5e76\u4e14\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u4e0e\u5176\u4ed6\u6d4b\u8bd5\u6846\u67b6\u96c6\u6210\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u4e00\u3001APPIUM\u5b9e\u73b0\u70b9\u51fb\u624b\u673a<\/p>\n<\/p>\n<p><p>Appium\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u79fb\u52a8\u5e94\u7528\u6d4b\u8bd5\u5de5\u5177\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u5b83\u5141\u8bb8\u4f60\u5728\u771f\u5b9e\u8bbe\u5907\u6216\u6a21\u62df\u5668\u4e0a\u81ea\u52a8\u5316\u6d4b\u8bd5\u79fb\u52a8\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u914d\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u4f7f\u7528Appium\uff0c\u4f60\u9996\u5148\u9700\u8981\u5b89\u88c5Appium\u670d\u52a1\u5668\u548cAppium-Python-Client\u3002\u53ef\u4ee5\u901a\u8fc7Node.js\u7684npm\u5b89\u88c5Appium\u670d\u52a1\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">npm install -g appium<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5b89\u88c5Python\u5ba2\u6237\u7aef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install Appium-Python-Client<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u4f60\u7684\u8bbe\u5907\u4e0a\u542f\u7528\u4e86\u5f00\u53d1\u8005\u9009\u9879\u548cUSB\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u5199\u6d4b\u8bd5\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u5728\u8bbe\u5907\u4e0a\u6a21\u62df\u70b9\u51fb\uff0c\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2aPython\u811a\u672c\u6765\u8fde\u63a5\u8bbe\u5907\u5e76\u6267\u884c\u64cd\u4f5c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from appium import webdriver<\/p>\n<p>desired_caps = {<\/p>\n<p>    &#39;platformName&#39;: &#39;Android&#39;,<\/p>\n<p>    &#39;platformVersion&#39;: &#39;10&#39;,<\/p>\n<p>    &#39;deviceName&#39;: &#39;Android Emulator&#39;,<\/p>\n<p>    &#39;appPackage&#39;: &#39;com.example&#39;,<\/p>\n<p>    &#39;appActivity&#39;: &#39;.M<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nActivity&#39;<\/p>\n<p>}<\/p>\n<p>driver = webdriver.Remote(&#39;http:\/\/localhost:4723\/wd\/hub&#39;, desired_caps)<\/p>\n<p>element = driver.find_element_by_id(&#39;com.example:id\/button&#39;)<\/p>\n<p>element.click()<\/p>\n<p>driver.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u811a\u672c\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u8bbe\u5907\u7684\u914d\u7f6e\u53c2\u6570\uff0c\u7136\u540e\u901a\u8fc7<code>webdriver.Remote<\/code>\u8fde\u63a5\u5230Appium\u670d\u52a1\u5668\u3002\u63a5\u7740\uff0c\u6211\u4eec\u901a\u8fc7\u5143\u7d20\u7684ID\u627e\u5230\u9700\u8981\u70b9\u51fb\u7684\u5143\u7d20\uff0c\u5e76\u8c03\u7528<code>click()<\/code>\u65b9\u6cd5\u8fdb\u884c\u70b9\u51fb\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u52bf\u4e0e\u6311\u6218<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Appium\u8fdb\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u8de8\u5e73\u53f0\u652f\u6301\u548c\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u4f46\u4e5f\u9762\u4e34\u4e00\u4e9b\u6311\u6218\uff0c\u5982\u73af\u5883\u914d\u7f6e\u590d\u6742\u3001\u6d4b\u8bd5\u811a\u672c\u7ef4\u62a4\u6210\u672c\u9ad8\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<hr>\n<p><p>\u4e8c\u3001ADB\uff08ANDROID DEBUG BRIDGE\uff09\u5b9e\u73b0\u70b9\u51fb<\/p>\n<\/p>\n<p><p>ADB\u662f\u4e00\u79cd\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u53ef\u7528\u4e8e\u76f4\u63a5\u4e0eAndroid\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u548c\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u914d\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>ADB\u901a\u5e38\u4e0eAndroid SDK\u4e00\u8d77\u63d0\u4f9b\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u8f7dAndroid Studio\u6765\u83b7\u53d6\u5b83\u3002\u5b89\u88c5\u540e\uff0c\u9700\u8981\u5c06ADB\u6240\u5728\u7684\u76ee\u5f55\u6dfb\u52a0\u5230\u7cfb\u7edf\u7684PATH\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528ADB\u6307\u4ee4\u6a21\u62df\u70b9\u51fb<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7ADB\uff0c\u4f60\u53ef\u4ee5\u53d1\u9001\u89e6\u6478\u4e8b\u4ef6\u6765\u6a21\u62df\u70b9\u51fb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u793a\u4f8b\uff0c\u5c55\u793a\u5982\u4f55\u901a\u8fc7ADB\u547d\u4ee4\u8fdb\u884c\u70b9\u51fb\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def tap_screen(x, y):<\/p>\n<p>    command = f&quot;adb shell input tap {x} {y}&quot;<\/p>\n<p>    os.system(command)<\/p>\n<p>tap_screen(100, 200)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570<code>tap_screen<\/code>\uff0c\u5b83\u63a5\u6536\u4e24\u4e2a\u53c2\u6570x\u548cy\uff0c\u8868\u793a\u70b9\u51fb\u7684\u5750\u6807\u3002\u6211\u4eec\u901a\u8fc7<code>os.system<\/code>\u51fd\u6570\u6765\u6267\u884cADB\u547d\u4ee4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u52bf\u4e0e\u5c40\u9650<\/strong><\/p>\n<\/p>\n<p><p>ADB\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u4e0d\u4f9d\u8d56\u4e8e\u7279\u5b9a\u7684\u6d4b\u8bd5\u6846\u67b6\uff0c\u53ef\u4ee5\u76f4\u63a5\u4e0e\u8bbe\u5907\u4ea4\u4e92\u3002\u4f46\u5176\u5c40\u9650\u6027\u5728\u4e8e\u53ea\u80fd\u5728Android\u8bbe\u5907\u4e0a\u4f7f\u7528\uff0c\u5e76\u4e14\u9700\u8981\u8bbe\u5907\u7684USB\u8c03\u8bd5\u6a21\u5f0f\u5f00\u542f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<hr>\n<p><p>\u4e09\u3001PYAUTOGUI\u5b9e\u73b0\u70b9\u51fb<\/p>\n<\/p>\n<p><p>PyAutoGUI\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u81ea\u52a8\u5316\u5e93\uff0c\u901a\u5e38\u7528\u4e8e\u684c\u9762\u81ea\u52a8\u5316\uff0c\u4f46\u4e5f\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u5668\u6765\u64cd\u4f5c\u624b\u673a\u5e94\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u4e0e\u914d\u7f6e<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7pip\u5b89\u88c5PyAutoGUI\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyautogui<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>PyAutoGUI\u9700\u8981\u4e0e\u624b\u673a\u6a21\u62df\u5668\u4e00\u8d77\u4f7f\u7528\uff0c\u5982Android Emulator\u6216Genymotion\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6a21\u62df\u70b9\u51fb\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528PyAutoGUI\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6a21\u62df\u9f20\u6807\u70b9\u51fb\u6765\u64cd\u4f5c\u624b\u673a\u6a21\u62df\u5668\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<p>def click_on_emulator(x, y):<\/p>\n<p>    pyautogui.click(x, y)<\/p>\n<p>click_on_emulator(100, 200)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>pyautogui.click<\/code>\u51fd\u6570\u6765\u6a21\u62df\u70b9\u51fb\u64cd\u4f5c\u3002x\u548cy\u53c2\u6570\u8868\u793a\u6a21\u62df\u5668\u7a97\u53e3\u4e2d\u7684\u5750\u6807\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u52bf\u4e0e\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>PyAutoGUI\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u7b80\u5355\u6613\u7528\uff0c\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0\u81ea\u52a8\u5316\u64cd\u4f5c\u3002\u4f46\u5176\u4e3b\u8981\u5e94\u7528\u573a\u666f\u662f\u5728\u6a21\u62df\u5668\u4e0a\u8fdb\u884c\u7b80\u5355\u7684\u70b9\u51fb\u64cd\u4f5c\uff0c\u65e0\u6cd5\u76f4\u63a5\u64cd\u4f5c\u771f\u5b9e\u8bbe\u5907\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<hr>\n<p><p>\u56db\u3001\u5176\u4ed6\u5b9e\u73b0\u65b9\u5f0f<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u5de5\u5177\u548c\u5e93\u53ef\u4ee5\u5b9e\u73b0\u7c7b\u4f3c\u529f\u80fd\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>SikuliX<\/strong><\/p>\n<\/p>\n<p><p>SikuliX\u662f\u4e00\u4e2a\u57fa\u4e8e\u56fe\u50cf\u8bc6\u522b\u7684\u81ea\u52a8\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u8bc6\u522b\u5e76\u70b9\u51fb\u5c4f\u5e55\u4e0a\u7684\u5143\u7d20\u3002\u5b83\u652f\u6301Java\u548cPython\uff0c\u4f46\u901a\u5e38\u7528\u4e8e\u684c\u9762\u5e94\u7528\u81ea\u52a8\u5316\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>uiautomator<\/strong><\/p>\n<\/p>\n<p><p>uiautomator\u662fAndroid\u63d0\u4f9b\u7684\u4e00\u4e2a\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\uff0c\u652f\u6301\u901a\u8fc7Java\u7f16\u5199\u81ea\u52a8\u5316\u6d4b\u8bd5\u811a\u672c\u3002Python\u53ef\u4ee5\u901a\u8fc7<code>uiautomator-python-wrapper<\/code>\u5e93\u6765\u4f7f\u7528\u5b83\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Robot Framework<\/strong><\/p>\n<\/p>\n<p><p>Robot Framework\u662f\u4e00\u79cd\u901a\u7528\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\uff0c\u652f\u6301\u591a\u79cd\u6269\u5c55\u5e93\uff0c\u53ef\u4ee5\u7528\u4e8e\u79fb\u52a8\u5e94\u7528\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<hr>\n<p><p>\u603b\u4e4b\uff0cPython\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u70b9\u51fb\u624b\u673a\u7684\u529f\u80fd\uff0c\u9009\u62e9\u9002\u5408\u4f60\u9879\u76ee\u9700\u6c42\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u81f3\u5173\u91cd\u8981\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u4f7f\u7528\u573a\u666f\u548c\u8bbe\u5907\u5e73\u53f0\u6765\u9009\u62e9\u5408\u9002\u7684\u5b9e\u73b0\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u6a21\u62df\u624b\u673a\u70b9\u51fb\u64cd\u4f5c\uff1f<\/strong><\/p>\n<p>\u8981\u5b9e\u73b0\u624b\u673a\u70b9\u51fb\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u81ea\u52a8\u5316\u5de5\u5177\u548c\u5e93\uff0c\u5982Appium\u6216UIAutomator\u3002Appium\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\uff0c\u652f\u6301\u591a\u79cd\u5e73\u53f0\uff0c\u5305\u62ecAndroid\u548ciOS\u3002\u4f7f\u7528Appium\u65f6\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff0c\u5e76\u914d\u7f6e\u76f8\u5e94\u7684\u9a71\u52a8\u7a0b\u5e8f\u3002\u63a5\u7740\uff0c\u901a\u8fc7Python\u7f16\u5199\u811a\u672c\uff0c\u8fde\u63a5\u5230\u79fb\u52a8\u8bbe\u5907\u5e76\u6a21\u62df\u70b9\u51fb\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u83b7\u53d6\u624b\u673a\u5c4f\u5e55\u5750\u6807\u4ee5\u8fdb\u884c\u70b9\u51fb\uff1f<\/strong><\/p>\n<p>\u4e3a\u4e86\u5b9e\u73b0\u70b9\u51fb\uff0c\u60a8\u9700\u8981\u4e86\u89e3\u624b\u673a\u5c4f\u5e55\u7684\u5206\u8fa8\u7387\u548c\u5750\u6807\u7cfb\u3002\u53ef\u4ee5\u4f7f\u7528ADB\uff08Android Debug Bridge\uff09\u547d\u4ee4\u83b7\u53d6\u5c4f\u5e55\u5206\u8fa8\u7387\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u547d\u4ee4<code>adb shell wm size<\/code>\u53ef\u4ee5\u83b7\u53d6\u8bbe\u5907\u7684\u5206\u8fa8\u7387\u3002\u901a\u8fc7\u8fd9\u4e9b\u4fe1\u606f\uff0c\u60a8\u53ef\u4ee5\u5728Python\u811a\u672c\u4e2d\u5b9a\u4e49\u70b9\u51fb\u7684\u5177\u4f53\u5750\u6807\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u70b9\u51fb\u64cd\u4f5c\u7684\u5ef6\u8fdf\u548c\u6548\u679c\uff1f<\/strong><\/p>\n<p>\u5728\u8fdb\u884c\u70b9\u51fb\u64cd\u4f5c\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u5ef6\u8fdf\u95ee\u9898\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>time<\/code>\u6a21\u5757\uff0c\u8bbe\u7f6e\u9002\u5f53\u7684\u7b49\u5f85\u65f6\u95f4\uff0c\u4ee5\u786e\u4fdd\u70b9\u51fb\u64cd\u4f5c\u987a\u5229\u8fdb\u884c\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u56fe\u50cf\u8bc6\u522b\u5e93\uff08\u5982OpenCV\uff09\u53ef\u4ee5\u5e2e\u52a9\u8bc6\u522b\u70b9\u51fb\u76ee\u6807\u7684\u72b6\u6001\uff0c\u4ece\u800c\u63d0\u9ad8\u64cd\u4f5c\u7684\u51c6\u786e\u6027\u548c\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u5b9e\u73b0\u70b9\u51fb\u624b\u673a\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u52a8\u5316\u6d4b\u8bd5\u6846\u67b6\u3001\u8fdc\u7a0b\u63a7\u5236\u5e93\u6216\u8005\u624b\u673a\u6a21\u62df\u5668\u3002\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Ap [&hellip;]","protected":false},"author":3,"featured_media":984073,"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\/984059"}],"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=984059"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/984059\/revisions"}],"predecessor-version":[{"id":984076,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/984059\/revisions\/984076"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/984073"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=984059"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=984059"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=984059"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}