{"id":1092154,"date":"2025-01-08T14:18:30","date_gmt":"2025-01-08T06:18:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1092154.html"},"modified":"2025-01-08T14:18:32","modified_gmt":"2025-01-08T06:18:32","slug":"python%e5%a6%82%e4%bd%95%e5%88%b6%e4%bd%9c%e6%89%93%e5%bc%80%e4%bf%9d%e5%ad%98%e5%af%b9%e8%af%9d%e6%a1%86-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1092154.html","title":{"rendered":"python\u5982\u4f55\u5236\u4f5c\u6253\u5f00\u4fdd\u5b58\u5bf9\u8bdd\u6846"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24205326\/95f05acd-c563-46aa-91ce-c70eb418061d.webp\" alt=\"python\u5982\u4f55\u5236\u4f5c\u6253\u5f00\u4fdd\u5b58\u5bf9\u8bdd\u6846\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5236\u4f5c\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Tkinter\u3001PyQt\u548cwxPython\u7b49\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e93\u3002\u4ee5\u4e0b\u662f\u8fd9\u4e9b\u65b9\u6cd5\u7684\u7b80\u8981\u4ecb\u7ecd\uff1a<\/strong><\/p>\n<\/p>\n<p><p><strong>Tkinter\u5e93\u3001PyQt\u5e93\u3001wxPython\u5e93<\/strong>\u3002\u5176\u4e2d\uff0c<strong>Tkinter\u5e93\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u4f7f\u7528\u65b9\u4fbf\u4e14\u8de8\u5e73\u53f0\u517c\u5bb9\u6027\u597d<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Tkinter\u5e93\u6765\u5236\u4f5c\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Tkinter\u5e93<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u63a5\u53e3\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u5bfc\u5165Tkinter\u5e93\u5e76\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u7a97\u53e3\u6765\u663e\u793a\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5bfc\u5165Tkinter\u5e93\u53ca\u5176\u5b50\u6a21\u5757<code>filedialog<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>from tkinter import filedialog<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2aTkinter\u7a97\u53e3<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2aTkinter\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = tk.Tk()<\/p>\n<p>root.withdraw()  # \u9690\u85cf\u4e3b\u7a97\u53e3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u8981\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u4f7f\u7528<code>filedialog.askopenfilename()<\/code>\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_path = filedialog.askopenfilename(<\/p>\n<p>    title=&quot;\u9009\u62e9\u6587\u4ef6&quot;,<\/p>\n<p>    filetypes=[(&quot;\u6240\u6709\u6587\u4ef6&quot;, &quot;*.*&quot;), (&quot;\u6587\u672c\u6587\u4ef6&quot;, &quot;*.txt&quot;), (&quot;Python\u6587\u4ef6&quot;, &quot;*.py&quot;)]<\/p>\n<p>)<\/p>\n<p>print(f&quot;\u9009\u62e9\u7684\u6587\u4ef6\u8def\u5f84: {file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u8981\u663e\u793a\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846\uff0c\u53ef\u4ee5\u4f7f\u7528<code>filedialog.asksaveasfilename()<\/code>\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">save_path = filedialog.asksaveasfilename(<\/p>\n<p>    title=&quot;\u4fdd\u5b58\u6587\u4ef6&quot;,<\/p>\n<p>    defaultextension=&quot;.txt&quot;,<\/p>\n<p>    filetypes=[(&quot;\u6587\u672c\u6587\u4ef6&quot;, &quot;*.txt&quot;), (&quot;Python\u6587\u4ef6&quot;, &quot;*.py&quot;)]<\/p>\n<p>)<\/p>\n<p>print(f&quot;\u4fdd\u5b58\u7684\u6587\u4ef6\u8def\u5f84: {save_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001PyQt\u5e93<\/h3>\n<\/p>\n<p><p>PyQt\u662f\u53e6\u4e00\u79cd\u6d41\u884c\u7684Python GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528PyQt\u5e93\u5236\u4f5c\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5PyQt\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5c1a\u672a\u5b89\u88c5PyQt\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install PyQt5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u5bfc\u5165PyQt\u5e93\u4e2d\u7684\u5fc5\u8981\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PyQt5.QtWidgets import QApplication, QFileDialog<\/p>\n<p>import sys<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\u548c\u4e00\u4e2a\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">app = QApplication(sys.argv)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>QFileDialog.getOpenFileName()<\/code>\u51fd\u6570\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">file_path, _ = QFileDialog.getOpenFileName(<\/p>\n<p>    None, &quot;\u9009\u62e9\u6587\u4ef6&quot;, &quot;&quot;, &quot;\u6240\u6709\u6587\u4ef6 (*.*);;\u6587\u672c\u6587\u4ef6 (*.txt);;Python\u6587\u4ef6 (*.py)&quot;<\/p>\n<p>)<\/p>\n<p>print(f&quot;\u9009\u62e9\u7684\u6587\u4ef6\u8def\u5f84: {file_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5\u3001\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>QFileDialog.getSaveFileName()<\/code>\u51fd\u6570\u663e\u793a\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">save_path, _ = QFileDialog.getSaveFileName(<\/p>\n<p>    None, &quot;\u4fdd\u5b58\u6587\u4ef6&quot;, &quot;&quot;, &quot;\u6587\u672c\u6587\u4ef6 (*.txt);;Python\u6587\u4ef6 (*.py)&quot;<\/p>\n<p>)<\/p>\n<p>print(f&quot;\u4fdd\u5b58\u7684\u6587\u4ef6\u8def\u5f84: {save_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001wxPython\u5e93<\/h3>\n<\/p>\n<p><p>wxPython\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u8de8\u5e73\u53f0GUI\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\u548c\u5bf9\u8bdd\u6846\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528wxPython\u5e93\u5236\u4f5c\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5wxPython\u5e93<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5c1a\u672a\u5b89\u88c5wxPython\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wxPython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5bfc\u5165\u5fc5\u8981\u7684\u6a21\u5757<\/h4>\n<\/p>\n<p><p>\u5bfc\u5165wxPython\u5e93\u4e2d\u7684\u5fc5\u8981\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import wx<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u5b9e\u4f8b\u548c\u4e00\u4e2a\u7a97\u53e3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">app = wx.App(False)<\/p>\n<p>frame = wx.Frame(None, wx.ID_ANY, &quot;\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u793a\u4f8b&quot;)<\/p>\n<p>frame.Show(False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>wx.FileDialog<\/code>\u7c7b\u521b\u5efa\u5e76\u663e\u793a\u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">open_file_dialog = wx.FileDialog(<\/p>\n<p>    frame, &quot;\u9009\u62e9\u6587\u4ef6&quot;, wildcard=&quot;\u6240\u6709\u6587\u4ef6 (*.*)|*.*|\u6587\u672c\u6587\u4ef6 (*.txt)|*.txt|Python\u6587\u4ef6 (*.py)|*.py&quot;,<\/p>\n<p>    style=wx.FD_OPEN | wx.FD_FILE_MUST_EXIST<\/p>\n<p>)<\/p>\n<p>if open_file_dialog.ShowModal() == wx.ID_OK:<\/p>\n<p>    file_path = open_file_dialog.GetPath()<\/p>\n<p>    print(f&quot;\u9009\u62e9\u7684\u6587\u4ef6\u8def\u5f84: {file_path}&quot;)<\/p>\n<p>open_file_dialog.Destroy()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>5\u3001\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>wx.FileDialog<\/code>\u7c7b\u521b\u5efa\u5e76\u663e\u793a\u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">save_file_dialog = wx.FileDialog(<\/p>\n<p>    frame, &quot;\u4fdd\u5b58\u6587\u4ef6&quot;, wildcard=&quot;\u6587\u672c\u6587\u4ef6 (*.txt)|*.txt|Python\u6587\u4ef6 (*.py)|*.py&quot;,<\/p>\n<p>    style=wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT<\/p>\n<p>)<\/p>\n<p>if save_file_dialog.ShowModal() == wx.ID_OK:<\/p>\n<p>    save_path = save_file_dialog.GetPath()<\/p>\n<p>    print(f&quot;\u4fdd\u5b58\u7684\u6587\u4ef6\u8def\u5f84: {save_path}&quot;)<\/p>\n<p>save_file_dialog.Destroy()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5728Python\u4e2d\u521b\u5efa\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u3002<strong>Tkinter\u5e93\u9002\u5408\u65b0\u624b\u4f7f\u7528\uff0cPyQt\u5e93\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u63a7\u4ef6\u548c\u529f\u80fd\uff0c\u800cwxPython\u5e93\u5219\u5177\u6709\u5f3a\u5927\u7684\u8de8\u5e73\u53f0\u517c\u5bb9\u6027<\/strong>\u3002\u6839\u636e\u60a8\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u5e76\u6309\u7167\u4e0a\u8ff0\u6b65\u9aa4\u5b9e\u73b0\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u529f\u80fd\u3002\u65e0\u8bba\u60a8\u662f\u521d\u5b66\u8005\u8fd8\u662f\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u4eba\u5458\uff0c\u90fd\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u5728Python\u4e2d\u5b9e\u73b0\u6587\u4ef6\u5bf9\u8bdd\u6846\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528tkinter\u521b\u5efa\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\uff1f<\/strong><br \/>\u4f7f\u7528tkinter\u5e93\u662f\u5b9e\u73b0\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u5e38\u89c1\u65b9\u5f0f\u3002\u901a\u8fc7\u5bfc\u5165tkinter\u6a21\u5757\uff0c\u5e76\u4f7f\u7528<code>filedialog<\/code>\u5b50\u6a21\u5757\u4e2d\u7684<code>askopenfilename<\/code>\u548c<code>asksaveasfilename<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u521b\u5efa\u8fd9\u4e9b\u5bf9\u8bdd\u6846\u3002\u4ee5\u4e0b\u662f\u57fa\u672c\u7684\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">import tkinter as tk\nfrom tkinter import filedialog\n\nroot = tk.Tk()\nroot.withdraw()  # \u9690\u85cf\u4e3b\u7a97\u53e3\n\n# \u6253\u5f00\u6587\u4ef6\u5bf9\u8bdd\u6846\nfile_path = filedialog.askopenfilename(title=&quot;\u9009\u62e9\u6587\u4ef6&quot;)\nprint(&quot;\u6253\u5f00\u7684\u6587\u4ef6\u8def\u5f84:&quot;, file_path)\n\n# \u4fdd\u5b58\u6587\u4ef6\u5bf9\u8bdd\u6846\nsave_path = filedialog.asksaveasfilename(title=&quot;\u4fdd\u5b58\u6587\u4ef6&quot;)\nprint(&quot;\u4fdd\u5b58\u7684\u6587\u4ef6\u8def\u5f84:&quot;, save_path)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u6253\u5f00\u548c\u4fdd\u5b58\u7684\u6587\u4ef6\u8def\u5f84\uff1f<\/strong><br \/>\u5728\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u4e2d\uff0c\u8fd4\u56de\u7684\u6587\u4ef6\u8def\u5f84\u53ef\u4ee5\u7528\u4e8e\u540e\u7eed\u7684\u6587\u4ef6\u64cd\u4f5c\uff0c\u6bd4\u5982\u8bfb\u53d6\u6216\u5199\u5165\u6587\u4ef6\u3002\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u7ed3\u5408\u6587\u4ef6\u6a21\u5f0f\uff08\u5982&#39;r&#39;\u6216&#39;w&#39;\uff09\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u6587\u4ef6\u7684\u8bfb\u53d6\u548c\u5199\u5165\u3002\u4f8b\u5982\uff0c\u8bfb\u53d6\u6587\u4ef6\u7684\u5185\u5bb9\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(file_path, &#39;r&#39;) as file:\n    content = file.read()\n    print(&quot;\u6587\u4ef6\u5185\u5bb9:&quot;, content)\n<\/code><\/pre>\n<p>\u7c7b\u4f3c\u5730\uff0c\u5199\u5165\u6587\u4ef6\u53ef\u4ee5\u8fd9\u6837\u8fdb\u884c\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(save_path, &#39;w&#39;) as file:\n    file.write(&quot;\u8981\u4fdd\u5b58\u7684\u5185\u5bb9&quot;)\n<\/code><\/pre>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u81ea\u5b9a\u4e49\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u9009\u9879\u548c\u8fc7\u6ee4\u5668\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u3002\u5728tkinter\u7684<code>askopenfilename<\/code>\u548c<code>asksaveasfilename<\/code>\u65b9\u6cd5\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>filetypes<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u6587\u4ef6\u7c7b\u578b\u8fc7\u6ee4\u5668\u3002\u4f8b\u5982\uff0c\u9650\u5236\u7528\u6237\u53ea\u9009\u62e9\u6587\u672c\u6587\u4ef6\u6216\u56fe\u50cf\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">file_path = filedialog.askopenfilename(title=&quot;\u9009\u62e9\u6587\u672c\u6587\u4ef6&quot;, filetypes=[(&quot;Text files&quot;, &quot;*.txt&quot;), (&quot;All files&quot;, &quot;*.*&quot;)])\nsave_path = filedialog.asksaveasfilename(title=&quot;\u4fdd\u5b58\u56fe\u50cf&quot;, filetypes=[(&quot;Image files&quot;, &quot;*.png;*.jpg&quot;), (&quot;All files&quot;, &quot;*.*&quot;)])\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97\u7528\u6237\u5728\u9009\u62e9\u6587\u4ef6\u65f6\u66f4\u4e3a\u4fbf\u6377\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5236\u4f5c\u6253\u5f00\u548c\u4fdd\u5b58\u5bf9\u8bdd\u6846\u7684\u5e38\u7528\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528Tkinter\u3001PyQt\u548cwxPython\u7b49\u56fe\u5f62\u7528\u6237\u754c\u9762 [&hellip;]","protected":false},"author":3,"featured_media":1092159,"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\/1092154"}],"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=1092154"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1092154\/revisions"}],"predecessor-version":[{"id":1092160,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1092154\/revisions\/1092160"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1092159"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1092154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1092154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1092154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}