{"id":1108137,"date":"2025-01-08T16:57:09","date_gmt":"2025-01-08T08:57:09","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1108137.html"},"modified":"2025-01-08T16:57:11","modified_gmt":"2025-01-08T08:57:11","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%86%99%e4%b8%80%e4%b8%aa%e7%95%8c%e9%9d%a2%e5%85%ac%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1108137.html","title":{"rendered":"\u5982\u4f55\u7528python\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071920\/c47438fc-0438-482b-863d-3a9327f08fc8.webp\" alt=\"\u5982\u4f55\u7528python\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u7528Python\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7f16\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5de5\u5177\u5305\u6765\u5b9e\u73b0\uff0c<strong>\u4f8b\u5982Tkinter\u3001PyQt5\u3001Kivy<\/strong>\u7b49\u3002<strong>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Tkinter\u6765\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u754c\u9762\uff0c\u7528\u6237\u53ef\u4ee5\u8f93\u5165\u516c\u5f0f\u5e76\u8ba1\u7b97\u7ed3\u679c<\/strong>\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tkinter\u6765\u521b\u5efa\u4e00\u4e2a\u754c\u9762\u5e76\u8ba1\u7b97\u516c\u5f0f\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Tkinter\u7b80\u4ecb<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\u3002Python\u4f7f\u7528Tkinter\u53ef\u4ee5\u5feb\u901f\u521b\u5efaGUI\u5e94\u7528\u7a0b\u5e8f\u3002Tkinter\u662f\u8de8\u5e73\u53f0\u7684\uff0c\u53ef\u4ee5\u5728Windows\u3001macOS\u548cLinux\u4e0a\u8fd0\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b89\u88c5Tkinter<\/h3>\n<\/p>\n<p><p>Tkinter\u901a\u5e38\u968fPython\u7684\u6807\u51c6\u5e93\u4e00\u8d77\u5b89\u88c5\uff0c\u56e0\u6b64\u4f60\u65e0\u9700\u5355\u72ec\u5b89\u88c5\u3002\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fAnaconda\u6216\u5176\u4ed6Python\u53d1\u884c\u7248\uff0cTkinter\u5e94\u8be5\u5df2\u7ecf\u5305\u542b\u5728\u5185\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u662f\u5426\u5df2\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u6ca1\u6709\u9519\u8bef\u63d0\u793a\uff0c\u5219\u8868\u793aTkinter\u5df2\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u521b\u5efa\u57fa\u672c\u7684Tkinter\u7a97\u53e3<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7f16\u5199\u754c\u9762\u516c\u5f0f\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u57fa\u672c\u7684Tkinter\u7a97\u53e3\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<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u754c\u9762\u516c\u5f0f\u8ba1\u7b97\u5668&quot;)<\/p>\n<p>root.geometry(&quot;300x200&quot;)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\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><h3>\u56db\u3001\u6dfb\u52a0\u8f93\u5165\u548c\u8f93\u51fa\u63a7\u4ef6<\/h3>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u8f93\u5165\u6846\u3001\u6309\u94ae\u548c\u6807\u7b7e\uff0c\u4ee5\u4fbf\u7528\u6237\u8f93\u5165\u516c\u5f0f\u5e76\u67e5\u770b\u8ba1\u7b97\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import messagebox<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u754c\u9762\u516c\u5f0f\u8ba1\u7b97\u5668&quot;)<\/p>\n<p>root.geometry(&quot;300x200&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u8f93\u5165\u6846<\/strong><\/h2>\n<p>entry_formula = tk.Entry(root, width=30)<\/p>\n<p>entry_formula.pack(pady=10)<\/p>\n<h2><strong>\u521b\u5efa\u8f93\u51fa\u6807\u7b7e<\/strong><\/h2>\n<p>label_result = tk.Label(root, text=&quot;\u7ed3\u679c\uff1a&quot;)<\/p>\n<p>label_result.pack(pady=10)<\/p>\n<h2><strong>\u5b9a\u4e49\u8ba1\u7b97\u51fd\u6570<\/strong><\/h2>\n<p>def calculate():<\/p>\n<p>    try:<\/p>\n<p>        # \u83b7\u53d6\u8f93\u5165\u7684\u516c\u5f0f<\/p>\n<p>        formula = entry_formula.get()<\/p>\n<p>        # \u8ba1\u7b97\u7ed3\u679c<\/p>\n<p>        result = eval(formula)<\/p>\n<p>        # \u663e\u793a\u7ed3\u679c<\/p>\n<p>        label_result.config(text=f&quot;\u7ed3\u679c\uff1a{result}&quot;)<\/p>\n<p>    except Exception as e:<\/p>\n<p>        messagebox.showerror(&quot;\u9519\u8bef&quot;, f&quot;\u8ba1\u7b97\u9519\u8bef\uff1a{e}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u8ba1\u7b97\u6309\u94ae<\/strong><\/h2>\n<p>button_calculate = tk.Button(root, text=&quot;\u8ba1\u7b97&quot;, command=calculate)<\/p>\n<p>button_calculate.pack(pady=10)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u8be6\u7ec6\u89e3\u91ca\u548c\u4f18\u5316<\/h3>\n<\/p>\n<p><h4>1\u3001\u8f93\u5165\u9a8c\u8bc1<\/h4>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u4f7f\u7528\u4e86<code>eval<\/code>\u51fd\u6570\u6765\u8ba1\u7b97\u8f93\u5165\u7684\u516c\u5f0f\u3002\u867d\u7136<code>eval<\/code>\u51fd\u6570\u5f88\u5f3a\u5927\uff0c\u4f46\u5b83\u4e5f\u5b58\u5728\u5b89\u5168\u98ce\u9669\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u6267\u884c\u4efb\u610fPython\u4ee3\u7801\u3002\u4e3a\u4e86\u63d0\u9ad8\u5b89\u5168\u6027\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u9a8c\u8bc1\u8f93\u5165\u7684\u516c\u5f0f\uff0c\u786e\u4fdd\u53ea\u5305\u542b\u6570\u5b57\u548c\u57fa\u672c\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_valid_formula(formula):<\/p>\n<p>    # \u53ea\u5141\u8bb8\u6570\u5b57\u3001\u8fd0\u7b97\u7b26\u548c\u5c0f\u6570\u70b9<\/p>\n<p>    pattern = re.compile(r&#39;^[0-9+\\-*\/(). ]+$&#39;)<\/p>\n<p>    return pattern.match(formula) is not None<\/p>\n<p>def calculate():<\/p>\n<p>    formula = entry_formula.get()<\/p>\n<p>    if is_valid_formula(formula):<\/p>\n<p>        try:<\/p>\n<p>            result = eval(formula)<\/p>\n<p>            label_result.config(text=f&quot;\u7ed3\u679c\uff1a{result}&quot;)<\/p>\n<p>        except Exception as e:<\/p>\n<p>            messagebox.showerror(&quot;\u9519\u8bef&quot;, f&quot;\u8ba1\u7b97\u9519\u8bef\uff1a{e}&quot;)<\/p>\n<p>    else:<\/p>\n<p>        messagebox.showerror(&quot;\u9519\u8bef&quot;, &quot;\u8f93\u5165\u7684\u516c\u5f0f\u65e0\u6548&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6dfb\u52a0\u66f4\u591a\u529f\u80fd<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u52a0\u51cf\u4e58\u9664\u8fd0\u7b97\uff0c\u8fd8\u53ef\u4ee5\u6dfb\u52a0\u66f4\u591a\u529f\u80fd\uff0c\u4f8b\u5982\uff1a\u5e73\u65b9\u6839\u3001\u5e42\u8fd0\u7b97\u3001\u4e09\u89d2\u51fd\u6570\u7b49\u3002\u8fd9\u53ef\u4ee5\u901a\u8fc7\u5728\u8f93\u5165\u516c\u5f0f\u4e2d\u6dfb\u52a0\u76f8\u5e94\u7684\u51fd\u6570\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>def calculate():<\/p>\n<p>    formula = entry_formula.get()<\/p>\n<p>    if is_valid_formula(formula):<\/p>\n<p>        try:<\/p>\n<p>            # \u4f7f\u7528 eval \u8ba1\u7b97\u516c\u5f0f\uff0c\u6dfb\u52a0\u66f4\u591a\u6570\u5b66\u51fd\u6570<\/p>\n<p>            result = eval(formula, {&quot;__builtins__&quot;: None}, {&quot;sqrt&quot;: math.sqrt, &quot;pow&quot;: math.pow, &quot;sin&quot;: math.sin, &quot;cos&quot;: math.cos})<\/p>\n<p>            label_result.config(text=f&quot;\u7ed3\u679c\uff1a{result}&quot;)<\/p>\n<p>        except Exception as e:<\/p>\n<p>            messagebox.showerror(&quot;\u9519\u8bef&quot;, f&quot;\u8ba1\u7b97\u9519\u8bef\uff1a{e}&quot;)<\/p>\n<p>    else:<\/p>\n<p>        messagebox.showerror(&quot;\u9519\u8bef&quot;, &quot;\u8f93\u5165\u7684\u516c\u5f0f\u65e0\u6548&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4f18\u5316\u754c\u9762\u5e03\u5c40<\/h4>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u754c\u9762\u66f4\u52a0\u7f8e\u89c2\uff0c\u53ef\u4ee5\u4f7f\u7528<code>grid<\/code>\u5e03\u5c40\u6765\u6392\u5217\u63a7\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import messagebox<\/p>\n<p>import re<\/p>\n<p>import math<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u754c\u9762\u516c\u5f0f\u8ba1\u7b97\u5668&quot;)<\/p>\n<p>root.geometry(&quot;400x300&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u8f93\u5165\u6846<\/strong><\/h2>\n<p>entry_formula = tk.Entry(root, width=30)<\/p>\n<p>entry_formula.grid(row=0, column=1, padx=10, pady=10)<\/p>\n<h2><strong>\u521b\u5efa\u8f93\u51fa\u6807\u7b7e<\/strong><\/h2>\n<p>label_result = tk.Label(root, text=&quot;\u7ed3\u679c\uff1a&quot;)<\/p>\n<p>label_result.grid(row=1, column=1, padx=10, pady=10)<\/p>\n<h2><strong>\u5b9a\u4e49\u8f93\u5165\u9a8c\u8bc1\u51fd\u6570<\/strong><\/h2>\n<p>def is_valid_formula(formula):<\/p>\n<p>    pattern = re.compile(r&#39;^[0-9+\\-*\/(). ]+$&#39;)<\/p>\n<p>    return pattern.match(formula) is not None<\/p>\n<h2><strong>\u5b9a\u4e49\u8ba1\u7b97\u51fd\u6570<\/strong><\/h2>\n<p>def calculate():<\/p>\n<p>    formula = entry_formula.get()<\/p>\n<p>    if is_valid_formula(formula):<\/p>\n<p>        try:<\/p>\n<p>            result = eval(formula, {&quot;__builtins__&quot;: None}, {&quot;sqrt&quot;: math.sqrt, &quot;pow&quot;: math.pow, &quot;sin&quot;: math.sin, &quot;cos&quot;: math.cos})<\/p>\n<p>            label_result.config(text=f&quot;\u7ed3\u679c\uff1a{result}&quot;)<\/p>\n<p>        except Exception as e:<\/p>\n<p>            messagebox.showerror(&quot;\u9519\u8bef&quot;, f&quot;\u8ba1\u7b97\u9519\u8bef\uff1a{e}&quot;)<\/p>\n<p>    else:<\/p>\n<p>        messagebox.showerror(&quot;\u9519\u8bef&quot;, &quot;\u8f93\u5165\u7684\u516c\u5f0f\u65e0\u6548&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u8ba1\u7b97\u6309\u94ae<\/strong><\/h2>\n<p>button_calculate = tk.Button(root, text=&quot;\u8ba1\u7b97&quot;, command=calculate)<\/p>\n<p>button_calculate.grid(row=2, column=1, padx=10, pady=10)<\/p>\n<h2><strong>\u8fd0\u884c\u4e3b\u5faa\u73af<\/strong><\/h2>\n<p>root.mainloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684Python\u754c\u9762\u516c\u5f0f\u8ba1\u7b97\u5668\u3002<strong>\u4f7f\u7528Tkinter\u5e93\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\u5e94\u7528\u7a0b\u5e8f<\/strong>\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fdb\u4e00\u6b65\u4f18\u5316\u548c\u6269\u5c55\u529f\u80fd\uff0c\u4f8b\u5982\uff1a\u6dfb\u52a0\u66f4\u591a\u6570\u5b66\u51fd\u6570\u3001\u4f18\u5316\u754c\u9762\u5e03\u5c40\u3001\u589e\u5f3a\u8f93\u5165\u9a8c\u8bc1\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u5982\u679c\u6709\u4efb\u4f55\u95ee\u9898\u6216\u5efa\u8bae\uff0c\u6b22\u8fce\u7559\u8a00\u8ba8\u8bba\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684Python\u5e93\u6765\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6709\u591a\u4e2a\u5e93\u53ef\u4f9b\u9009\u62e9\u6765\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u5305\u62ecTkinter\u3001PyQt\u548cwxPython\u3002Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u9002\u5408\u521d\u5b66\u8005\uff0c\u7b80\u5355\u6613\u7528\uff1b\u800cPyQt\u5219\u63d0\u4f9b\u4e86\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u66f4\u590d\u6742\u7684\u754c\u9762\u8bbe\u8ba1\uff0c\u9002\u5408\u9700\u8981\u5f00\u53d1\u5927\u578b\u5e94\u7528\u7684\u7528\u6237\uff1bwxPython\u5219\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684GUI\u5e93\uff0c\u9002\u5408\u9700\u8981\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u4fdd\u6301\u4e00\u81f4\u6027\u7684\u5e94\u7528\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u53d6\u51b3\u4e8e\u9879\u76ee\u9700\u6c42\u548c\u4e2a\u4eba\u7684\u7f16\u7a0b\u7ecf\u9a8c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python GUI\u4e2d\u5b9e\u73b0\u516c\u5f0f\u8ba1\u7b97\u529f\u80fd\uff1f<\/strong><br \/>\u5728\u521b\u5efaPython GUI\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8f93\u5165\u6846\u6765\u63a5\u6536\u7528\u6237\u8f93\u5165\u7684\u516c\u5f0f\uff0c\u5e76\u901a\u8fc7\u8bc4\u4f30\u8868\u8fbe\u5f0f\u8fdb\u884c\u8ba1\u7b97\u3002\u53ef\u4ee5\u4f7f\u7528<code>eval()<\/code>\u51fd\u6570\u6765\u89e3\u6790\u548c\u8ba1\u7b97\u7528\u6237\u8f93\u5165\u7684\u6570\u5b66\u8868\u8fbe\u5f0f\uff0c\u4f46\u8981\u6ce8\u610f\u5b89\u5168\u6027\u95ee\u9898\uff0c\u786e\u4fdd\u8f93\u5165\u7684\u5185\u5bb9\u662f\u5b89\u5168\u7684\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u5e93\u5982SymPy\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u66f4\u590d\u6742\u7684\u6570\u5b66\u516c\u5f0f\u548c\u7b26\u53f7\u8ba1\u7b97\u3002\u7ed3\u5408\u8fd9\u4e9b\u5de5\u5177\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u4e00\u4e2a\u7b80\u5355\u7684\u516c\u5f0f\u8ba1\u7b97\u5668\u3002<\/p>\n<p><strong>Python GUI\u5f00\u53d1\u4e2d\u5e38\u89c1\u7684\u9519\u8bef\u6709\u54ea\u4e9b\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u5728\u5f00\u53d1Python GUI\u65f6\uff0c\u5e38\u89c1\u9519\u8bef\u5305\u62ec\u754c\u9762\u5143\u7d20\u672a\u6b63\u786e\u5e03\u5c40\u3001\u4e8b\u4ef6\u7ed1\u5b9a\u672a\u751f\u6548\u3001\u7a0b\u5e8f\u5d29\u6e83\u7b49\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u4e9b\u95ee\u9898\uff0c\u786e\u4fdd\u4e86\u89e3\u6240\u7528\u5e93\u7684\u6587\u6863\u548c\u793a\u4f8b\uff0c\u5408\u7406\u4f7f\u7528\u5e03\u5c40\u7ba1\u7406\u5668\u6765\u5b89\u6392\u7ec4\u4ef6\u7684\u4f4d\u7f6e\u3002\u5982\u679c\u9047\u5230\u4e8b\u4ef6\u7ed1\u5b9a\u7684\u95ee\u9898\uff0c\u53ef\u4ee5\u68c0\u67e5\u662f\u5426\u6b63\u786e\u8fde\u63a5\u4e86\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u3002\u8c03\u8bd5\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6253\u5370\u8bed\u53e5\u6216\u8c03\u8bd5\u5de5\u5177\u6765\u8ddf\u8e2a\u7a0b\u5e8f\u8fd0\u884c\u72b6\u6001\uff0c\u5e2e\u52a9\u8bc6\u522b\u95ee\u9898\u6240\u5728\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u7528Python\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f \u4f7f\u7528Python\u7f16\u5199\u4e00\u4e2a\u754c\u9762\u516c\u5f0f\uff0c\u53ef\u4ee5\u901a\u8fc7\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5de5\u5177\u5305\u6765\u5b9e\u73b0 [&hellip;]","protected":false},"author":3,"featured_media":1108141,"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\/1108137"}],"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=1108137"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1108137\/revisions"}],"predecessor-version":[{"id":1108142,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1108137\/revisions\/1108142"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1108141"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1108137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1108137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1108137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}