{"id":1112929,"date":"2025-01-08T17:43:03","date_gmt":"2025-01-08T09:43:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1112929.html"},"modified":"2025-01-08T17:43:06","modified_gmt":"2025-01-08T09:43:06","slug":"python%e5%a6%82%e4%bd%95%e6%93%8d%e4%bd%9c%e7%94%b5%e8%84%91%e4%b8%8a%e5%85%b6%e4%bb%96%e8%bd%af%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1112929.html","title":{"rendered":"python\u5982\u4f55\u64cd\u4f5c\u7535\u8111\u4e0a\u5176\u4ed6\u8f6f\u4ef6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074743\/03ebcfe2-9acf-455d-b264-d9181fe0f532.webp\" alt=\"python\u5982\u4f55\u64cd\u4f5c\u7535\u8111\u4e0a\u5176\u4ed6\u8f6f\u4ef6\" \/><\/p>\n<p><p> Python \u662f\u4e00\u79cd\u7075\u6d3b\u4e14\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u53ef\u4ee5\u7528\u6765\u64cd\u4f5c\u7535\u8111\u4e0a\u7684\u5176\u4ed6\u8f6f\u4ef6\u3002<strong>\u901a\u8fc7\u4f7f\u7528\u5e93\u5982 <code>pyautogui<\/code>\u3001<code>subprocess<\/code>\u3001<code>os<\/code>\u3001<code>win32com.client<\/code>\u3001<code>keyboard<\/code>\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6a21\u62df\u952e\u76d8\u548c\u9f20\u6807\u64cd\u4f5c\u3001\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u3001\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf\u3001\u4e0eWindows COM\u5bf9\u8c61\u4ea4\u4e92\u7b49\u529f\u80fd<\/strong>\u3002\u5176\u4e2d\uff0c<code>pyautogui<\/code> \u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684\u5e93\uff0c\u80fd\u591f\u65b9\u4fbf\u5730\u6a21\u62df\u7528\u6237\u754c\u9762\u4ea4\u4e92\uff0c\u4f8b\u5982\u70b9\u51fb\u6309\u94ae\u3001\u8f93\u5165\u6587\u672c\u7b49\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 <code>pyautogui<\/code> \u6a21\u62df\u7528\u6237\u754c\u9762\u4ea4\u4e92<\/h3>\n<\/p>\n<p><p><code>pyautogui<\/code> \u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u5e93\uff0c\u80fd\u591f\u6a21\u62df\u9f20\u6807\u548c\u952e\u76d8\u64cd\u4f5c\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u4f8b\u5982\u81ea\u52a8\u70b9\u51fb\u6309\u94ae\u3001\u8f93\u5165\u6587\u672c\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u4f7f\u7528\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 <code>pyautogui<\/code><\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">pip install pyautogui<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6a21\u62df\u9f20\u6807\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528 <code>pyautogui<\/code> \u53ef\u4ee5\u6a21\u62df\u9f20\u6807\u79fb\u52a8\u548c\u70b9\u51fb\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<h2><strong>\u79fb\u52a8\u9f20\u6807\u5230\u5c4f\u5e55\u5750\u6807 (x, y)<\/strong><\/h2>\n<p>pyautogui.moveTo(100, 150)<\/p>\n<h2><strong>\u4ece\u5f53\u524d\u4f4d\u7f6e\u79fb\u52a8\u9f20\u6807\u76f8\u5bf9\u5750\u6807 (x, y)<\/strong><\/h2>\n<p>pyautogui.moveRel(0, 50)<\/p>\n<h2><strong>\u5de6\u952e\u70b9\u51fb\u9f20\u6807<\/strong><\/h2>\n<p>pyautogui.click()<\/p>\n<h2><strong>\u53f3\u952e\u70b9\u51fb\u9f20\u6807<\/strong><\/h2>\n<p>pyautogui.rightClick()<\/p>\n<h2><strong>\u53cc\u51fb\u9f20\u6807<\/strong><\/h2>\n<p>pyautogui.doubleClick()<\/p>\n<h2><strong>\u62d6\u52a8\u9f20\u6807<\/strong><\/h2>\n<p>pyautogui.dragTo(200, 300)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u6a21\u62df\u952e\u76d8\u64cd\u4f5c<\/h4>\n<\/p>\n<p><p><code>pyautogui<\/code> \u8fd8\u53ef\u4ee5\u7528\u6765\u6a21\u62df\u952e\u76d8\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8f93\u5165\u6587\u672c<\/p>\n<p>pyautogui.typewrite(&quot;Hello, World!&quot;)<\/p>\n<h2><strong>\u6309\u4e0b\u5e76\u91ca\u653e\u4e00\u4e2a\u952e<\/strong><\/h2>\n<p>pyautogui.press(&#39;enter&#39;)<\/p>\n<h2><strong>\u7ec4\u5408\u952e<\/strong><\/h2>\n<p>pyautogui.hotkey(&#39;ctrl&#39;, &#39;c&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 <code>subprocess<\/code> \u8c03\u7528\u7cfb\u7edf\u547d\u4ee4<\/h3>\n<\/p>\n<p><p><code>subprocess<\/code> \u6a21\u5757\u5141\u8bb8\u4f60\u751f\u6210\u65b0\u7684\u8fdb\u7a0b\uff0c\u8fde\u63a5\u5b83\u4eec\u7684\u8f93\u5165\/\u8f93\u51fa\/\u9519\u8bef\u7ba1\u9053\uff0c\u5e76\u83b7\u5f97\u8fd4\u56de\u7801\u3002\u5b83\u975e\u5e38\u9002\u5408\u7528\u6765\u8fd0\u884c\u5176\u4ed6\u7a0b\u5e8f\u6216\u811a\u672c\u3002<\/p>\n<\/p>\n<p><h4>1. \u8c03\u7528\u7cfb\u7edf\u547d\u4ee4<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>\u8fd0\u884c\u7cfb\u7edf\u547d\u4ee4<\/strong><\/h2>\n<p>subprocess.run([&quot;ls&quot;, &quot;-l&quot;])<\/p>\n<h2><strong>\u83b7\u53d6\u547d\u4ee4\u8f93\u51fa<\/strong><\/h2>\n<p>result = subprocess.run([&quot;echo&quot;, &quot;Hello, World!&quot;], capture_output=True, text=True)<\/p>\n<p>print(result.stdout)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u542f\u52a8\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>subprocess<\/code> \u542f\u52a8\u5916\u90e8\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u542f\u52a8\u8bb0\u4e8b\u672c<\/p>\n<p>subprocess.run([&quot;notepad.exe&quot;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 <code>os<\/code> \u6a21\u5757\u64cd\u4f5c\u6587\u4ef6\u7cfb\u7edf<\/h3>\n<\/p>\n<p><p><code>os<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e9b\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u7684\u4fbf\u6377\u65b9\u6cd5\uff0c\u4f8b\u5982\u64cd\u4f5c\u6587\u4ef6\u548c\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u548c\u5220\u9664\u76ee\u5f55<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u521b\u5efa\u76ee\u5f55<\/strong><\/h2>\n<p>os.makedirs(&quot;new_directory&quot;)<\/p>\n<h2><strong>\u5220\u9664\u76ee\u5f55<\/strong><\/h2>\n<p>os.rmdir(&quot;new_directory&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6587\u4ef6\u64cd\u4f5c<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u91cd\u547d\u540d\u6587\u4ef6<\/p>\n<p>os.rename(&quot;old_file.txt&quot;, &quot;new_file.txt&quot;)<\/p>\n<h2><strong>\u5220\u9664\u6587\u4ef6<\/strong><\/h2>\n<p>os.remove(&quot;new_file.txt&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528 <code>win32com.client<\/code> \u4e0eWindows COM\u5bf9\u8c61\u4ea4\u4e92<\/h3>\n<\/p>\n<p><p><code>win32com.client<\/code> \u6a21\u5757\u5141\u8bb8\u4f60\u4e0e Windows COM \u5bf9\u8c61\u8fdb\u884c\u4ea4\u4e92\uff0c\u8fd9\u5bf9\u4e8e\u81ea\u52a8\u5316 Office \u5e94\u7528\u7a0b\u5e8f\uff08\u5982 Word \u548c Excel\uff09\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 <code>pywin32<\/code><\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">pip install pywin32<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u64cd\u4f5c Excel<\/h4>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528 <code>win32com.client<\/code> \u64cd\u4f5c Excel \u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import win32com.client<\/p>\n<h2><strong>\u542f\u52a8 Excel \u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>excel = win32com.client.Dispatch(&quot;Excel.Application&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>workbook = excel.Workbooks.Add()<\/p>\n<h2><strong>\u83b7\u53d6\u7b2c\u4e00\u4e2a\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook.Sheets(1)<\/p>\n<h2><strong>\u5728\u5355\u5143\u683c A1 \u4e2d\u5199\u5165\u6570\u636e<\/strong><\/h2>\n<p>sheet.Cells(1, 1).Value = &quot;Hello, Excel!&quot;<\/p>\n<h2><strong>\u4fdd\u5b58\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>workbook.SaveAs(&quot;example.xlsx&quot;)<\/p>\n<h2><strong>\u5173\u95ed Excel<\/strong><\/h2>\n<p>excel.Quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528 <code>keyboard<\/code> \u6a21\u62df\u952e\u76d8\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p><code>keyboard<\/code> \u6a21\u5757\u53ef\u4ee5\u8ba9\u4f60\u76d1\u542c\u548c\u53d1\u9001\u952e\u76d8\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5 <code>keyboard<\/code><\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">pip install keyboard<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u53d1\u9001\u952e\u76d8\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import keyboard<\/p>\n<h2><strong>\u53d1\u9001\u952e\u76d8\u4e8b\u4ef6<\/strong><\/h2>\n<p>keyboard.write(&quot;Hello, World!&quot;)<\/p>\n<h2><strong>\u6309\u4e0b\u5e76\u91ca\u653e\u4e00\u4e2a\u952e<\/strong><\/h2>\n<p>keyboard.press_and_release(&#39;enter&#39;)<\/p>\n<h2><strong>\u7ec4\u5408\u952e<\/strong><\/h2>\n<p>keyboard.send(&#39;ctrl+c&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u76d1\u542c\u952e\u76d8\u4e8b\u4ef6<\/h4>\n<\/p>\n<p><p>\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528 <code>keyboard<\/code> \u6a21\u5757\u76d1\u542c\u952e\u76d8\u4e8b\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u56de\u8c03\u51fd\u6570<\/p>\n<p>def on_key_event(e):<\/p>\n<p>    print(f&quot;Key {e.name} pressed&quot;)<\/p>\n<h2><strong>\u76d1\u542c\u952e\u76d8\u4e8b\u4ef6<\/strong><\/h2>\n<p>keyboard.on_press(on_key_event)<\/p>\n<h2><strong>\u8ba9\u7a0b\u5e8f\u4fdd\u6301\u8fd0\u884c<\/strong><\/h2>\n<p>keyboard.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>t(&#39;esc&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u7efc\u5408\u5e94\u7528\u793a\u4f8b<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5c55\u793a\u5982\u4f55\u7ed3\u5408\u4e0a\u8ff0\u65b9\u6cd5\u5b9e\u73b0\u590d\u6742\u7684\u81ea\u52a8\u5316\u4efb\u52a1\uff0c\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5e94\u7528\u793a\u4f8b\uff1a\u81ea\u52a8\u6253\u5f00\u8bb0\u4e8b\u672c\uff0c\u8f93\u5165\u6587\u672c\u5e76\u4fdd\u5b58\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<p>import subprocess<\/p>\n<p>import time<\/p>\n<h2><strong>\u542f\u52a8\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>subprocess.run([&quot;notepad.exe&quot;])<\/p>\n<h2><strong>\u7b49\u5f85\u8bb0\u4e8b\u672c\u542f\u52a8<\/strong><\/h2>\n<p>time.sleep(2)<\/p>\n<h2><strong>\u8f93\u5165\u6587\u672c<\/strong><\/h2>\n<p>pyautogui.typewrite(&quot;Hello, this is an automated message!&quot;)<\/p>\n<h2><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong><\/h2>\n<p>pyautogui.hotkey(&#39;ctrl&#39;, &#39;s&#39;)<\/p>\n<p>time.sleep(1)  # \u7b49\u5f85\u4fdd\u5b58\u5bf9\u8bdd\u6846\u51fa\u73b0<\/p>\n<p>pyautogui.typewrite(&quot;automated_file.txt&quot;)<\/p>\n<p>pyautogui.press(&#39;enter&#39;)<\/p>\n<h2><strong>\u5173\u95ed\u8bb0\u4e8b\u672c<\/strong><\/h2>\n<p>pyautogui.hotkey(&#39;alt&#39;, &#39;f4&#39;)<\/p>\n<p>time.sleep(1)  # \u7b49\u5f85\u5173\u95ed\u5bf9\u8bdd\u6846\u51fa\u73b0<\/p>\n<p>pyautogui.press(&#39;n&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5229\u7528 Python \u64cd\u4f5c\u7535\u8111\u4e0a\u7684\u5176\u4ed6\u8f6f\u4ef6\uff0c\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u8fd9\u4e0d\u4ec5\u80fd\u591f\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\uff0c\u8fd8\u80fd\u51cf\u5c11\u91cd\u590d\u6027\u64cd\u4f5c\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u672f\u540e\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\u7f16\u5199\u66f4\u52a0\u590d\u6742\u7684\u81ea\u52a8\u5316\u811a\u672c\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5229\u7528 Python \u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u4e0eWindows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7684\u5176\u4ed6\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\uff1f<\/strong><br \/>Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u5e93\u4e0eWindows\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7684\u5176\u4ed6\u8f6f\u4ef6\u8fdb\u884c\u4ea4\u4e92\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pyautogui<\/code>\u5e93\u53ef\u4ee5\u6a21\u62df\u952e\u76d8\u548c\u9f20\u6807\u64cd\u4f5c\uff0c\u5b9e\u73b0\u81ea\u52a8\u5316\u4efb\u52a1\u3002\u540c\u65f6\uff0c<code>subprocess<\/code>\u5e93\u5141\u8bb8\u4f60\u8fd0\u884c\u5916\u90e8\u7a0b\u5e8f\u5e76\u4e0e\u4e4b\u8fdb\u884c\u901a\u4fe1\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b9e\u73b0\u4ece\u6587\u4ef6\u7ba1\u7406\u5230\u81ea\u52a8\u5316\u529e\u516c\u8f6f\u4ef6\u64cd\u4f5c\u7684\u591a\u79cd\u9700\u6c42\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528Python\u63a7\u5236Mac\u6216Linux\u7cfb\u7edf\u4e0a\u7684\u8f6f\u4ef6\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u540c\u6837\u9002\u7528\u4e8eMac\u548cLinux\u7cfb\u7edf\u3002\u901a\u8fc7\u4f7f\u7528<code>os<\/code>\u548c<code>subprocess<\/code>\u5e93\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u542f\u52a8\u548c\u63a7\u5236\u8fd9\u4e9b\u7cfb\u7edf\u4e0a\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u6b64\u5916\uff0c<code>pyobjc<\/code>\u5e93\u53ef\u7528\u4e8e\u5728Mac\u4e0a\u8c03\u7528\u672c\u5730API\uff0c\u4ece\u800c\u5b9e\u73b0\u66f4\u6df1\u5165\u7684\u7cfb\u7edf\u96c6\u6210\u3002Linux\u7528\u6237\u53ef\u4ee5\u4f7f\u7528<code>xdotool<\/code>\u7b49\u5de5\u5177\u6765\u6a21\u62df\u8f93\u5165\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u8f6f\u4ef6\u7684\u81ea\u52a8\u5316\u6d4b\u8bd5\uff1f<\/strong><br \/>\u81ea\u52a8\u5316\u6d4b\u8bd5\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Python\u7684<code>unittest<\/code>\u6216<code>pytest<\/code>\u5e93\u7ed3\u5408<code>selenium<\/code>\u7b49\u5de5\u5177\u6765\u5b9e\u73b0\u3002<code>selenium<\/code>\u53ef\u4ee5\u7528\u4e8e\u6d4f\u89c8\u5668\u81ea\u52a8\u5316\uff0c\u800c<code>pywinauto<\/code>\u6216<code>AutoIt<\/code>\u5219\u53ef\u4ee5\u5e2e\u52a9\u4f60\u63a7\u5236Windows\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7\u7f16\u5199\u6d4b\u8bd5\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u6709\u6548\u5730\u6a21\u62df\u7528\u6237\u64cd\u4f5c\uff0c\u9a8c\u8bc1\u8f6f\u4ef6\u529f\u80fd\uff0c\u63d0\u5347\u6d4b\u8bd5\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u662f\u4e00\u79cd\u7075\u6d3b\u4e14\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u53ef\u4ee5\u7528\u6765\u64cd\u4f5c\u7535\u8111\u4e0a\u7684\u5176\u4ed6\u8f6f\u4ef6\u3002\u901a\u8fc7\u4f7f\u7528\u5e93\u5982 pyautogui\u3001su [&hellip;]","protected":false},"author":3,"featured_media":1112934,"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\/1112929"}],"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=1112929"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1112929\/revisions"}],"predecessor-version":[{"id":1112938,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1112929\/revisions\/1112938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1112934"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1112929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1112929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1112929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}