{"id":1031023,"date":"2024-12-31T11:22:00","date_gmt":"2024-12-31T03:22:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1031023.html"},"modified":"2024-12-31T11:22:02","modified_gmt":"2024-12-31T03:22:02","slug":"python%e6%96%87%e6%9c%ac%e8%be%93%e5%85%a5%e6%a1%86%e5%a6%82%e4%bd%95%e5%81%9a","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1031023.html","title":{"rendered":"python\u6587\u672c\u8f93\u5165\u6846\u5982\u4f55\u505a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/73b09301-b3a7-4a8b-bb59-f9920f11ddf7.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u6587\u672c\u8f93\u5165\u6846\u5982\u4f55\u505a\" \/><\/p>\n<p><p> <strong>Python\u6587\u672c\u8f93\u5165\u6846\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Tkinter\u5e93\u3001PyQt\u5e93\u3001Prompt Toolkit\u5e93\u6765\u5b9e\u73b0<\/strong>\uff0c<strong>\u5176\u4e2dTkinter\u5e93\u6700\u4e3a\u5e38\u7528<\/strong>\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u5982\u4f55\u4f7f\u7528\u8fd9\u4e09\u4e2a\u5e93\u6765\u521b\u5efaPython\u6587\u672c\u8f93\u5165\u6846\uff0c\u5e76\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e2a\u5e93\u7684\u4f7f\u7528\u65b9\u6cd5\u53ca\u5176\u4f18\u7f3a\u70b9\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528Tkinter\u5e93\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846<\/h3>\n<\/p>\n<p><p>Tkinter\u662fPython\u7684\u6807\u51c6GUI\uff08\u56fe\u5f62\u7528\u6237\u754c\u9762\uff09\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u521b\u5efaGUI\u5e94\u7528\u7a0b\u5e8f\u3002Tkinter\u5e93\u4e2d\u6709\u4e00\u4e2aEntry\u63a7\u4ef6\u53ef\u4ee5\u7528\u6765\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Tkinter<\/h4>\n<\/p>\n<p><p>Tkinter\u901a\u5e38\u662f\u968fPython\u4e00\u8d77\u5b89\u88c5\u7684\uff0c\u6240\u4ee5\u4f60\u4e0d\u9700\u8981\u5355\u72ec\u5b89\u88c5\u5b83\u3002\u5982\u679c\u4f60\u7684Python\u73af\u5883\u4e2d\u6ca1\u6709Tkinter\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install tk<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528Tkinter\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>def on_submit():<\/p>\n<p>    user_input = entry.get()<\/p>\n<p>    print(f&quot;User input: {user_input}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;\u6587\u672c\u8f93\u5165\u6846\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846<\/strong><\/h2>\n<p>entry = tk.Entry(root)<\/p>\n<p>entry.pack()<\/p>\n<h2><strong>\u521b\u5efa\u63d0\u4ea4\u6309\u94ae<\/strong><\/h2>\n<p>submit_button = tk.Button(root, text=&quot;\u63d0\u4ea4&quot;, command=on_submit)<\/p>\n<p>submit_button.pack()<\/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><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684Tkinter\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u6846\u548c\u4e00\u4e2a\u63d0\u4ea4\u6309\u94ae\u3002\u5f53\u7528\u6237\u5355\u51fb\u63d0\u4ea4\u6309\u94ae\u65f6\uff0c\u6587\u672c\u8f93\u5165\u6846\u4e2d\u7684\u5185\u5bb9\u5c06\u88ab\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u8be6\u7ec6\u4ecb\u7ecd<\/h4>\n<\/p>\n<p><p><strong>Tkinter\u5e93\u7684\u4f18\u70b9<\/strong>\u5305\u62ec\uff1a\u7b80\u5355\u6613\u7528\u3001\u5185\u7f6e\u4e8ePython\u6807\u51c6\u5e93\u4e2d\u3001\u8de8\u5e73\u53f0\u652f\u6301\u3002<strong>\u7f3a\u70b9<\/strong>\u662f\uff1a\u5916\u89c2\u4e0d\u591f\u73b0\u4ee3\u5316\u3001\u529f\u80fd\u76f8\u5bf9\u6709\u9650\u3002\u9002\u7528\u4e8e\u5c0f\u578b\u3001\u7b80\u5355\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PyQt\u5e93\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846<\/h3>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684Python GUI\u5e93\uff0c\u5b83\u662fQt\u5e93\u7684Python\u7ed1\u5b9a\u3002PyQt\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u63a7\u4ef6\uff0c\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u590d\u6742\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5PyQt<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5PyQt\u5e93\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\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528PyQt\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QWidget, QLineEdit, QPushButton, QVBoxLayout<\/p>\n<p>def on_submit():<\/p>\n<p>    user_input = entry.text()<\/p>\n<p>    print(f&quot;User input: {user_input}&quot;)<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<h2><strong>\u521b\u5efa\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&quot;\u6587\u672c\u8f93\u5165\u6846\u793a\u4f8b&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u5e03\u5c40<\/strong><\/h2>\n<p>layout = QVBoxLayout()<\/p>\n<h2><strong>\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846<\/strong><\/h2>\n<p>entry = QLineEdit()<\/p>\n<p>layout.addWidget(entry)<\/p>\n<h2><strong>\u521b\u5efa\u63d0\u4ea4\u6309\u94ae<\/strong><\/h2>\n<p>submit_button = QPushButton(&quot;\u63d0\u4ea4&quot;)<\/p>\n<p>submit_button.clicked.connect(on_submit)<\/p>\n<p>layout.addWidget(submit_button)<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u5e03\u5c40<\/strong><\/h2>\n<p>window.setLayout(layout)<\/p>\n<h2><strong>\u663e\u793a\u7a97\u53e3<\/strong><\/h2>\n<p>window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u521b\u5efa\u4e86\u4e00\u4e2aPyQt\u7a97\u53e3\uff0c\u5e76\u5728\u7a97\u53e3\u4e2d\u6dfb\u52a0\u4e86\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u6846\u548c\u4e00\u4e2a\u63d0\u4ea4\u6309\u94ae\u3002\u5f53\u7528\u6237\u5355\u51fb\u63d0\u4ea4\u6309\u94ae\u65f6\uff0c\u6587\u672c\u8f93\u5165\u6846\u4e2d\u7684\u5185\u5bb9\u5c06\u88ab\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u8be6\u7ec6\u4ecb\u7ecd<\/h4>\n<\/p>\n<p><p><strong>PyQt\u5e93\u7684\u4f18\u70b9<\/strong>\u5305\u62ec\uff1a\u529f\u80fd\u5f3a\u5927\u3001\u5916\u89c2\u73b0\u4ee3\u5316\u3001\u8de8\u5e73\u53f0\u652f\u6301\u3002<strong>\u7f3a\u70b9<\/strong>\u662f\uff1a\u5b66\u4e60\u66f2\u7ebf\u8f83\u9661\u3001\u5b89\u88c5\u8f83\u4e3a\u590d\u6742\u3002\u9002\u7528\u4e8e\u5927\u578b\u3001\u590d\u6742\u7684GUI\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Prompt Toolkit\u5e93\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846<\/h3>\n<\/p>\n<p><p>Prompt Toolkit\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u9ad8\u7ea7\u4ea4\u4e92\u5f0f\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u7684\u5e93\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846\uff0c\u5e76\u63d0\u4f9b\u4e86\u8bb8\u591a\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u4f8b\u5982\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5b89\u88c5Prompt Toolkit<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Prompt Toolkit\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install prompt_toolkit<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528Prompt Toolkit\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u8f93\u5165\u6846\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from prompt_toolkit import prompt<\/p>\n<h2><strong>\u63d0\u793a\u7528\u6237\u8f93\u5165<\/strong><\/h2>\n<p>user_input = prompt(&quot;\u8bf7\u8f93\u5165\u5185\u5bb9: &quot;)<\/p>\n<p>print(f&quot;User input: {user_input}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528Prompt Toolkit\u5e93\u7684<code>prompt<\/code>\u51fd\u6570\u521b\u5efa\u4e86\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u6846\uff0c\u5e76\u63d0\u793a\u7528\u6237\u8f93\u5165\u5185\u5bb9\u3002\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u5c06\u88ab\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u8be6\u7ec6\u4ecb\u7ecd<\/h4>\n<\/p>\n<p><p><strong>Prompt Toolkit\u5e93\u7684\u4f18\u70b9<\/strong>\u5305\u62ec\uff1a\u5f3a\u5927\u7684\u547d\u4ee4\u884c\u4ea4\u4e92\u529f\u80fd\u3001\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u7b49\u3002<strong>\u7f3a\u70b9<\/strong>\u662f\uff1a\u4ec5\u9002\u7528\u4e8e\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u3001\u4e0d\u9002\u7528\u4e8e\u56fe\u5f62\u754c\u9762\u3002\u9002\u7528\u4e8e\u9ad8\u7ea7\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u8be6\u7ec6\u8ba8\u8bba\u4e86\u5982\u4f55\u4f7f\u7528Tkinter\u5e93\u3001PyQt\u5e93\u548cPrompt Toolkit\u5e93\u521b\u5efaPython\u6587\u672c\u8f93\u5165\u6846\u3002<strong>Tkinter\u5e93<\/strong>\u9002\u7528\u4e8e\u7b80\u5355\u7684GUI\u5e94\u7528\u7a0b\u5e8f\uff0c<strong>PyQt\u5e93<\/strong>\u9002\u7528\u4e8e\u590d\u6742\u7684GUI\u5e94\u7528\u7a0b\u5e8f\uff0c<strong>Prompt Toolkit\u5e93<\/strong>\u9002\u7528\u4e8e\u9ad8\u7ea7\u547d\u4ee4\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u6839\u636e\u4f60\u7684\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u9ad8\u6548\u5730\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u4f60\u9009\u62e9\u54ea\u4e2a\u5e93\uff0c\u90fd\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u7528\u6237\u4f53\u9a8c<\/strong>\uff1a\u786e\u4fdd\u6587\u672c\u8f93\u5165\u6846\u7684\u4f7f\u7528\u4f53\u9a8c\u826f\u597d\uff0c\u54cd\u5e94\u8fc5\u901f\u3002<\/li>\n<li><strong>\u8f93\u5165\u9a8c\u8bc1<\/strong>\uff1a\u5bf9\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u8fdb\u884c\u9a8c\u8bc1\uff0c\u786e\u4fdd\u8f93\u5165\u7684\u5185\u5bb9\u7b26\u5408\u9884\u671f\u3002<\/li>\n<li><strong>\u5e03\u5c40\u7f8e\u89c2<\/strong>\uff1a\u5408\u7406\u5b89\u6392\u6587\u672c\u8f93\u5165\u6846\u548c\u5176\u4ed6\u63a7\u4ef6\u7684\u4f4d\u7f6e\uff0c\u4f7f\u754c\u9762\u7f8e\u89c2\u6574\u6d01\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u521b\u5efaPython\u6587\u672c\u8f93\u5165\u6846\uff0c\u5e76\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u8c03\u6574\u548c\u4f18\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u5e93\u6765\u521b\u5efa\u6587\u672c\u8f93\u5165\u6846\u3002\u6700\u5e38\u7528\u7684\u5e93\u5305\u62ecTkinter\u3001PyQt\u548cKivy\u3002\u4ee5Tkinter\u4e3a\u4f8b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>Entry<\/code>\u5c0f\u90e8\u4ef6\u6765\u521b\u5efa\u4e00\u4e2a\u6587\u672c\u8f93\u5165\u6846\u3002\u5177\u4f53\u5b9e\u73b0\u6b65\u9aa4\u5305\u62ec\u5bfc\u5165Tkinter\u5e93\u3001\u521b\u5efa\u4e3b\u7a97\u53e3\u3001\u6dfb\u52a0<code>Entry<\/code>\u5c0f\u90e8\u4ef6\u5e76\u8fd0\u884c\u4e3b\u4e8b\u4ef6\u5faa\u73af\u3002<\/p>\n<p><strong>Python\u4e2d\u7684\u6587\u672c\u8f93\u5165\u6846\u53ef\u4ee5\u5b9e\u73b0\u54ea\u4e9b\u529f\u80fd\uff1f<\/strong><br \/>\u6587\u672c\u8f93\u5165\u6846\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u529f\u80fd\uff0c\u5982\u7528\u6237\u8f93\u5165\u3001\u6570\u636e\u9a8c\u8bc1\u3001\u6587\u672c\u7f16\u8f91\u7b49\u3002\u901a\u8fc7\u8bbe\u7f6e\u8f93\u5165\u6846\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u9650\u5236\u8f93\u5165\u7684\u5b57\u7b26\u7c7b\u578b\u3001\u957f\u5ea6\uff0c\u6216\u6dfb\u52a0\u63d0\u793a\u6587\u672c\u4ee5\u5f15\u5bfc\u7528\u6237\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u5c06\u8f93\u5165\u6846\u4e0e\u6309\u94ae\u7ed3\u5408\u4f7f\u7528\uff0c\u5b9e\u73b0\u63d0\u4ea4\u6570\u636e\u7684\u529f\u80fd\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6587\u672c\u8f93\u5165\u6846\u4e2d\u6dfb\u52a0\u9ed8\u8ba4\u6587\u672c\u6216\u63d0\u793a\uff1f<\/strong><br \/>\u5728Python\u7684Tkinter\u5e93\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>insert<\/code>\u65b9\u6cd5\u6765\u6dfb\u52a0\u9ed8\u8ba4\u6587\u672c\u6216\u63d0\u793a\u3002\u4f8b\u5982\uff0c\u5728\u521b\u5efa<code>Entry<\/code>\u5c0f\u90e8\u4ef6\u540e\uff0c\u53ef\u4ee5\u8c03\u7528<code>entry.insert(0, &quot;\u8bf7\u8f93\u5165\u5185\u5bb9&quot;)<\/code>\u6765\u663e\u793a\u9ed8\u8ba4\u63d0\u793a\u3002\u5bf9\u4e8e\u5176\u4ed6\u5e93\uff0c\u5982PyQt\uff0c\u53ef\u4ee5\u4f7f\u7528<code>setPlaceholderText<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\u3002\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u7528\u6237\u4f53\u9a8c\uff0c\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7406\u89e3\u9700\u8981\u8f93\u5165\u7684\u4fe1\u606f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6587\u672c\u8f93\u5165\u6846\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528Tkinter\u5e93\u3001PyQt\u5e93\u3001Prompt Toolkit\u5e93\u6765\u5b9e\u73b0\uff0c\u5176\u4e2dTk [&hellip;]","protected":false},"author":3,"featured_media":1031028,"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\/1031023"}],"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=1031023"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1031023\/revisions"}],"predecessor-version":[{"id":1031030,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1031023\/revisions\/1031030"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1031028"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1031023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1031023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1031023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}