{"id":965334,"date":"2024-12-27T04:36:55","date_gmt":"2024-12-26T20:36:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/965334.html"},"modified":"2024-12-27T04:36:58","modified_gmt":"2024-12-26T20:36:58","slug":"python%e5%a6%82%e4%bd%95%e6%8e%a5%e6%94%b6%e5%b1%8f%e5%b9%95%e8%be%93%e5%85%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/965334.html","title":{"rendered":"python\u5982\u4f55\u63a5\u6536\u5c4f\u5e55\u8f93\u5165"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181701\/69b16a8f-8677-4895-8904-7ce21c6dd08f.webp\" alt=\"python\u5982\u4f55\u63a5\u6536\u5c4f\u5e55\u8f93\u5165\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u63a5\u6536\u5c4f\u5e55\u8f93\u5165\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u3001\u7b2c\u4e09\u65b9\u5e93\u5982<code>pyautogui<\/code>\u548c<code>pynput<\/code>\u8fdb\u884c\u952e\u76d8\u76d1\u542c\u3001\u4ee5\u53ca\u901a\u8fc7\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e93\u5982<code>tkinter<\/code>\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165\u3002\u8fd9\u4e9b\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\uff0c<code>input()<\/code>\u9002\u5408\u7b80\u5355\u7684\u547d\u4ee4\u884c\u4ea4\u4e92\u3001<code>pyautogui<\/code>\u548c<code>pynput<\/code>\u9002\u5408\u81ea\u52a8\u5316\u548c\u76d1\u542c\u952e\u76d8\u4e8b\u4ef6\u3001\u800c<code>tkinter<\/code>\u9002\u5408\u6784\u5efa\u590d\u6742\u7684\u7528\u6237\u754c\u9762\u3002<\/strong>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5e94\u7528\u573a\u666f\u53ca\u5176\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u547d\u4ee4\u884c\u8f93\u5165<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684<code>input()<\/code>\u51fd\u6570\uff0c\u5b83\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u65b9\u5f0f\u3002<code>input()<\/code>\u51fd\u6570\u4f1a\u6682\u505c\u7a0b\u5e8f\u6267\u884c\uff0c\u7b49\u5f85\u7528\u6237\u8f93\u5165\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4ece\u547d\u4ee4\u884c\u83b7\u53d6\u8f93\u5165\u3002<code>input()<\/code>\u51fd\u6570\u4f1a\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u4e00\u4e2a\u63d0\u793a\u4fe1\u606f\uff0c\u7b49\u5f85\u7528\u6237\u8f93\u5165\uff0c\u7136\u540e\u5c06\u8f93\u5165\u5185\u5bb9\u4f5c\u4e3a\u5b57\u7b26\u4e32\u8fd4\u56de\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u60a8\u7684\u540d\u5b57\uff1a&quot;)<\/p>\n<p>print(f&quot;\u60a8\u597d\uff0c{user_input}\uff01&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u7b49\u5f85\u7528\u6237\u8f93\u5165\u540d\u5b57\uff0c\u7136\u540e\u8f93\u51fa\u95ee\u5019\u4fe1\u606f\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u7b80\u5355\u7684\u547d\u4ee4\u884c\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u7c7b\u578b\u8f6c\u6362<\/strong><\/p>\n<\/p>\n<p><p>\u7531\u4e8e<code>input()<\/code>\u51fd\u6570\u8fd4\u56de\u7684\u6570\u636e\u7c7b\u578b\u662f\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u9700\u8981\u4f7f\u7528\u6574\u6570\u6216\u6d6e\u70b9\u6570\u8fdb\u884c\u8ba1\u7b97\uff0c\u9700\u8981\u8fdb\u884c\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">number = int(input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570\uff1a&quot;))<\/p>\n<p>print(f&quot;\u60a8\u8f93\u5165\u7684\u6574\u6570\u662f\uff1a{number}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u8fdb\u884c\u7b80\u5355\u6570\u636e\u5904\u7406\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code>pyautogui<\/code>\u5e93\u8fdb\u884c\u81ea\u52a8\u5316\u8f93\u5165<\/p>\n<\/p>\n<p><p><code>pyautogui<\/code>\u5e93\u662f\u4e00\u4e2a\u7528\u4e8eGUI\u81ea\u52a8\u5316\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u6a21\u62df\u9f20\u6807\u548c\u952e\u76d8\u7684\u64cd\u4f5c\u3002\u8fd9\u5728\u9700\u8981\u8fdb\u884c\u81ea\u52a8\u5316\u6d4b\u8bd5\u6216\u6a21\u62df\u7528\u6237\u64cd\u4f5c\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5<code>pyautogui<\/code>\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5<code>pyautogui<\/code>\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyautogui<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6a21\u62df\u952e\u76d8\u8f93\u5165<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>pyautogui<\/code>\u53ef\u4ee5\u6a21\u62df\u952e\u76d8\u8f93\u5165\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<p>pyautogui.typewrite(&#39;Hello world!&#39;, interval=0.25)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4ee3\u7801\u4f1a\u5728\u5f53\u524d\u6d3b\u52a8\u7684\u7a97\u53e3\u4e2d\u8f93\u5165\u201cHello world!\u201d\u3002<code>interval<\/code>\u53c2\u6570\u53ef\u4ee5\u63a7\u5236\u6bcf\u4e2a\u5b57\u7b26\u4e4b\u95f4\u7684\u65f6\u95f4\u95f4\u9694\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u83b7\u53d6\u5c4f\u5e55\u4f4d\u7f6e<\/strong><\/p>\n<\/p>\n<p><p><code>pyautogui<\/code>\u8fd8\u53ef\u4ee5\u83b7\u53d6\u5c4f\u5e55\u4e0a\u9f20\u6807\u7684\u4f4d\u7f6e\uff0c\u8fd9\u5bf9\u4e8e\u9700\u8981\u7cbe\u786e\u63a7\u5236\u7684\u81ea\u52a8\u5316\u4efb\u52a1\u975e\u5e38\u6709\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">current_mouse_x, current_mouse_y = pyautogui.position()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528<code>pynput<\/code>\u5e93\u8fdb\u884c\u952e\u76d8\u76d1\u542c<\/p>\n<\/p>\n<p><p><code>pynput<\/code>\u662f\u53e6\u4e00\u4e2a\u6709\u7528\u7684\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u76d1\u542c\u952e\u76d8\u548c\u9f20\u6807\u4e8b\u4ef6\u3002\u8fd9\u5728\u9700\u8981\u5b9e\u65f6\u54cd\u5e94\u7528\u6237\u8f93\u5165\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5<code>pynput<\/code>\u5e93<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5<code>pynput<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pynput<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u76d1\u542c\u952e\u76d8\u8f93\u5165<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>pynput<\/code>\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u76d1\u542c\u5668\u6765\u76d1\u63a7\u952e\u76d8\u4e8b\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pynput import keyboard<\/p>\n<p>def on_press(key):<\/p>\n<p>    try:<\/p>\n<p>        print(f&#39;\u6309\u4e0b\u952e: {key.char}&#39;)<\/p>\n<p>    except AttributeError:<\/p>\n<p>        print(f&#39;\u7279\u6b8a\u6309\u952e: {key}&#39;)<\/p>\n<p>with keyboard.Listener(on_press=on_press) as listener:<\/p>\n<p>    listener.join()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4ee3\u7801\u4f1a\u5728\u7528\u6237\u6bcf\u6b21\u6309\u4e0b\u952e\u76d8\u65f6\u6253\u5370\u51fa\u6309\u4e0b\u7684\u952e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528<code>tkinter<\/code>\u6784\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762<\/p>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u6784\u5efa\u590d\u6742\u7684\u7528\u6237\u4ea4\u4e92\u754c\u9762\u65f6\uff0c<code>tkinter<\/code>\u662fPython\u7684\u6807\u51c6\u5e93\u4e4b\u4e00\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u56fe\u5f62\u5316\u754c\u9762\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u7b80\u5355\u7684\u8f93\u5165\u754c\u9762<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u4f7f\u7528<code>tkinter<\/code>\u521b\u5efa\u7b80\u5355\u8f93\u5165\u6846\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def show_entry_fields():<\/p>\n<p>    print(f&quot;\u7528\u6237\u540d: {entry_username.get()}&quot;)<\/p>\n<p>    print(f&quot;\u5bc6\u7801: {entry_password.get()}&quot;)<\/p>\n<p>root = tk.Tk()<\/p>\n<p>tk.Label(root, text=&quot;\u7528\u6237\u540d&quot;).grid(row=0)<\/p>\n<p>tk.Label(root, text=&quot;\u5bc6\u7801&quot;).grid(row=1)<\/p>\n<p>entry_username = tk.Entry(root)<\/p>\n<p>entry_password = tk.Entry(root, show=&#39;*&#39;)<\/p>\n<p>entry_username.grid(row=0, column=1)<\/p>\n<p>entry_password.grid(row=1, column=1)<\/p>\n<p>tk.Button(root, text=&#39;\u9000\u51fa&#39;, command=root.quit).grid(row=3, column=0, pady=4)<\/p>\n<p>tk.Button(root, text=&#39;\u663e\u793a&#39;, command=show_entry_fields).grid(row=3, column=1, pady=4)<\/p>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u5e76\u901a\u8fc7\u6309\u94ae\u63d0\u4ea4\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u9700\u8981\u590d\u6742\u7528\u6237\u4ea4\u4e92\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177<\/strong>\uff1a\u9009\u62e9\u5408\u9002\u7684\u8f93\u5165\u5de5\u5177\u975e\u5e38\u91cd\u8981\u3002<code>input()<\/code>\u9002\u5408\u7b80\u5355\u7684\u547d\u4ee4\u884c\u7a0b\u5e8f\uff0c\u800c<code>tkinter<\/code>\u9002\u5408\u6784\u5efa\u590d\u6742\u7684GUI\u5e94\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8003\u8651\u7528\u6237\u4f53\u9a8c<\/strong>\uff1a\u5728\u8bbe\u8ba1\u7528\u6237\u8f93\u5165\u754c\u9762\u65f6\uff0c\u8981\u8003\u8651\u7528\u6237\u4f53\u9a8c\u3002\u786e\u4fdd\u8f93\u5165\u754c\u9762\u7b80\u5355\u6613\u7528\uff0c\u63d0\u793a\u4fe1\u606f\u6e05\u6670\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u5f02\u5e38\u60c5\u51b5<\/strong>\uff1a\u5728\u83b7\u53d6\u7528\u6237\u8f93\u5165\u65f6\uff0c\u8981\u8003\u8651\u53ef\u80fd\u7684\u5f02\u5e38\u60c5\u51b5\uff0c\u5982\u7528\u6237\u8f93\u5165\u65e0\u6548\u6570\u636e\u3002\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u673a\u5236\u6765\u63d0\u9ad8\u7a0b\u5e8f\u7684\u9c81\u68d2\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u6027\u8003\u8651<\/strong>\uff1a\u5c24\u5176\u662f\u5728\u5904\u7406\u654f\u611f\u4fe1\u606f\uff08\u5982\u5bc6\u7801\uff09\u65f6\uff0c\u8981\u6ce8\u610f\u8f93\u5165\u7684\u5b89\u5168\u6027\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u52a0\u5bc6\u6280\u672f\u6765\u4fdd\u62a4\u7528\u6237\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u65b9\u6cd5\uff0c\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u5de5\u5177\u548c\u5e93\u6765\u5b9e\u73b0\u3002\u901a\u8fc7\u5408\u7406\u7684\u8bbe\u8ba1\u548c\u5b9e\u73b0\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u7a0b\u5e8f\u7684\u4ea4\u4e92\u6027\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u5c4f\u5e55\u8f93\u5165\u7684\u529f\u80fd\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u63a5\u6536\u5c4f\u5e55\u8f93\u5165\u901a\u5e38\u4f7f\u7528\u5185\u7f6e\u7684<code>input()<\/code>\u51fd\u6570\u3002\u8be5\u51fd\u6570\u4f1a\u6682\u505c\u7a0b\u5e8f\u7684\u6267\u884c\uff0c\u7b49\u5f85\u7528\u6237\u8f93\u5165\u6587\u672c\u5e76\u6309\u4e0b\u56de\u8f66\u952e\u3002\u8f93\u5165\u7684\u5185\u5bb9\u5c06\u4f5c\u4e3a\u5b57\u7b26\u4e32\u8fd4\u56de\uff0c\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u8fdb\u4e00\u6b65\u5904\u7406\u6216\u8ba1\u7b97\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>sys.stdin<\/code>\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u8f93\u5165\u5904\u7406\uff0c\u9002\u7528\u4e8e\u9700\u8981\u63a5\u6536\u591a\u884c\u8f93\u5165\u7684\u573a\u666f\u3002<\/p>\n<p><strong>Python\u4e2d\u6709\u54ea\u4e9b\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u7528\u6237\u8f93\u5165\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u7684<code>input()<\/code>\u51fd\u6570\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u6765\u589e\u5f3a\u8f93\u5165\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c<code>curses<\/code>\u5e93\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u7528\u6237\u53cb\u597d\u7684\u6587\u672c\u754c\u9762\uff0c\u652f\u6301\u952e\u76d8\u8f93\u5165\u548c\u5c4f\u5e55\u8f93\u51fa\u7684\u52a8\u6001\u66f4\u65b0\uff1b\u800c<code>PyInquirer<\/code>\u5219\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u66f4\u590d\u6742\u7684\u547d\u4ee4\u884c\u4ea4\u4e92\u754c\u9762\uff0c\u652f\u6301\u591a\u79cd\u8f93\u5165\u7c7b\u578b\uff0c\u5982\u9009\u62e9\u6846\u548c\u786e\u8ba4\u6846\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5982\u4f55\u5904\u7406\u8f93\u5165\u9519\u8bef\u4ee5\u63d0\u5347\u7528\u6237\u4f53\u9a8c\uff1f<\/strong><br \/>\u5904\u7406\u8f93\u5165\u9519\u8bef\u662f\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\u7684\u91cd\u8981\u73af\u8282\u3002\u53ef\u4ee5\u4f7f\u7528<code>try-except<\/code>\u7ed3\u6784\u6765\u6355\u83b7\u53ef\u80fd\u53d1\u751f\u7684\u5f02\u5e38\uff0c\u4f8b\u5982\u7c7b\u578b\u8f6c\u6362\u9519\u8bef\u3002\u6b64\u5916\uff0c\u5faa\u73af\u7ed3\u6784\u53ef\u4ee5\u786e\u4fdd\u5728\u7528\u6237\u8f93\u5165\u4e0d\u7b26\u5408\u9884\u671f\u65f6\uff0c\u63d0\u793a\u4ed6\u4eec\u91cd\u65b0\u8f93\u5165\u3002\u901a\u8fc7\u63d0\u4f9b\u6e05\u6670\u7684\u63d0\u793a\u4fe1\u606f\u548c\u793a\u4f8b\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u6240\u9700\u8f93\u5165\u7684\u683c\u5f0f\uff0c\u4ece\u800c\u51cf\u5c11\u9519\u8bef\u7684\u53d1\u751f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u63a5\u6536\u5c4f\u5e55\u8f93\u5165\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u7b2c\u4e09\u65b9\u5e93\u5982pyautogui\u548cpynp [&hellip;]","protected":false},"author":3,"featured_media":965347,"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\/965334"}],"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=965334"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/965334\/revisions"}],"predecessor-version":[{"id":965351,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/965334\/revisions\/965351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/965347"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=965334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=965334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=965334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}