{"id":999328,"date":"2024-12-27T09:40:36","date_gmt":"2024-12-27T01:40:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999328.html"},"modified":"2024-12-27T09:40:38","modified_gmt":"2024-12-27T01:40:38","slug":"python-%e5%a6%82%e4%bd%95%e6%94%b9%e5%8f%98%e8%83%8c%e6%99%af%e9%a2%9c%e8%89%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/999328.html","title":{"rendered":"python \u5982\u4f55\u6539\u53d8\u80cc\u666f\u989c\u8272"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074401\/4439f567-50b7-4895-a958-bf7d7d986757.webp\" alt=\"python \u5982\u4f55\u6539\u53d8\u80cc\u666f\u989c\u8272\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6539\u53d8\u80cc\u666f\u989c\u8272\uff0c\u4f8b\u5982\u4f7f\u7528\u7ec8\u7aef\u63a7\u5236\u5e8f\u5217\u3001GUI\u5e93\u5982Tkinter\u6216Pygame\u3001HTML\/CSS\u7b49\u65b9\u6cd5\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u7ec8\u7aef\u5e94\u7528\uff0c\u53ef\u4ee5\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217\u6765\u6539\u53d8\u80cc\u666f\u989c\u8272\uff1b\u5bf9\u4e8e\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0cTkinter\u548cPygame\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u754c\u9762\u8bbe\u8ba1\u9009\u9879\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u8fd9\u4e9b\u73af\u5883\u4e2d\u5b9e\u73b0\u80cc\u666f\u989c\u8272\u7684\u6539\u53d8\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217\u6539\u53d8\u7ec8\u7aef\u80cc\u666f\u989c\u8272<\/p>\n<\/p>\n<p><p>ANSI\u8f6c\u4e49\u5e8f\u5217\u662f\u4e00\u79cd\u5728\u7ec8\u7aef\u4e2d\u63a7\u5236\u6587\u672c\u683c\u5f0f\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7528\u6765\u6539\u53d8\u6587\u672c\u7684\u989c\u8272\u3001\u80cc\u666f\u4ee5\u53ca\u5176\u4ed6\u5c5e\u6027\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5370ANSI\u5e8f\u5217\u6765\u6539\u53d8\u7ec8\u7aef\u80cc\u666f\u7684\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def change_terminal_bg_color(color):<\/p>\n<p>    colors = {<\/p>\n<p>        &quot;black&quot;: &quot;\\033[40m&quot;,<\/p>\n<p>        &quot;red&quot;: &quot;\\033[41m&quot;,<\/p>\n<p>        &quot;green&quot;: &quot;\\033[42m&quot;,<\/p>\n<p>        &quot;yellow&quot;: &quot;\\033[43m&quot;,<\/p>\n<p>        &quot;blue&quot;: &quot;\\033[44m&quot;,<\/p>\n<p>        &quot;magenta&quot;: &quot;\\033[45m&quot;,<\/p>\n<p>        &quot;cyan&quot;: &quot;\\033[46m&quot;,<\/p>\n<p>        &quot;white&quot;: &quot;\\033[47m&quot;,<\/p>\n<p>    }<\/p>\n<p>    reset = &quot;\\033[0m&quot;<\/p>\n<p>    print(colors.get(color, reset) + &quot; &quot; * 50)<\/p>\n<p>    print(reset)<\/p>\n<h2><strong>\u793a\u4f8b\uff1a\u6539\u53d8\u80cc\u666f\u989c\u8272\u4e3a\u84dd\u8272<\/strong><\/h2>\n<p>change_terminal_bg_color(&quot;blue&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><br \/>\u5728\u7ec8\u7aef\u4e2d\uff0c\u4f7f\u7528ANSI\u8f6c\u4e49\u5e8f\u5217\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u6709\u6548\u7684\u65b9\u6cd5\u6765\u6539\u53d8\u80cc\u666f\u989c\u8272\u3002\u8fd9\u4e9b\u5e8f\u5217\u901a\u5e38\u4ee5<code>\\033[<\/code>\u5f00\u5934\uff0c\u540e\u8ddf\u989c\u8272\u4ee3\u7801\u3002\u7ec8\u7aef\u4f1a\u89e3\u91ca\u8fd9\u4e9b\u4ee3\u7801\u5e76\u6539\u53d8\u6587\u672c\u7684\u663e\u793a\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c<code>\\033[41m<\/code>\u7528\u4e8e\u5c06\u80cc\u666f\u989c\u8272\u53d8\u4e3a\u7ea2\u8272\u3002\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u65e0\u9700\u5b89\u88c5\u989d\u5916\u7684\u5e93\uff0c\u9002\u5408\u7b80\u5355\u7684\u6587\u672c\u754c\u9762\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Tkinter\u6539\u53d8\u7a97\u53e3\u80cc\u666f\u989c\u8272<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u521b\u5efa\u7a97\u53e3\u3001\u6309\u94ae\u3001\u6807\u7b7e\u7b49\u63a7\u4ef6\u7684\u529f\u80fd\u3002\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u63a7\u4ef6\u7684<code>bg<\/code>\u5c5e\u6027\u6765\u6539\u53d8\u5176\u80cc\u666f\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def create_window_with_bg(color):<\/p>\n<p>    window = tk.Tk()<\/p>\n<p>    window.title(&quot;Tkinter Background Color Example&quot;)<\/p>\n<p>    window.geometry(&quot;400x300&quot;)<\/p>\n<p>    window.configure(bg=color)<\/p>\n<p>    label = tk.Label(window, text=&quot;Background Color Changed&quot;, bg=color, fg=&quot;white&quot;)<\/p>\n<p>    label.pack(expand=True)<\/p>\n<p>    window.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<h2><strong>\u793a\u4f8b\uff1a\u521b\u5efa\u4e00\u4e2a\u80cc\u666f\u989c\u8272\u4e3a\u7eff\u8272\u7684\u7a97\u53e3<\/strong><\/h2>\n<p>create_window_with_bg(&quot;green&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><br \/>\u4f7f\u7528Tkinter\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u521b\u5efa\u5177\u6709\u4e0d\u540c\u80cc\u666f\u989c\u8272\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002\u901a\u8fc7<code>configure(bg=color)<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bbe\u7f6e\u7a97\u53e3\u7684\u80cc\u666f\u989c\u8272\u3002\u6b64\u5916\uff0cTkinter\u652f\u6301\u591a\u79cd\u989c\u8272\u540d\u79f0\u548c\u5341\u516d\u8fdb\u5236\u989c\u8272\u4ee3\u7801\uff0c\u4f7f\u5176\u5728\u8bbe\u8ba1\u5e94\u7528\u7a0b\u5e8f\u65f6\u66f4\u52a0\u7075\u6d3b\u548c\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Pygame\u6539\u53d8\u6e38\u620f\u7a97\u53e3\u80cc\u666f\u989c\u8272<\/p>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5236\u4f5c2D\u6e38\u620f\u7684Python\u5e93\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5904\u7406\u56fe\u5f62\u548c\u58f0\u97f3\u3002\u901a\u8fc7\u586b\u5145\u5c4f\u5e55\u8868\u9762\uff0c\u53ef\u4ee5\u6539\u53d8\u6e38\u620f\u7a97\u53e3\u7684\u80cc\u666f\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>def create_pygame_window_with_bg(color):<\/p>\n<p>    pygame.init()<\/p>\n<p>    screen = pygame.display.set_mode((800, 600))<\/p>\n<p>    pygame.display.set_caption(&quot;Pygame Background Color Example&quot;)<\/p>\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(pygame.Color(color))<\/p>\n<p>        pygame.display.flip()<\/p>\n<p>    pygame.quit()<\/p>\n<h2><strong>\u793a\u4f8b\uff1a\u521b\u5efa\u4e00\u4e2a\u80cc\u666f\u989c\u8272\u4e3a\u9752\u8272\u7684Pygame\u7a97\u53e3<\/strong><\/h2>\n<p>create_pygame_window_with_bg(&quot;cyan&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><br \/>Pygame\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u7528\u4e8e\u6e38\u620f\u5f00\u53d1\uff0c\u5176\u4e2d\u5305\u62ec\u8bbe\u7f6e\u7a97\u53e3\u80cc\u666f\u989c\u8272\u7684\u529f\u80fd\u3002\u901a\u8fc7<code>screen.fill()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u6307\u5b9a\u989c\u8272\u586b\u5145\u6574\u4e2a\u7a97\u53e3\u3002Pygame\u652f\u6301\u591a\u79cd\u989c\u8272\u8868\u793a\u65b9\u6cd5\uff0c\u5305\u62ec\u989c\u8272\u540d\u79f0\u548cRGB\u503c\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u8005\u53ef\u4ee5\u7075\u6d3b\u5730\u8bbe\u8ba1\u6e38\u620f\u754c\u9762\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528HTML\/CSS\u4e0ePython\u7684Flask\u6846\u67b6\u6539\u53d8\u7f51\u9875\u80cc\u666f\u989c\u8272<\/p>\n<\/p>\n<p><p>Flask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python\u7f51\u7edc\u6846\u67b6\uff0c\u5e38\u7528\u4e8e\u521b\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u3002\u5728Web\u5f00\u53d1\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7HTML\u548cCSS\u6765\u5b9a\u4e49\u7f51\u9875\u7684\u80cc\u666f\u989c\u8272\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, render_template_string<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/&#39;)<\/p>\n<p>def home():<\/p>\n<p>    html = &#39;&#39;&#39;<\/p>\n<p>    &lt;!DOCTYPE html&gt;<\/p>\n<p>    &lt;html lang=&quot;en&quot;&gt;<\/p>\n<p>    &lt;head&gt;<\/p>\n<p>        &lt;meta charset=&quot;UTF-8&quot;&gt;<\/p>\n<p>        &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<\/p>\n<p>        &lt;title&gt;Flask Background Color Example&lt;\/title&gt;<\/p>\n<p>        &lt;style&gt;<\/p>\n<p>            body {<\/p>\n<p>                background-color: lightcoral;<\/p>\n<p>                color: white;<\/p>\n<p>                text-align: center;<\/p>\n<p>                padding-top: 50px;<\/p>\n<p>            }<\/p>\n<p>        &lt;\/style&gt;<\/p>\n<p>    &lt;\/head&gt;<\/p>\n<p>    &lt;body&gt;<\/p>\n<p>        &lt;h1&gt;Background Color Changed using Flask&lt;\/h1&gt;<\/p>\n<p>    &lt;\/body&gt;<\/p>\n<p>    &lt;\/html&gt;<\/p>\n<p>    &#39;&#39;&#39;<\/p>\n<p>    return render_template_string(html)<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    app.run(debug=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><br \/>\u4f7f\u7528Flask\u6846\u67b6\u53ef\u4ee5\u5feb\u901f\u521b\u5efaWeb\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u7f51\u9875\u8bbe\u8ba1\u4e2d\uff0cCSS\u7528\u4e8e\u6837\u5f0f\u63a7\u5236\uff0c\u901a\u8fc7\u8bbe\u7f6e<code>background-color<\/code>\u5c5e\u6027\uff0c\u53ef\u4ee5\u8f7b\u677e\u6539\u53d8\u7f51\u9875\u7684\u80cc\u666f\u989c\u8272\u3002Flask\u5141\u8bb8\u5c06Python\u4e0eHTML\/CSS\u7ed3\u5408\u4f7f\u7528\uff0c\u4ece\u800c\u5728\u52a8\u6001Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7075\u6d3b\u5730\u7ba1\u7406\u6837\u5f0f\u548c\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u6539\u53d8\u80cc\u666f\u989c\u8272\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5e94\u7528\u7a0b\u5e8f\u7684\u7c7b\u578b\u548c\u4f7f\u7528\u573a\u666f\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u7ec8\u7aef\u5e94\u7528\uff0c\u53ef\u4ee5\u9009\u62e9ANSI\u8f6c\u4e49\u5e8f\u5217\uff1b\u5bf9\u4e8e\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0cTkinter\u548cPygame\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\uff1b\u5bf9\u4e8eWeb\u5f00\u53d1\uff0cFlask\u7ed3\u5408HTML\/CSS\u80fd\u591f\u8f7b\u677e\u5b9e\u73b0\u6837\u5f0f\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><p><strong>\u6ce8\u610f\uff1a<\/strong> \u5728\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u8003\u8651\u5230\u4e0d\u540c\u5e73\u53f0\u548c\u73af\u5883\u7684\u517c\u5bb9\u6027\u3002\u4f8b\u5982\uff0c\u67d0\u4e9b\u7ec8\u7aef\u53ef\u80fd\u4e0d\u652f\u6301ANSI\u8f6c\u4e49\u5e8f\u5217\uff0c\u6216\u8005\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u5bf9Tkinter\u548cPygame\u7684\u652f\u6301\u6709\u6240\u4e0d\u540c\u3002\u5728\u8fdb\u884cWeb\u5f00\u53d1\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u6240\u7528\u7684CSS\u6837\u5f0f\u5728\u6240\u6709\u76ee\u6807\u6d4f\u89c8\u5668\u4e2d\u90fd\u80fd\u6b63\u786e\u663e\u793a\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u5b66\u4e60\u548c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\u4e2d\u7075\u6d3b\u5730\u6539\u53d8\u80cc\u666f\u989c\u8272\uff0c\u4ece\u800c\u63d0\u9ad8\u7a0b\u5e8f\u7684\u7528\u6237\u4f53\u9a8c\u548c\u89c6\u89c9\u5438\u5f15\u529b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6539\u53d8\u56fe\u5f62\u754c\u9762\u7684\u80cc\u666f\u989c\u8272\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e93\u6765\u6539\u53d8\u80cc\u666f\u989c\u8272\u3002\u6bd4\u5982\uff0c\u4f7f\u7528Tkinter\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>bg<\/code>\u5c5e\u6027\u6765\u6539\u53d8\u7a97\u53e3\u6216\u63a7\u4ef6\u7684\u80cc\u666f\u989c\u8272\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import tkinter as tk\n\nroot = tk.Tk()\nroot.configure(bg=&#39;blue&#39;)  # \u8bbe\u7f6e\u7a97\u53e3\u80cc\u666f\u8272\u4e3a\u84dd\u8272\nroot.mainloop()\n<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u5176\u4ed6\u5e93\u5982PyQt\u6216Kivy\u4e5f\u63d0\u4f9b\u4e86\u7c7b\u4f3c\u7684\u65b9\u6cd5\u6765\u6539\u53d8\u80cc\u666f\u989c\u8272\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u6539\u53d8\u63a7\u5236\u53f0\u80cc\u666f\u989c\u8272\uff1f<\/strong><br \/>\u63a7\u5236\u53f0\u80cc\u666f\u989c\u8272\u7684\u6539\u53d8\u901a\u5e38\u4f9d\u8d56\u4e8e\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u6216\u547d\u4ee4\u3002\u5728Windows\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u7ed3\u5408<code>colorama<\/code>\u5e93\u6765\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\nfrom colorama import init, Back\n\ninit()  # \u521d\u59cb\u5316colorama\nprint(Back.GREEN + &#39;\u8fd9\u662f\u7eff\u8272\u80cc\u666f\u7684\u6587\u5b57&#39;)\n<\/code><\/pre>\n<p>\u5728Linux\u6216macOS\u7ec8\u7aef\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7ANSI\u8f6c\u4e49\u7801\u6765\u6539\u53d8\u80cc\u666f\u989c\u8272\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">print(&quot;\\033[42m\u8fd9\u662f\u7eff\u8272\u80cc\u666f\u7684\u6587\u5b57\\033[0m&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u4e0d\u540c\u7684\u7ec8\u7aef\u73af\u5883\u4e2d\u53ef\u80fd\u4f1a\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u6539\u53d8\u7f51\u9875\u80cc\u666f\u989c\u8272\uff1f<\/strong><br \/>\u5982\u679c\u60a8\u4f7f\u7528Python\u7684Flask\u6216Django\u7b49\u6846\u67b6\u5f00\u53d1\u7f51\u9875\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728HTML\u4e2d\u4f7f\u7528CSS\u6765\u8bbe\u7f6e\u80cc\u666f\u989c\u8272\u3002\u5728HTML\u6587\u4ef6\u7684<code>&lt;style&gt;<\/code>\u6807\u7b7e\u4e2d\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-html\">&lt;style&gt;\n    body {\n        background-color: lightblue;  \/* \u8bbe\u7f6e\u7f51\u9875\u80cc\u666f\u8272\u4e3a\u6d45\u84dd\u8272 *\/\n    }\n&lt;\/style&gt;\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u8f7b\u677e\u5730\u6539\u53d8\u7f51\u9875\u7684\u80cc\u666f\u989c\u8272\uff0c\u589e\u5f3a\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6539\u53d8\u80cc\u666f\u989c\u8272\uff0c\u4f8b\u5982\u4f7f\u7528\u7ec8\u7aef\u63a7\u5236\u5e8f\u5217\u3001GUI\u5e93\u5982Tkinter\u6216Pygame\u3001 [&hellip;]","protected":false},"author":3,"featured_media":999334,"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\/999328"}],"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=999328"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999328\/revisions"}],"predecessor-version":[{"id":999336,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999328\/revisions\/999336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/999334"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=999328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=999328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=999328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}