{"id":973723,"date":"2024-12-27T05:59:15","date_gmt":"2024-12-26T21:59:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/973723.html"},"modified":"2024-12-27T05:59:18","modified_gmt":"2024-12-26T21:59:18","slug":"python%e8%bf%90%e8%a1%8c%e5%ad%97%e4%bd%93%e5%a6%82%e4%bd%95%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/973723.html","title":{"rendered":"python\u8fd0\u884c\u5b57\u4f53\u5982\u4f55\u8bbe\u7f6e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195751\/ff7bec4f-f691-42c4-bb1c-909a5d554d4e.webp\" alt=\"python\u8fd0\u884c\u5b57\u4f53\u5982\u4f55\u8bbe\u7f6e\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a<br \/>\u5728Python\u4e2d\uff0c\u8bbe\u7f6e\u8fd0\u884c\u5b57\u4f53\u4e3b\u8981\u6d89\u53ca\u5230<strong>\u8c03\u6574\u7ec8\u7aef\u6216IDE\u7684\u5b57\u4f53\u3001\u4f7f\u7528\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e93\uff08\u5982Tkinter\u3001Pygame\uff09\u8bbe\u7f6e\u5b57\u4f53\u3001\u901a\u8fc7Matplotlib\u7b49\u7ed8\u56fe\u5e93\u8bbe\u7f6e\u5b57\u4f53<\/strong>\u3002\u5176\u4e2d\uff0c\u8c03\u6574\u7ec8\u7aef\u6216IDE\u7684\u5b57\u4f53\u662f\u6700\u57fa\u7840\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u7ec8\u7aef\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08\u5982PyCharm\u3001VSCode\uff09\u7684\u663e\u793a\u9009\u9879\u6765\u5b9e\u73b0\u3002\u5728\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e94\u7528\u4e2d\uff0c\u8bbe\u7f6e\u5b57\u4f53\u5219\u9700\u8981\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>font<\/code>\u6a21\u5757\u6765\u8bbe\u7f6e\u6807\u7b7e\u3001\u6309\u94ae\u7b49\u63a7\u4ef6\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002\u5728Pygame\u4e2d\uff0c\u901a\u8fc7<code>pygame.font.Font<\/code>\u51fd\u6570\u6765\u52a0\u8f7d\u548c\u8bbe\u7f6e\u5b57\u4f53\u3002\u800c\u5728\u6570\u636e\u53ef\u89c6\u5316\u5de5\u5177Matplotlib\u4e2d\uff0c\u901a\u8fc7<code>rcParams<\/code>\u6216<code>font_manager<\/code>\u6a21\u5757\u6765\u8fdb\u884c\u5b57\u4f53\u914d\u7f6e\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5728\u7ec8\u7aef\u6216IDE\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u8fdb\u884c\u5f00\u53d1\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u5f00\u53d1\u6548\u7387\u3002\u4e0d\u540c\u7684\u7ec8\u7aef\u548cIDE\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\u8bbe\u7f6e\u9009\u9879\u3002<\/p>\n<\/p>\n<p><h3>1. \u5728\u7ec8\u7aef\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u5728\u5927\u591a\u6570\u7ec8\u7aef\uff08\u5982Windows\u547d\u4ee4\u63d0\u793a\u7b26\u3001macOS\u7ec8\u7aef\u3001Linux\u7ec8\u7aef\uff09\u4e2d\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u7684\u8bbe\u7f6e\u9009\u9879\u66f4\u6539\u663e\u793a\u5b57\u4f53\u3002\u901a\u5e38\u53ef\u4ee5\u5728\u8bbe\u7f6e\u83dc\u5355\u4e2d\u627e\u5230\u201c\u5b57\u4f53\u201d\u6216\u201c\u5916\u89c2\u201d\u9009\u9879\uff0c\u5e76\u9009\u62e9\u559c\u6b22\u7684\u5b57\u4f53\u548c\u5b57\u53f7\u3002<\/p>\n<\/p>\n<p><h3>2. \u5728IDE\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u6d41\u884c\u7684Python IDE\u5982PyCharm\u548cVSCode\u90fd\u63d0\u4f9b\u4e86\u8be6\u7ec6\u7684\u5b57\u4f53\u8bbe\u7f6e\u9009\u9879\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>PyCharm<\/strong>\uff1a\u6253\u5f00PyCharm\uff0c\u8fdb\u5165\u201cFile\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201cSettings\u201d\u9009\u9879\u3002\u5728\u201cEditor\u201d\u4e0b\uff0c\u9009\u62e9\u201cFont\u201d\u53ef\u4ee5\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u548c\u5927\u5c0f\u3002<\/li>\n<li><strong>VSCode<\/strong>\uff1a\u5728VSCode\u4e2d\uff0c\u6253\u5f00\u201cSettings\u201d\u9762\u677f\uff0c\u641c\u7d22\u201cfont\u201d\u5173\u952e\u8bcd\u3002\u5728\u201cEditor: Font Family\u201d\u548c\u201cEditor: Font Size\u201d\u4e2d\u8fdb\u884c\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u5728Tkinter\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u63a7\u4ef6\u4f9b\u7528\u6237\u4f7f\u7528\u3002\u8bbe\u7f6e\u8fd9\u4e9b\u63a7\u4ef6\u7684\u5b57\u4f53\u53ef\u4ee5\u901a\u8fc7<code>font<\/code>\u6a21\u5757\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528<code>font<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p>\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>font<\/code>\u6a21\u5757\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\uff0c\u5e76\u5e94\u7528\u5230\u63a7\u4ef6\u4e0a\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/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<p>my_font = font.Font(family=&#39;Helvetica&#39;, size=12, weight=&#39;bold&#39;)<\/p>\n<p>label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=my_font)<\/p>\n<p>label.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><h3>2. \u5b57\u4f53\u5c5e\u6027\u8c03\u6574<\/h3>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u6307\u5b9a\u591a\u79cd\u5c5e\u6027\uff0c\u5982\u5b57\u4f53\u5bb6\u65cf\uff08<code>family<\/code>\uff09\u3001\u5b57\u4f53\u5927\u5c0f\uff08<code>size<\/code>\uff09\u3001\u5b57\u4f53\u6743\u91cd\uff08<code>weight<\/code>\uff09\u548c\u659c\u4f53\uff08<code>slant<\/code>\uff09\u7b49\u3002\u901a\u8fc7\u8c03\u6574\u8fd9\u4e9b\u5c5e\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u540c\u7684\u5b57\u4f53\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5728Pygame\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Pygame\u662f\u4e00\u4e2a\u6d41\u884c\u76842D\u6e38\u620f\u5f00\u53d1\u5e93\uff0c\u652f\u6301\u4e30\u5bcc\u7684\u5b57\u4f53\u8bbe\u7f6e\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h3>1. \u52a0\u8f7d\u548c\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u5728Pygame\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pygame.font.Font<\/code>\u51fd\u6570\u52a0\u8f7d\u5b57\u4f53\u6587\u4ef6\uff0c\u7136\u540e\u5e94\u7528\u5230\u6587\u672c\u6e32\u67d3\u4e2d\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((640, 480))<\/p>\n<p>font = pygame.font.Font(&#39;freesansbold.ttf&#39;, 32)<\/p>\n<p>text = font.render(&#39;Hello, Pygame!&#39;, True, (255, 255, 255))<\/p>\n<p>screen.blit(text, (100, 100))<\/p>\n<p>pygame.display.flip()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u5b57\u4f53\u6587\u4ef6\u4e0e\u5c5e\u6027<\/h3>\n<\/p>\n<p><p>Pygame\u652f\u6301\u591a\u79cd\u5b57\u4f53\u6587\u4ef6\u683c\u5f0f\uff08\u5982TTF\uff09\uff0c\u7528\u6237\u53ef\u4ee5\u4e0b\u8f7d\u5e76\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u6587\u4ef6\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9a\u6587\u672c\u7684\u989c\u8272\u3001\u80cc\u666f\u8272\u548c\u53cd\u952f\u9f7f\u7b49\u5c5e\u6027\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5728Matplotlib\u4e2d\u8bbe\u7f6e\u5b57\u4f53<\/p>\n<\/p>\n<p><p>Matplotlib\u662fPython\u5f3a\u5927\u7684\u7ed8\u56fe\u5e93\uff0c\u5e7f\u6cdb\u7528\u4e8e\u6570\u636e\u53ef\u89c6\u5316\u3002\u5176\u5b57\u4f53\u8bbe\u7f6e\u529f\u80fd\u5f3a\u5927\u4e14\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><h3>1. \u4f7f\u7528<code>rcParams<\/code>\u8bbe\u7f6e\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>Matplotlib\u7684<code>rcParams<\/code>\u662f\u4e00\u4e2a\u5168\u5c40\u914d\u7f6e\u5b57\u5178\uff0c\u5141\u8bb8\u7528\u6237\u8bbe\u7f6e\u9ed8\u8ba4\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<p>plt.rcParams[&#39;font.family&#39;] = &#39;serif&#39;<\/p>\n<p>plt.rcParams[&#39;font.size&#39;] = 12<\/p>\n<p>plt.plot([1, 2, 3], [4, 5, 6])<\/p>\n<p>plt.title(&#39;Example Plot&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2. \u4f7f\u7528<code>font_manager<\/code>\u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>font_manager<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u5b57\u4f53\u7ba1\u7406\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u52a0\u8f7d\u548c\u914d\u7f6e\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from matplotlib import font_manager as fm<\/p>\n<p>prop = fm.FontProperties(fname=&#39;path\/to\/font.ttf&#39;, size=14)<\/p>\n<p>plt.title(&#39;Custom Font Example&#39;, fontproperties=prop)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5b57\u4f53\u9009\u62e9\u548c\u4f18\u5316\u5efa\u8bae<\/p>\n<\/p>\n<p><p>\u5728Python\u5e94\u7528\u4e2d\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\uff0c\u4e0d\u4ec5\u5f71\u54cd\u89c6\u89c9\u6548\u679c\uff0c\u8fd8\u4e0e\u7528\u6237\u4f53\u9a8c\u5bc6\u5207\u76f8\u5173\u3002<\/p>\n<\/p>\n<p><h3>1. \u5e38\u7528\u5b57\u4f53\u63a8\u8350<\/h3>\n<\/p>\n<ul>\n<li><strong>\u4ee3\u7801\u7f16\u8f91<\/strong>\uff1a\u63a8\u8350\u4f7f\u7528\u7b49\u5bbd\u5b57\u4f53\uff0c\u5982Courier\u3001Consolas\u3001Fira Code\uff0c\u4ee5\u4fdd\u6301\u4ee3\u7801\u5bf9\u9f50\u3002<\/li>\n<li><strong>\u56fe\u5f62\u754c\u9762<\/strong>\uff1a\u9009\u62e9\u9002\u5408UI\u8bbe\u8ba1\u7684\u5b57\u4f53\uff0c\u5982Helvetica\u3001Arial\uff0c\u786e\u4fdd\u6587\u672c\u6e05\u6670\u6613\u8bfb\u3002<\/li>\n<li><strong>\u6570\u636e\u53ef\u89c6\u5316<\/strong>\uff1a\u4f7f\u7528\u6613\u4e8e\u9605\u8bfb\u7684\u5b57\u4f53\uff0c\u5982Times New Roman\u3001Georgia\uff0c\u4ee5\u4fbf\u4e8e\u56fe\u8868\u89e3\u8bfb\u3002<\/li>\n<\/ul>\n<p><h3>2. \u5b57\u4f53\u4f18\u5316\u5efa\u8bae<\/h3>\n<\/p>\n<ul>\n<li><strong>\u5bf9\u6bd4\u4e0e\u5c42\u6b21<\/strong>\uff1a\u901a\u8fc7\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3001\u989c\u8272\u548c\u6837\u5f0f\uff0c\u589e\u5f3a\u6587\u672c\u7684\u5c42\u6b21\u611f\u548c\u5bf9\u6bd4\u5ea6\u3002<\/li>\n<li><strong>\u53ef\u8bbf\u95ee\u6027<\/strong>\uff1a\u786e\u4fdd\u5b57\u4f53\u5927\u5c0f\u9002\u4e2d\uff0c\u907f\u514d\u8fc7\u5c0f\u7684\u5b57\u4f53\u5f71\u54cd\u7528\u6237\u9605\u8bfb\u3002<\/li>\n<li><strong>\u4e00\u81f4\u6027<\/strong>\uff1a\u5728\u5e94\u7528\u4e2d\u4fdd\u6301\u5b57\u4f53\u6837\u5f0f\u7684\u4e00\u81f4\u6027\uff0c\u63d0\u9ad8\u6574\u4f53\u7684\u4e13\u4e1a\u611f\u548c\u7f8e\u89c2\u5ea6\u3002<\/li>\n<\/ul>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u4e86\u89e3\u5e76\u638c\u63e1Python\u4e2d\u5b57\u4f53\u8bbe\u7f6e\u7684\u65b9\u6cd5\uff0c\u4e0d\u4ec5\u80fd\u591f\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u8fd8\u80fd\u589e\u5f3a\u5e94\u7528\u7a0b\u5e8f\u7684\u7528\u6237\u4f53\u9a8c\u3002\u65e0\u8bba\u662f\u5728\u7ec8\u7aef\u3001IDE\u4e2d\u8fdb\u884c\u5f00\u53d1\uff0c\u8fd8\u662f\u5728GUI\u3001\u6e38\u620f\u5f00\u53d1\u53ca\u6570\u636e\u53ef\u89c6\u5316\u4e2d\uff0c\u7075\u6d3b\u8fd0\u7528\u5b57\u4f53\u8bbe\u7f6e\u6280\u672f\u90fd\u662f\u63d0\u5347\u5e94\u7528\u54c1\u8d28\u7684\u91cd\u8981\u624b\u6bb5\u3002\u901a\u8fc7\u672c\u7bc7\u6587\u7ae0\u7684\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u719f\u7ec3\u5730\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u8bbe\u7f6e\u548c\u4f18\u5316\u5b57\u4f53\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5b9e\u73b0\u9879\u76ee\u76ee\u6807\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u7279\u5b9a\u5b57\u4f53\u4ee5\u8fdb\u884c\u56fe\u5f62\u7ed8\u5236\uff1f<\/strong><br \/>\u5728Python\u4e2d\u4f7f\u7528\u56fe\u5f62\u5e93\uff08\u5982Matplotlib\uff09\u7ed8\u5236\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u5b57\u4f53\u5c5e\u6027\u6765\u6539\u53d8\u6587\u672c\u7684\u5916\u89c2\u3002\u4f7f\u7528<code>matplotlib.rcParams<\/code>\u53ef\u4ee5\u5168\u5c40\u8bbe\u7f6e\u5b57\u4f53\uff0c\u5982<code>plt.rcParams[&#39;font.family&#39;] = &#39;serif&#39;<\/code>\uff0c\u6216\u8005\u5728\u7ed8\u56fe\u65f6\u901a\u8fc7<code>fontdict<\/code>\u53c2\u6570\u6765\u8bbe\u7f6e\u7279\u5b9a\u5b57\u4f53\u3002\u4f8b\u5982\uff0c<code>plt.text(x, y, &#39;\u6587\u672c&#39;, fontdict={&#39;family&#39;: &#39;sans-serif&#39;, &#39;size&#39;: 12})<\/code>\u53ef\u4ee5\u5b9e\u73b0\u66f4\u7ec6\u81f4\u7684\u63a7\u5236\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b57\u4f53\u517c\u5bb9\u6027\uff1f<\/strong><br \/>\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u53ef\u80fd\u4f1a\u6709\u4e0d\u540c\u7684\u5b57\u4f53\u5e93\uff0c\u56e0\u6b64\u5728\u8de8\u5e73\u53f0\u5f00\u53d1\u65f6\uff0c\u5efa\u8bae\u4f7f\u7528\u53ef\u7528\u7684\u901a\u7528\u5b57\u4f53\uff0c\u5982Arial\u3001Courier\u7b49\u3002\u5728\u4ee3\u7801\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>matplotlib.font_manager.findSystemFonts()<\/code>\u6765\u68c0\u67e5\u7cfb\u7edf\u4e2d\u53ef\u7528\u7684\u5b57\u4f53\uff0c\u5e76\u786e\u4fdd\u6240\u9009\u5b57\u4f53\u5728\u76ee\u6807\u7cfb\u7edf\u4e0a\u662f\u53ef\u7528\u7684\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u7684GUI\u5e94\u7528\u4e2d\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Tkinter\u7b49GUI\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>font<\/code>\u6a21\u5757\u8bbe\u7f6e\u5b57\u4f53\u6837\u5f0f\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>tkFont.Font(family=&quot;Helvetica&quot;, size=12, weight=&quot;bold&quot;)<\/code>\u6765\u5b9a\u4e49\u5b57\u4f53\u6837\u5f0f\uff0c\u5e76\u5728\u521b\u5efa\u6807\u7b7e\u6216\u6309\u94ae\u65f6\u5e94\u7528\u8be5\u6837\u5f0f\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u524d\u5bfc\u5165\u76f8\u5e94\u7684\u6a21\u5757\uff0c\u5982<code>from tkinter import font as tkFont<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u5728Python\u4e2d\uff0c\u8bbe\u7f6e\u8fd0\u884c\u5b57\u4f53\u4e3b\u8981\u6d89\u53ca\u5230\u8c03\u6574\u7ec8\u7aef\u6216IDE\u7684\u5b57\u4f53\u3001\u4f7f\u7528\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e93\uff08\u5982Tkinter [&hellip;]","protected":false},"author":3,"featured_media":973731,"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\/973723"}],"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=973723"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973723\/revisions"}],"predecessor-version":[{"id":973735,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973723\/revisions\/973735"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/973731"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=973723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=973723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=973723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}