{"id":933199,"date":"2024-12-26T18:11:58","date_gmt":"2024-12-26T10:11:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/933199.html"},"modified":"2024-12-26T18:12:01","modified_gmt":"2024-12-26T10:12:01","slug":"python%e5%ad%97%e4%bd%93%e5%a6%82%e4%bd%95%e8%b0%83","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/933199.html","title":{"rendered":"python\u5b57\u4f53\u5982\u4f55\u8c03"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070724\/fba064f9-b945-48bd-9ae0-2670e3900bdb.webp\" alt=\"python\u5b57\u4f53\u5982\u4f55\u8c03\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8c03\u6574\u5b57\u4f53\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528Tkinter\u5e93\u3001Pygame\u5e93\u3001Matplotlib\u5e93\u7b49\u3002\u8fd9\u4e9b\u5e93\u5206\u522b\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u5982\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3001\u6e38\u620f\u5f00\u53d1\u548c\u6570\u636e\u53ef\u89c6\u5316\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c<strong>Tkinter\u5e38\u7528\u4e8e\u521b\u5efa\u684c\u9762\u5e94\u7528\uff0c\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u63a5\u53e3\u6765\u8bbe\u7f6e\u5b57\u4f53\u5c5e\u6027<\/strong>\uff0c\u800cPygame\u9002\u5408\u6e38\u620f\u6216\u591a\u5a92\u4f53\u5e94\u7528\u3002Matplotlib\u5219\u5e38\u7528\u4e8e\u7ed8\u56fe\u548c\u6570\u636e\u53ef\u89c6\u5316\uff0c\u652f\u6301\u5728\u56fe\u8868\u4e2d\u81ea\u5b9a\u4e49\u5b57\u4f53\u6837\u5f0f\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u8c03\u6574\u5b57\u4f53\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5728TKINTER\u4e2d\u8c03\u6574\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u5e38\u7528\u4e8e\u521b\u5efa\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002\u5b83\u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u5b57\u4f53\u8bbe\u7f6e\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>1.1 \u4f7f\u7528Tkinter\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u5728Tkinter\u4e2d\uff0c\u5b57\u4f53\u8bbe\u7f6e\u901a\u8fc7<code>font<\/code>\u5c5e\u6027\u5b9e\u73b0\u3002\u53ef\u4ee5\u4f7f\u7528\u5143\u7ec4\u6216<code>tkFont<\/code>\u6a21\u5757\u6765\u5b9a\u4e49\u5b57\u4f53\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import font<\/p>\n<p>root = tk.Tk()<\/p>\n<h2><strong>\u4f7f\u7528\u5143\u7ec4\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>label1 = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=(&quot;Arial&quot;, 16))<\/p>\n<p>label1.pack()<\/p>\n<h2><strong>\u4f7f\u7528tkFont\u6a21\u5757\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>custom_font = font.Font(family=&quot;Helvetica&quot;, size=20, weight=&quot;bold&quot;)<\/p>\n<p>label2 = tk.Label(root, text=&quot;Custom Font&quot;, font=custom_font)<\/p>\n<p>label2.pack()<\/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\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<strong>\u4f7f\u7528\u4e86\u4e24\u79cd\u65b9\u5f0f\u6765\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f<\/strong>\uff1a\u4e00\u79cd\u662f\u76f4\u63a5\u7528\u5143\u7ec4\u6307\u5b9a\u5b57\u4f53\u7684\u540d\u79f0\u548c\u5927\u5c0f\uff0c\u53e6\u4e00\u79cd\u662f\u901a\u8fc7<code>font.Font<\/code>\u7c7b\u521b\u5efa\u81ea\u5b9a\u4e49\u5b57\u4f53\u3002\u4f7f\u7528<code>font.Font<\/code>\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u8c03\u6574\u5b57\u4f53\u7684\u5404\u79cd\u5c5e\u6027\uff0c\u5982<code>weight<\/code>\uff08\u7c97\u4f53\uff09\u548c<code>slant<\/code>\uff08\u659c\u4f53\uff09\u3002<\/p>\n<\/p>\n<p><h3>1.2 \u5b57\u4f53\u5c5e\u6027\u8be6\u89e3<\/h3>\n<\/p>\n<ul>\n<li><strong>family<\/strong>\uff1a\u6307\u5b9a\u5b57\u4f53\u7684\u540d\u79f0\uff0c\u5982\u201cArial\u201d\u3001\u201cHelvetica\u201d\u7b49\u3002<\/li>\n<li><strong>size<\/strong>\uff1a\u5b57\u4f53\u5927\u5c0f\uff0c\u53ef\u4ee5\u662f\u6b63\u6570\uff08\u8868\u793a\u70b9\u5927\u5c0f\uff09\u6216\u8d1f\u6570\uff08\u50cf\u7d20\u5927\u5c0f\uff09\u3002<\/li>\n<li><strong>weight<\/strong>\uff1a\u5b57\u4f53\u7c97\u7ec6\u7a0b\u5ea6\uff0c\u5982\u201cnormal\u201d\u548c\u201cbold\u201d\u3002<\/li>\n<li><strong>slant<\/strong>\uff1a\u5b57\u4f53\u503e\u659c\u7a0b\u5ea6\uff0c\u5982\u201croman\u201d\u548c\u201citalic\u201d\u3002<\/li>\n<li><strong>underline<\/strong>\uff1a\u662f\u5426\u52a0\u4e0b\u5212\u7ebf\uff0c\u5e03\u5c14\u503c\u3002<\/li>\n<li><strong>overstrike<\/strong>\uff1a\u662f\u5426\u52a0\u5220\u9664\u7ebf\uff0c\u5e03\u5c14\u503c\u3002<\/li>\n<\/ul>\n<p><p>\u8fd9\u4e9b\u5c5e\u6027\u53ef\u4ee5\u7ec4\u5408\u4f7f\u7528\uff0c\u4ee5\u8fbe\u5230\u6240\u9700\u7684\u5b57\u4f53\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5728PYGAME\u4e2d\u8c03\u6574\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u7528\u4e8e\u5f00\u53d1\u591a\u5a92\u4f53\u5e94\u7528\u7a0b\u5e8f\u7684\u8de8\u5e73\u53f0Python\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6e38\u620f\u5f00\u53d1\u3002Pygame\u4e2d\u4e5f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5b57\u4f53\u5904\u7406\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>2.1 \u4f7f\u7528Pygame\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>Pygame\u901a\u8fc7<code>pygame.font.Font<\/code>\u7c7b\u6765\u7ba1\u7406\u5b57\u4f53\u3002\u4f7f\u7528\u6b64\u7c7b\u53ef\u4ee5\u52a0\u8f7d\u7cfb\u7edf\u5b57\u4f53\u6216\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>pygame.init()<\/p>\n<h2><strong>\u8bbe\u7f6e\u5c4f\u5e55<\/strong><\/h2>\n<p>screen = pygame.display.set_mode((640, 480))<\/p>\n<p>pygame.display.set_caption(&quot;Pygame Font Example&quot;)<\/p>\n<h2><strong>\u52a0\u8f7d\u7cfb\u7edf\u5b57\u4f53<\/strong><\/h2>\n<p>font = pygame.font.SysFont(&quot;Arial&quot;, 48)<\/p>\n<h2><strong>\u6e32\u67d3\u6587\u672c<\/strong><\/h2>\n<p>text_surface = font.render(&quot;Hello, Pygame!&quot;, True, (255, 255, 255))<\/p>\n<h2><strong>\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u6587\u672c<\/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((0, 0, 0))<\/p>\n<p>    screen.blit(text_surface, (100, 200))<\/p>\n<p>    pygame.display.flip()<\/p>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c<strong>\u901a\u8fc7<code>pygame.font.SysFont<\/code>\u52a0\u8f7d\u7cfb\u7edf\u5b57\u4f53<\/strong>\uff0c\u5e76\u4f7f\u7528<code>render<\/code>\u65b9\u6cd5\u5c06\u6587\u672c\u6e32\u67d3\u4e3a\u56fe\u50cf\uff0c\u7136\u540e\u663e\u793a\u5728\u5c4f\u5e55\u4e0a\u3002<code>render<\/code>\u65b9\u6cd5\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u8868\u793a\u662f\u5426\u5f00\u542f\u6297\u952f\u9f7f\uff0c\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3a\u6587\u672c\u989c\u8272\u3002<\/p>\n<\/p>\n<p><h3>2.2 \u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u7cfb\u7edf\u5b57\u4f53\uff0cPygame\u8fd8\u652f\u6301\u52a0\u8f7d\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\uff08\u5982TTF\u683c\u5f0f\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">font = pygame.font.Font(&quot;path\/to\/font.ttf&quot;, 48)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7<code>pygame.font.Font<\/code>\u7c7b\u52a0\u8f7d\u5b57\u4f53\u6587\u4ef6\uff0c\u53ea\u9700\u6307\u5b9a\u6587\u4ef6\u8def\u5f84\u548c\u5b57\u4f53\u5927\u5c0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5728\u6e38\u620f\u4e2d\u4f7f\u7528\u66f4\u4e30\u5bcc\u7684\u5b57\u4f53\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5728MATPLOTLIB\u4e2d\u8c03\u6574\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Matplotlib\u662f\u4e00\u4e2a\u7528\u4e8e\u7ed8\u5236\u56fe\u5f62\u7684Python\u5e93\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u4e2d\u3002\u5728\u7ed8\u56fe\u65f6\uff0c\u5e38\u9700\u8981\u81ea\u5b9a\u4e49\u5b57\u4f53\u4ee5\u63d0\u9ad8\u56fe\u8868\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><h3>3.1 \u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>Matplotlib\u5141\u8bb8\u901a\u8fc7<code>rcParams<\/code>\u5168\u5c40\u8bbe\u7f6e\u5b57\u4f53\uff0c\u5f71\u54cd\u6240\u6709\u7ed8\u56fe\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53<\/strong><\/h2>\n<p>plt.rcParams[&quot;font.family&quot;] = &quot;Arial&quot;<\/p>\n<p>plt.rcParams[&quot;font.size&quot;] = 12<\/p>\n<h2><strong>\u7ed8\u5236\u7b80\u5355\u56fe\u5f62<\/strong><\/h2>\n<p>plt.plot([1, 2, 3], [4, 5, 6])<\/p>\n<p>plt.title(&quot;Sample Plot&quot;)<\/p>\n<p>plt.xlabel(&quot;X Axis&quot;)<\/p>\n<p>plt.ylabel(&quot;Y Axis&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0c\u901a\u8fc7<code>rcParams<\/code>\u8bbe\u7f6e\u4e86\u5168\u5c40\u5b57\u4f53\u65cf\u548c\u5927\u5c0f\u3002\u8fd9\u6837\uff0c\u6240\u6709\u56fe\u8868\u7684\u6587\u672c\u90fd\u4f1a\u4f7f\u7528\u8be5\u5b57\u4f53\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><h3>3.2 \u5355\u72ec\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u5168\u5c40\u8bbe\u7f6e\uff0cMatplotlib\u8fd8\u5141\u8bb8\u5728\u7ed8\u56fe\u65f6\u5355\u72ec\u8bbe\u7f6e\u5b57\u4f53\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">plt.title(&quot;Custom Font Title&quot;, fontdict={&quot;fontsize&quot;: 20, &quot;fontweight&quot;: &quot;bold&quot;})<\/p>\n<p>plt.xlabel(&quot;X Axis&quot;, fontsize=14, fontstyle=&quot;italic&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u901a\u8fc7<code>fontdict<\/code>\u53c2\u6570\u6216\u76f4\u63a5\u5728\u51fd\u6570\u4e2d\u6307\u5b9a\u5b57\u4f53\u5c5e\u6027\uff0c\u5b9e\u73b0\u5bf9\u7279\u5b9a\u6587\u672c\u5143\u7d20\u7684\u5b57\u4f53\u5b9a\u5236\u3002\u8fd9\u6837\u53ef\u4ee5\u5728\u540c\u4e00\u56fe\u8868\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684\u5b57\u4f53\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u5b9e\u8df5\u5efa\u8bae<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8c03\u6574\u5b57\u4f53\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u52bf\u3002\u5728\u9009\u62e9\u5b57\u4f53\u8c03\u6574\u65b9\u5f0f\u65f6\uff0c\u5e94\u6839\u636e\u5177\u4f53\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>Tkinter\u9002\u7528\u4e8e\u7b80\u5355\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff0c\u5176\u5b57\u4f53\u8bbe\u7f6e\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/li>\n<li><strong>Pygame\u5219\u9002\u5408\u6e38\u620f\u548c\u591a\u5a92\u4f53\u5e94\u7528\u5f00\u53d1<\/strong>\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5b57\u4f53\u652f\u6301\uff0c\u5305\u62ec\u7cfb\u7edf\u5b57\u4f53\u548c\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\u3002<\/li>\n<li><strong>Matplotlib\u5219\u662f\u6570\u636e\u53ef\u89c6\u5316\u7684\u5229\u5668<\/strong>\uff0c\u901a\u8fc7\u5168\u5c40\u548c\u5c40\u90e8\u8bbe\u7f6e\uff0c\u5b9e\u73b0\u7075\u6d3b\u7684\u5b57\u4f53\u63a7\u5236\u3002<\/li>\n<\/ul>\n<p><p>\u5728\u5b9e\u8df5\u4e2d\uff0c\u5f00\u53d1\u8005\u5e94\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u5e76\u5145\u5206\u5229\u7528\u5176\u63d0\u4f9b\u7684\u5b57\u4f53\u8bbe\u7f6e\u529f\u80fd\uff0c\u4ee5\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u6237\u4f53\u9a8c\u548c\u89c6\u89c9\u6548\u679c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u66f4\u6539\u6587\u672c\u5b57\u4f53\u6837\u5f0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u66f4\u6539\u5b57\u4f53\u6837\u5f0f\u901a\u5e38\u6d89\u53ca\u4f7f\u7528\u56fe\u5f62\u754c\u9762\u5e93\uff0c\u5982Tkinter\u3001Pygame\u6216Matplotlib\u3002\u4f8b\u5982\uff0c\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>font<\/code>\u6a21\u5757\u6765\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\u5e76\u5c06\u5176\u5e94\u7528\u4e8e\u6807\u7b7e\u3001\u6309\u94ae\u6216\u6587\u672c\u6846\u7b49\u63a7\u4ef6\u6765\u5b9e\u73b0\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528Matplotlib\u65f6\uff0c\u5982\u4f55\u8bbe\u7f6e\u5b57\u4f53\u4ee5\u4fbf\u66f4\u597d\u5730\u663e\u793a\u56fe\u8868\uff1f<\/strong><br \/>Matplotlib\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u5f0f\u6765\u8bbe\u7f6e\u5b57\u4f53\u3002\u53ef\u4ee5\u901a\u8fc7<code>rcParams<\/code>\u8bbe\u7f6e\u5168\u5c40\u5b57\u4f53\uff0c\u6216\u8005\u5728\u7ed8\u56fe\u65f6\u4f7f\u7528<code>fontdict<\/code>\u53c2\u6570\u6765\u4e3a\u7279\u5b9a\u6587\u672c\u5bf9\u8c61\u8bbe\u7f6e\u5b57\u4f53\u3002\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\u80fd\u591f\u8ba9\u56fe\u8868\u66f4\u7b26\u5408\u7528\u6237\u7684\u89c6\u89c9\u9700\u6c42\uff0c\u786e\u4fdd\u4fe1\u606f\u4f20\u8fbe\u7684\u6e05\u6670\u5ea6\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1f\u5982\u679c\u53ef\u4ee5\uff0c\u5982\u4f55\u5b9e\u73b0\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u652f\u6301\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u3002\u4ee5Pygame\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u901a\u8fc7<code>pygame.font.Font()<\/code>\u65b9\u6cd5\u52a0\u8f7d.ttf\u6216.otf\u683c\u5f0f\u7684\u5b57\u4f53\u6587\u4ef6\u3002\u786e\u4fdd\u5b57\u4f53\u6587\u4ef6\u4e0e\u4ee3\u7801\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\uff0c\u6216\u63d0\u4f9b\u6b63\u786e\u7684\u6587\u4ef6\u8def\u5f84\u3002\u52a0\u8f7d\u540e\uff0c\u53ef\u4ee5\u5728\u6e38\u620f\u6216\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528\u8be5\u5b57\u4f53\u8fdb\u884c\u6587\u672c\u6e32\u67d3\uff0c\u589e\u5f3a\u89c6\u89c9\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8c03\u6574\u5b57\u4f53\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528Tkinter\u5e93\u3001Pygame\u5e93\u3001Matplotlib\u5e93\u7b49\u3002\u8fd9\u4e9b [&hellip;]","protected":false},"author":3,"featured_media":933202,"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\/933199"}],"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=933199"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/933199\/revisions"}],"predecessor-version":[{"id":933206,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/933199\/revisions\/933206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/933202"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=933199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=933199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=933199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}