{"id":963103,"date":"2024-12-27T04:14:37","date_gmt":"2024-12-26T20:14:37","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/963103.html"},"modified":"2024-12-27T04:14:39","modified_gmt":"2024-12-26T20:14:39","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e7%bb%98%e5%88%b6%e9%94%ae%e7%9b%98","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/963103.html","title":{"rendered":"\u5982\u4f55\u7528python\u7ed8\u5236\u952e\u76d8"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180552\/d59820a6-2317-499d-8ac0-06628c8b0705.webp\" alt=\"\u5982\u4f55\u7528python\u7ed8\u5236\u952e\u76d8\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u7ed8\u5236\u952e\u76d8\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\u548c\u5de5\u5177\uff0c\u5982matplotlib\u3001pygame\u3001tkinter\u3001pynput\u7b49\u3002\u6bcf\u4e2a\u5e93\u90fd\u6709\u4e0d\u540c\u7684\u529f\u80fd\u548c\u7528\u9014\uff0c\u5177\u4f53\u9009\u62e9\u53d6\u51b3\u4e8e\u60a8\u7684\u76ee\u6807\u548c\u9700\u6c42\u3002\u4f8b\u5982\uff0cmatplotlib\u9002\u5408\u9759\u6001\u56fe\u5f62\u7ed8\u5236\u3001pygame\u9002\u5408\u6e38\u620f\u5f00\u53d1\u548c\u5b9e\u65f6\u4ea4\u4e92\u3001tkinter\u9002\u5408\u7b80\u5355\u7684GUI\u5e94\u7528\u5f00\u53d1\u3002pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u6e38\u620f\u7684Python\u5e93\uff0c\u5b83\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5904\u7406\u56fe\u5f62\u548c\u58f0\u97f3\uff0c\u56e0\u6b64\u5bf9\u4e8e\u7ed8\u5236\u548c\u5904\u7406\u952e\u76d8\u8f93\u5165\u975e\u5e38\u9002\u5408\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001MATPLOTLIB\u7ed8\u5236\u9759\u6001\u952e\u76d8\u5e03\u5c40<\/p>\n<\/p>\n<p><p>matplotlib\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u9002\u5408\u7528\u4e8e\u7ed8\u5236\u9759\u6001\u56fe\u5f62\u3002\u867d\u7136\u5b83\u4e0d\u662f\u4e13\u95e8\u4e3aGUI\u8bbe\u8ba1\u7684\uff0c\u4f46\u6211\u4eec\u4ecd\u7136\u53ef\u4ee5\u901a\u8fc7\u7ed8\u5236\u77e9\u5f62\u548c\u6587\u672c\u6765\u6a21\u62df\u952e\u76d8\u5e03\u5c40\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u8bbe\u7f6e<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5df2\u5b89\u88c5matplotlib\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install matplotlib<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u60a8\u53ef\u4ee5\u5f00\u59cb\u8bbe\u7f6e\u7ed8\u5236\u952e\u76d8\u7684\u57fa\u672c\u6846\u67b6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>import matplotlib.patches as patches<\/p>\n<p>def draw_keyboard():<\/p>\n<p>    fig, ax = plt.subplots(figsize=(12, 4))<\/p>\n<p>    # \u7ed8\u5236\u952e\u76d8\u5e03\u5c40<\/p>\n<p>    keys = [<\/p>\n<p>        &quot;Esc&quot;, &quot;F1&quot;, &quot;F2&quot;, &quot;F3&quot;, &quot;F4&quot;, &quot;F5&quot;, &quot;F6&quot;, &quot;F7&quot;, &quot;F8&quot;, &quot;F9&quot;, &quot;F10&quot;, &quot;F11&quot;, &quot;F12&quot;,<\/p>\n<p>        &quot;`&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;0&quot;, &quot;-&quot;, &quot;=&quot;,<\/p>\n<p>        &quot;Tab&quot;, &quot;Q&quot;, &quot;W&quot;, &quot;E&quot;, &quot;R&quot;, &quot;T&quot;, &quot;Y&quot;, &quot;U&quot;, &quot;I&quot;, &quot;O&quot;, &quot;P&quot;, &quot;[&quot;, &quot;]&quot;, &quot;\\\\&quot;,<\/p>\n<p>        &quot;Caps&quot;, &quot;A&quot;, &quot;S&quot;, &quot;D&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;J&quot;, &quot;K&quot;, &quot;L&quot;, &quot;;&quot;, &quot;&#39;&quot;,<\/p>\n<p>        &quot;Shift&quot;, &quot;Z&quot;, &quot;X&quot;, &quot;C&quot;, &quot;V&quot;, &quot;B&quot;, &quot;N&quot;, &quot;M&quot;, &quot;,&quot;, &quot;.&quot;, &quot;\/&quot;, &quot;Shift&quot;<\/p>\n<p>    ]<\/p>\n<p>    x, y = 0.1, 3.0<\/p>\n<p>    dx, dy = 0.8, 0.8  # \u952e\u7684\u5927\u5c0f<\/p>\n<p>    for key in keys:<\/p>\n<p>        ax.add_patch(patches.Rectangle((x, y), dx, dy, fill=True, edgecolor=&#39;black&#39;))<\/p>\n<p>        ax.text(x + dx\/2, y + dy\/2, key, ha=&#39;center&#39;, va=&#39;center&#39;)<\/p>\n<p>        x += dx<\/p>\n<p>        if key in [&quot;F12&quot;, &quot;=&quot;, &quot;\\\\&quot;, &quot;&#39;&quot;, &quot;\/&quot;]:<\/p>\n<p>            y -= dy<\/p>\n<p>            x = 0.1<\/p>\n<p>    ax.set_xlim(0, 12)<\/p>\n<p>    ax.set_ylim(0, 4)<\/p>\n<p>    ax.axis(&#39;off&#39;)<\/p>\n<p>    plt.show()<\/p>\n<p>draw_keyboard()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ed8\u5236\u952e\u76d8<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u7ed8\u5236\u952e\u76d8\u65f6\uff0c\u6211\u4eec\u9700\u8981\u6ce8\u610f\u6bcf\u4e2a\u952e\u7684\u4f4d\u7f6e\u548c\u5927\u5c0f\u3002\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574x\u548cy\u5750\u6807\u4ee5\u53cadx\u548cdy\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u989c\u8272\u4e0e\u6837\u5f0f<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u4e0d\u540c\u7684\u989c\u8272\u548c\u8fb9\u6846\u6837\u5f0f\u6765\u589e\u5f3a\u952e\u76d8\u7684\u5916\u89c2\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0d\u540c\u989c\u8272\u533a\u5206\u529f\u80fd\u952e\u548c\u5b57\u6bcd\u952e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001PYGAME\u5b9e\u73b0\u4ea4\u4e92\u5f0f\u952e\u76d8<\/p>\n<\/p>\n<p><p>pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u6e38\u620f\u5f00\u53d1\u7684\u5e93\uff0c\u975e\u5e38\u9002\u5408\u5904\u7406\u5b9e\u65f6\u4ea4\u4e92\u548c\u52a8\u753b\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u521d\u59cb\u5316<\/strong><\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5pygame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u521d\u59cb\u5316pygame\u5e76\u521b\u5efa\u4e00\u4e2a\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>pygame.init()<\/p>\n<p>screen = pygame.display.set_mode((800, 300))<\/p>\n<p>pygame.display.set_caption(&#39;Keyboard Layout&#39;)<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272<\/strong><\/h2>\n<p>WHITE = (255, 255, 255)<\/p>\n<p>BLACK = (0, 0, 0)<\/p>\n<h2><strong>\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>running = True<\/p>\n<p>while running:<\/p>\n<p>    for event in pygame.event.get():<\/p>\n<p>        if event.type == pygame.QUIT:<\/p>\n<p>            running = False<\/p>\n<p>    screen.fill(WHITE)<\/p>\n<p>    # \u7ed8\u5236\u952e\u76d8\u5e03\u5c40<\/p>\n<p>    keys = [<\/p>\n<p>        &quot;Esc&quot;, &quot;F1&quot;, &quot;F2&quot;, &quot;F3&quot;, &quot;F4&quot;, &quot;F5&quot;, &quot;F6&quot;, &quot;F7&quot;, &quot;F8&quot;, &quot;F9&quot;, &quot;F10&quot;, &quot;F11&quot;, &quot;F12&quot;,<\/p>\n<p>        &quot;`&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;0&quot;, &quot;-&quot;, &quot;=&quot;,<\/p>\n<p>        &quot;Tab&quot;, &quot;Q&quot;, &quot;W&quot;, &quot;E&quot;, &quot;R&quot;, &quot;T&quot;, &quot;Y&quot;, &quot;U&quot;, &quot;I&quot;, &quot;O&quot;, &quot;P&quot;, &quot;[&quot;, &quot;]&quot;, &quot;\\\\&quot;,<\/p>\n<p>        &quot;Caps&quot;, &quot;A&quot;, &quot;S&quot;, &quot;D&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;J&quot;, &quot;K&quot;, &quot;L&quot;, &quot;;&quot;, &quot;&#39;&quot;,<\/p>\n<p>        &quot;Shift&quot;, &quot;Z&quot;, &quot;X&quot;, &quot;C&quot;, &quot;V&quot;, &quot;B&quot;, &quot;N&quot;, &quot;M&quot;, &quot;,&quot;, &quot;.&quot;, &quot;\/&quot;, &quot;Shift&quot;<\/p>\n<p>    ]<\/p>\n<p>    x, y = 10, 50<\/p>\n<p>    dx, dy = 60, 60  # \u952e\u7684\u5927\u5c0f<\/p>\n<p>    font = pygame.font.Font(None, 36)<\/p>\n<p>    for key in keys:<\/p>\n<p>        pygame.draw.rect(screen, BLACK, (x, y, dx, dy), 2)<\/p>\n<p>        text = font.render(key, True, BLACK)<\/p>\n<p>        screen.blit(text, (x + 10, y + 10))<\/p>\n<p>        x += dx<\/p>\n<p>        if key in [&quot;F12&quot;, &quot;=&quot;, &quot;\\\\&quot;, &quot;&#39;&quot;, &quot;\/&quot;]:<\/p>\n<p>            y += dy<\/p>\n<p>            x = 10<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9e\u73b0\u952e\u76d8\u8f93\u5165<\/strong><\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u7ed8\u5236\u952e\u76d8\uff0cpygame\u8fd8\u53ef\u4ee5\u6355\u83b7\u952e\u76d8\u8f93\u5165\u3002\u53ef\u4ee5\u901a\u8fc7\u76d1\u542c\u4e8b\u4ef6\u5faa\u73af\u4e2d\u7684KEYDOWN\u4e8b\u4ef6\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6dfb\u52a0\u4ea4\u4e92\u529f\u80fd<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u6269\u5c55pygame\u7a0b\u5e8f\uff0c\u4f7f\u5176\u53ef\u4ee5\u54cd\u5e94\u7528\u6237\u8f93\u5165\u3002\u4f8b\u5982\uff0c\u5f53\u7528\u6237\u6309\u4e0b\u67d0\u4e2a\u952e\u65f6\uff0c\u53ef\u4ee5\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u76f8\u5e94\u7684\u5b57\u7b26\u6216\u89e6\u53d1\u7279\u5b9a\u52a8\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001TKINTER\u521b\u5efa\u7b80\u5355\u7684GUI\u952e\u76d8<\/p>\n<\/p>\n<p><p>tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u7528\u4e8e\u521b\u5efa\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b89\u88c5\u548c\u57fa\u672c\u8bbe\u7f6e<\/strong><\/li>\n<\/ol>\n<p><p>tkinter\u662fPython\u7684\u5185\u7f6e\u5e93\uff0c\u56e0\u6b64\u65e0\u9700\u5b89\u88c5\u3002\u53ef\u4ee5\u76f4\u63a5\u5bfc\u5165\u5e76\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Virtual Keyboard&quot;)<\/p>\n<p>canvas = tk.Canvas(root, width=800, height=300)<\/p>\n<p>canvas.pack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u7ed8\u5236\u952e\u76d8\u5e03\u5c40<\/strong><\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528tkinter\u7684Canvas\u7ec4\u4ef6\u7ed8\u5236\u952e\u76d8\u5e03\u5c40\u3002\u53ef\u4ee5\u901a\u8fc7create_rectangle\u548ccreate_text\u65b9\u6cd5\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">keys = [<\/p>\n<p>    &quot;Esc&quot;, &quot;F1&quot;, &quot;F2&quot;, &quot;F3&quot;, &quot;F4&quot;, &quot;F5&quot;, &quot;F6&quot;, &quot;F7&quot;, &quot;F8&quot;, &quot;F9&quot;, &quot;F10&quot;, &quot;F11&quot;, &quot;F12&quot;,<\/p>\n<p>    &quot;`&quot;, &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;0&quot;, &quot;-&quot;, &quot;=&quot;,<\/p>\n<p>    &quot;Tab&quot;, &quot;Q&quot;, &quot;W&quot;, &quot;E&quot;, &quot;R&quot;, &quot;T&quot;, &quot;Y&quot;, &quot;U&quot;, &quot;I&quot;, &quot;O&quot;, &quot;P&quot;, &quot;[&quot;, &quot;]&quot;, &quot;\\\\&quot;,<\/p>\n<p>    &quot;Caps&quot;, &quot;A&quot;, &quot;S&quot;, &quot;D&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;, &quot;J&quot;, &quot;K&quot;, &quot;L&quot;, &quot;;&quot;, &quot;&#39;&quot;,<\/p>\n<p>    &quot;Shift&quot;, &quot;Z&quot;, &quot;X&quot;, &quot;C&quot;, &quot;V&quot;, &quot;B&quot;, &quot;N&quot;, &quot;M&quot;, &quot;,&quot;, &quot;.&quot;, &quot;\/&quot;, &quot;Shift&quot;<\/p>\n<p>]<\/p>\n<p>x, y = 10, 50<\/p>\n<p>dx, dy = 60, 60  # \u952e\u7684\u5927\u5c0f<\/p>\n<p>for key in keys:<\/p>\n<p>    canvas.create_rectangle(x, y, x + dx, y + dy, outline=&quot;black&quot;)<\/p>\n<p>    canvas.create_text(x + dx\/2, y + dy\/2, text=key)<\/p>\n<p>    x += dx<\/p>\n<p>    if key in [&quot;F12&quot;, &quot;=&quot;, &quot;\\\\&quot;, &quot;&#39;&quot;, &quot;\/&quot;]:<\/p>\n<p>        y += dy<\/p>\n<p>        x = 10<\/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<ol start=\"3\">\n<li><strong>\u6dfb\u52a0\u4ea4\u4e92<\/strong><\/li>\n<\/ol>\n<p><p>tkinter\u652f\u6301\u7ed1\u5b9a\u4e8b\u4ef6\uff0c\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u952e\u7ed1\u5b9a\u4e00\u4e2a\u70b9\u51fb\u4e8b\u4ef6\u3002\u4f8b\u5982\uff0c\u5f53\u7528\u6237\u70b9\u51fb\u67d0\u4e2a\u952e\u65f6\uff0c\u53ef\u4ee5\u5728\u6587\u672c\u6846\u4e2d\u63d2\u5165\u76f8\u5e94\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7efc\u5408\u6bd4\u8f83<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u9002\u5408\u60a8\u7684\u5e93\u548c\u5de5\u5177\u65f6\uff0c\u8003\u8651\u60a8\u7684\u9879\u76ee\u9700\u6c42\u548c\u76ee\u6807\u3002\u5982\u679c\u9700\u8981\u9759\u6001\u56fe\u5f62\uff0cmatplotlib\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\uff1b\u5982\u679c\u9700\u8981\u5b9e\u65f6\u4ea4\u4e92\u548c\u52a8\u753b\uff0cpygame\u662f\u7406\u60f3\u7684\u9009\u62e9\uff1b\u5982\u679c\u9700\u8981\u7b80\u5355\u7684GUI\u5e94\u7528\uff0ctkinter\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u8d77\u70b9\u3002\u901a\u8fc7\u7ed3\u5408\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u529f\u80fd\u4e30\u5bcc\u7684\u952e\u76d8\u5e03\u5c40\u548c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u7ed8\u5236\u4e00\u4e2a\u5b8c\u6574\u7684\u952e\u76d8\u56fe\u5f62\uff1f<\/strong><br \/>\u5728Python\u4e2d\u7ed8\u5236\u5b8c\u6574\u7684\u952e\u76d8\u56fe\u5f62\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\uff0c\u6bd4\u5982Matplotlib\u6216Pygame\u3002Matplotlib\u9002\u5408\u4e8e\u9759\u6001\u56fe\u5f62\u7684\u7ed8\u5236\uff0c\u800cPygame\u5219\u66f4\u9002\u5408\u5b9e\u65f6\u4ea4\u4e92\u7684\u56fe\u5f62\u5e94\u7528\u3002\u4f60\u53ef\u4ee5\u5b9a\u4e49\u952e\u76d8\u7684\u6bcf\u4e2a\u6309\u952e\u7684\u4f4d\u7f6e\u548c\u5c3a\u5bf8\uff0c\u7136\u540e\u4f7f\u7528\u7ed8\u56fe\u5e93\u7684\u7ed8\u5236\u529f\u80fd\u5c06\u5176\u5448\u73b0\u51fa\u6765\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9bPython\u5e93\u9002\u5408\u7ed8\u5236\u952e\u76d8\uff1f<\/strong><br \/>\u5e38\u7528\u7684Python\u5e93\u6709Matplotlib\u3001Pygame\u548cTkinter\u3002Matplotlib\u9002\u5408\u5236\u4f5c\u56fe\u5f62\u5316\u7684\u9759\u6001\u5c55\u793a\uff0cPygame\u5219\u9002\u5408\u5f00\u53d1\u6e38\u620f\u548c\u66f4\u590d\u6742\u7684\u4ea4\u4e92\u5e94\u7528\uff0c\u800cTkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u5feb\u901f\u6784\u5efa\u7b80\u5355\u7684\u56fe\u5f62\u754c\u9762\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\u3002<\/p>\n<p><strong>\u5728\u7ed8\u5236\u952e\u76d8\u65f6\u5982\u4f55\u5904\u7406\u4e0d\u540c\u7684\u952e\u4f4d\u5e03\u5c40\uff1f<\/strong><br \/>\u5728\u7ed8\u5236\u952e\u76d8\u65f6\uff0c\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u56fd\u5bb6\u548c\u5730\u533a\u9009\u62e9\u76f8\u5e94\u7684\u952e\u4f4d\u5e03\u5c40\uff0c\u4f8b\u5982QWERTY\u3001AZERTY\u6216DVORAK\u3002\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u952e\u4f4d\u5e03\u5c40\u5b57\u5178\u6765\u5b9a\u4e49\u6bcf\u4e2a\u952e\u7684\u4f4d\u7f6e\u548c\u540d\u79f0\uff0c\u8fd9\u6837\u5728\u7ed8\u5236\u65f6\u5c31\u80fd\u7075\u6d3b\u8c03\u6574\u952e\u4f4d\u7684\u663e\u793a\uff0c\u540c\u65f6\u786e\u4fdd\u7b26\u5408\u7528\u6237\u4e60\u60ef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u7ed8\u5236\u952e\u76d8\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u5e93\u548c\u5de5\u5177\uff0c\u5982matplotlib\u3001pygame\u3001tkinter\u3001pynp [&hellip;]","protected":false},"author":3,"featured_media":963115,"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\/963103"}],"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=963103"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963103\/revisions"}],"predecessor-version":[{"id":963117,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/963103\/revisions\/963117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/963115"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=963103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=963103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=963103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}