{"id":1094546,"date":"2025-01-08T14:42:05","date_gmt":"2025-01-08T06:42:05","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1094546.html"},"modified":"2025-01-08T14:42:07","modified_gmt":"2025-01-08T06:42:07","slug":"python%e5%a6%82%e4%bd%95%e5%af%b9%e5%bd%93%e5%89%8dtk%e7%aa%97%e5%8f%a3%e5%ad%97%e4%bd%93%e8%ae%be%e7%bd%ae-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1094546.html","title":{"rendered":"python\u5982\u4f55\u5bf9\u5f53\u524dtk\u7a97\u53e3\u5b57\u4f53\u8bbe\u7f6e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24210616\/c5442ea2-b9d7-4b36-8b04-80bf6a45c1fd.webp\" alt=\"python\u5982\u4f55\u5bf9\u5f53\u524dtk\u7a97\u53e3\u5b57\u4f53\u8bbe\u7f6e\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528tkinter\u5e93\u5bf9\u5f53\u524dtk\u7a97\u53e3\u5b57\u4f53\u8fdb\u884c\u8bbe\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\u5e76\u5e94\u7528\u5230\u7a97\u53e3\u7684\u63a7\u4ef6\u4e2d\u3001\u52a8\u6001\u66f4\u65b0\u5b57\u4f53\u5c5e\u6027\u3001\u901a\u8fc7\u6837\u5f0f\u4e3b\u9898\u8bbe\u7f6e\u5b57\u4f53\u7b49\u3002<\/strong> \u5176\u4e2d\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\uff0c\u7136\u540e\u5c06\u5176\u5e94\u7528\u5230\u63a7\u4ef6\u4e2d\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u793a\u4f8b\u4ee3\u7801\u548c\u4f7f\u7528\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\u5e76\u5e94\u7528\u5230\u63a7\u4ef6\u4e2d<\/h2>\n<\/p>\n<p><p>\u8981\u5728tkinter\u4e2d\u8bbe\u7f6e\u5b57\u4f53\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>tkinter.font<\/code>\u6a21\u5757\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\uff0c\u7136\u540e\u5c06\u5176\u5e94\u7528\u5230\u7a97\u53e3\u7684\u63a7\u4ef6\u4e2d\u3002<code>tkinter.font<\/code>\u6a21\u5757\u5141\u8bb8\u6211\u4eec\u6307\u5b9a\u5b57\u4f53\u7684\u5bb6\u65cf\u3001\u5927\u5c0f\u3001\u6837\u5f0f\uff08\u5982\u7c97\u4f53\u3001\u659c\u4f53\u7b49\uff09\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\u5e76\u5c06\u5176\u5e94\u7528\u5230<code>Label<\/code>\u63a7\u4ef6\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import font<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u8bbe\u7f6e\u5b57\u4f53\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61<\/strong><\/h2>\n<p>custom_font = font.Font(family=&quot;Helvetica&quot;, size=16, weight=&quot;bold&quot;, slant=&quot;italic&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6807\u7b7e\u5e76\u5e94\u7528\u5b57\u4f53<\/strong><\/h2>\n<p>label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=custom_font)<\/p>\n<p>label.pack(pady=20)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/strong><\/h2>\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\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>font.Font<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5b57\u4f53\u5bf9\u8c61<code>custom_font<\/code>\uff0c\u5e76\u5c06\u5176\u5e94\u7528\u5230<code>Label<\/code>\u63a7\u4ef6\u4e0a\u3002\u901a\u8fc7\u8bbe\u7f6e<code>family<\/code>\u3001<code>size<\/code>\u3001<code>weight<\/code>\u548c<code>slant<\/code>\u53c2\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5bf9\u5b57\u4f53\u7684\u5bb6\u65cf\u3001\u5927\u5c0f\u3001\u7c97\u4f53\u548c\u659c\u4f53\u8fdb\u884c\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u52a8\u6001\u66f4\u65b0\u5b57\u4f53\u5c5e\u6027<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u5728\u521b\u5efa\u63a7\u4ef6\u65f6\u8bbe\u7f6e\u5b57\u4f53\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u52a8\u6001\u66f4\u65b0\u63a7\u4ef6\u7684\u5b57\u4f53\u5c5e\u6027\u3002\u901a\u8fc7\u4fee\u6539\u5b57\u4f53\u5bf9\u8c61\u7684\u5c5e\u6027\uff0c\u6240\u6709\u5f15\u7528\u8be5\u5b57\u4f53\u5bf9\u8c61\u7684\u63a7\u4ef6\u90fd\u4f1a\u81ea\u52a8\u66f4\u65b0\u5b57\u4f53\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u52a8\u6001\u66f4\u65b0\u5b57\u4f53\u5c5e\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import font<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u52a8\u6001\u66f4\u65b0\u5b57\u4f53\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61<\/strong><\/h2>\n<p>custom_font = font.Font(family=&quot;Helvetica&quot;, size=16, weight=&quot;bold&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6807\u7b7e\u5e76\u5e94\u7528\u5b57\u4f53<\/strong><\/h2>\n<p>label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=custom_font)<\/p>\n<p>label.pack(pady=20)<\/p>\n<h2><strong>\u5b9a\u4e49\u66f4\u65b0\u5b57\u4f53\u5c5e\u6027\u7684\u51fd\u6570<\/strong><\/h2>\n<p>def update_font():<\/p>\n<p>    custom_font.config(size=24, weight=&quot;normal&quot;, slant=&quot;italic&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6309\u94ae\u4ee5\u66f4\u65b0\u5b57\u4f53<\/strong><\/h2>\n<p>update_button = tk.Button(root, text=&quot;\u66f4\u65b0\u5b57\u4f53&quot;, command=update_font)<\/p>\n<p>update_button.pack(pady=20)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a<code>update_font<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u4f7f\u7528<code>custom_font.config<\/code>\u65b9\u6cd5\u66f4\u65b0\u5b57\u4f53\u7684\u5c5e\u6027\u3002\u5f53\u7528\u6237\u70b9\u51fb\u201c\u66f4\u65b0\u5b57\u4f53\u201d\u6309\u94ae\u65f6\uff0c<code>Label<\/code>\u63a7\u4ef6\u7684\u5b57\u4f53\u6837\u5f0f\u4f1a\u81ea\u52a8\u66f4\u65b0\u4e3a\u65b0\u7684\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u901a\u8fc7\u6837\u5f0f\u4e3b\u9898\u8bbe\u7f6e\u5b57\u4f53<\/h2>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u4f7f\u7528\u6837\u5f0f\u4e3b\u9898\u6765\u7edf\u4e00\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\u3002<code>tkinter.ttk<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u6837\u5f0f\u4e3b\u9898\u529f\u80fd\uff0c\u5141\u8bb8\u6211\u4eec\u5b9a\u4e49\u63a7\u4ef6\u7684\u6837\u5f0f\u5e76\u5e94\u7528\u5230\u591a\u4e2a\u63a7\u4ef6\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u6837\u5f0f\u4e3b\u9898\u8bbe\u7f6e\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import ttk<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u6837\u5f0f\u4e3b\u9898\u8bbe\u7f6e\u5b57\u4f53\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6837\u5f0f\u5bf9\u8c61<\/strong><\/h2>\n<p>style = ttk.Style()<\/p>\n<h2><strong>\u914d\u7f6e\u6837\u5f0f\u4e3b\u9898\u4e2d\u7684\u5b57\u4f53<\/strong><\/h2>\n<p>style.configure(&quot;TLabel&quot;, font=(&quot;Helvetica&quot;, 16, &quot;bold&quot;))<\/p>\n<h2><strong>\u521b\u5efa\u6807\u7b7e\u5e76\u5e94\u7528\u6837\u5f0f<\/strong><\/h2>\n<p>label = ttk.Label(root, text=&quot;Hello, Tkinter!&quot;, style=&quot;TLabel&quot;)<\/p>\n<p>label.pack(pady=20)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>ttk.Style<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u6837\u5f0f\u5bf9\u8c61\uff0c\u5e76\u901a\u8fc7<code>style.configure<\/code>\u65b9\u6cd5\u914d\u7f6e\u4e86\u6837\u5f0f\u4e3b\u9898\u4e2d\u7684\u5b57\u4f53\u5c5e\u6027\u3002\u7136\u540e\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a<code>ttk.Label<\/code>\u63a7\u4ef6\u5e76\u5e94\u7528\u4e86\u8be5\u6837\u5f0f\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u7edf\u4e00\u7ba1\u7406\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\uff0c\u4fbf\u4e8e\u7ef4\u62a4\u548c\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u66f4\u591a\u5b57\u4f53\u5c5e\u6027\u8bbe\u7f6e<\/h2>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u5b57\u4f53\u5c5e\u6027\uff08\u5982\u5bb6\u65cf\u3001\u5927\u5c0f\u3001\u7c97\u4f53\u3001\u659c\u4f53\uff09\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u8bbe\u7f6e\u5176\u4ed6\u5b57\u4f53\u5c5e\u6027\uff0c\u5982\u4e0b\u5212\u7ebf\u3001\u524d\u666f\u8272\u3001\u80cc\u666f\u8272\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u8bbe\u7f6e\u66f4\u591a\u7684\u5b57\u4f53\u5c5e\u6027\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import font<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u66f4\u591a\u5b57\u4f53\u5c5e\u6027\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61<\/strong><\/h2>\n<p>custom_font = font.Font(family=&quot;Helvetica&quot;, size=16, underline=True, overstrike=True)<\/p>\n<h2><strong>\u521b\u5efa\u6807\u7b7e\u5e76\u5e94\u7528\u5b57\u4f53<\/strong><\/h2>\n<p>label = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=custom_font, fg=&quot;blue&quot;, bg=&quot;yellow&quot;)<\/p>\n<p>label.pack(pady=20)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u4e8b\u4ef6\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>font.Font<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5b57\u4f53\u5bf9\u8c61<code>custom_font<\/code>\uff0c\u5e76\u8bbe\u7f6e\u4e86\u4e0b\u5212\u7ebf\u548c\u5220\u9664\u7ebf\u5c5e\u6027\u3002\u6211\u4eec\u8fd8\u901a\u8fc7<code>fg<\/code>\u548c<code>bg<\/code>\u53c2\u6570\u8bbe\u7f6e\u4e86\u6807\u7b7e\u7684\u524d\u666f\u8272\u548c\u80cc\u666f\u8272\u3002<\/p>\n<\/p>\n<p><h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u5b66\u4e60\u4e86\u5982\u4f55\u4f7f\u7528<code>tkinter<\/code>\u5e93\u5bf9\u5f53\u524dtk\u7a97\u53e3\u5b57\u4f53\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5305\u62ec\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\u5e76\u5e94\u7528\u5230\u63a7\u4ef6\u4e2d\u3001\u52a8\u6001\u66f4\u65b0\u5b57\u4f53\u5c5e\u6027\u3001\u901a\u8fc7\u6837\u5f0f\u4e3b\u9898\u8bbe\u7f6e\u5b57\u4f53\u4ee5\u53ca\u8bbe\u7f6e\u66f4\u591a\u7684\u5b57\u4f53\u5c5e\u6027\u3002<strong>\u521b\u5efa\u5b57\u4f53\u5bf9\u8c61\u5e76\u5e94\u7528\u5230\u63a7\u4ef6\u4e2d<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u914d\u7f6e\u5e94\u7528\u7a0b\u5e8f\u4e2d\u7684\u5b57\u4f53\u6837\u5f0f\uff0c\u63d0\u5347\u7528\u6237\u754c\u9762\u7684\u7f8e\u89c2\u548c\u4e00\u81f4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python Tkinter\u4e2d\u66f4\u6539\u7a97\u53e3\u5b57\u4f53\uff1f<\/strong><br \/>\u5728Tkinter\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>Font<\/code>\u6a21\u5757\u6765\u8bbe\u7f6e\u7a97\u53e3\u7684\u5b57\u4f53\u3002\u9996\u5148\uff0c\u9700\u8981\u5bfc\u5165<code>tkinter.font<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>font.Font()<\/code>\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\uff0c\u63a5\u7740\u5c06\u5176\u5e94\u7528\u5230\u9700\u8981\u7684\u7ec4\u4ef6\u4e0a\uff0c\u4f8b\u5982\u6807\u7b7e\u3001\u6309\u94ae\u7b49\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import tkinter as tk\nfrom tkinter import font\n\nroot = tk.Tk()\ncustom_font = font.Font(family=&quot;Helvetica&quot;, size=12, weight=&quot;bold&quot;)\nlabel = tk.Label(root, text=&quot;Hello, Tkinter!&quot;, font=custom_font)\nlabel.pack()\nroot.mainloop()\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u8c03\u6574\u5b57\u4f53\u7684\u6837\u5f0f\u3001\u5927\u5c0f\u548c\u5176\u4ed6\u5c5e\u6027\u3002<\/p>\n<p><strong>Tkinter\u652f\u6301\u54ea\u4e9b\u5b57\u4f53\u7c7b\u578b\uff1f<\/strong><br \/>Tkinter\u652f\u6301\u591a\u79cd\u5b57\u4f53\u7c7b\u578b\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u64cd\u4f5c\u7cfb\u7edf\u548c\u5df2\u5b89\u88c5\u7684\u5b57\u4f53\u3002\u5e38\u89c1\u7684\u5b57\u4f53\u5305\u62ecArial\u3001Helvetica\u3001Courier\u3001Times New Roman\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7<code>font.families()<\/code>\u65b9\u6cd5\u83b7\u53d6\u5f53\u524d\u7cfb\u7edf\u652f\u6301\u7684\u6240\u6709\u5b57\u4f53\u5217\u8868\uff0c\u4fbf\u4e8e\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\u3002<\/p>\n<p><strong>\u5982\u4f55\u52a8\u6001\u66f4\u6539Tkinter\u7a97\u53e3\u4e2d\u5b57\u4f53\u7684\u5927\u5c0f\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u7ed1\u5b9a\u4e8b\u4ef6\u6216\u6dfb\u52a0\u6309\u94ae\u6765\u5b9e\u73b0\u52a8\u6001\u66f4\u6539\u5b57\u4f53\u5927\u5c0f\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6309\u94ae\uff0c\u5728\u6309\u94ae\u70b9\u51fb\u4e8b\u4ef6\u4e2d\u66f4\u65b0\u5b57\u4f53\u5bf9\u8c61\u7684\u5927\u5c0f\u5c5e\u6027\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def increase_font_size():\n    current_size = custom_font.cget(&quot;size&quot;)\n    custom_font.configure(size=current_size + 2)\n\nbutton = tk.Button(root, text=&quot;Increase Font Size&quot;, command=increase_font_size)\nbutton.pack()\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u8ba9\u7528\u6237\u5728\u8fd0\u884c\u65f6\u4f53\u9a8c\u4e0d\u540c\u7684\u5b57\u4f53\u5927\u5c0f\uff0c\u589e\u5f3a\u5e94\u7528\u7684\u4ea4\u4e92\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528tkinter\u5e93\u5bf9\u5f53\u524dtk\u7a97\u53e3\u5b57\u4f53\u8fdb\u884c\u8bbe\u7f6e\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u521b\u5efa\u4e00\u4e2a\u5b57\u4f53\u5bf9\u8c61\u5e76\u5e94\u7528\u5230\u7a97\u53e3\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1094550,"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\/1094546"}],"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=1094546"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1094546\/revisions"}],"predecessor-version":[{"id":1094553,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1094546\/revisions\/1094553"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1094550"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1094546"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1094546"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1094546"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}