{"id":1086696,"date":"2025-01-08T13:28:07","date_gmt":"2025-01-08T05:28:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1086696.html"},"modified":"2025-01-08T13:28:09","modified_gmt":"2025-01-08T05:28:09","slug":"%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8python%e5%86%99%e4%b8%80%e4%b8%aaapp-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1086696.html","title":{"rendered":"\u5982\u4f55\u4f7f\u7528python\u5199\u4e00\u4e2aAPP"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24200001\/486c178d-5a17-48d8-8ee3-4df06c770a6d.webp\" alt=\"\u5982\u4f55\u4f7f\u7528python\u5199\u4e00\u4e2aAPP\" \/><\/p>\n<p><p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5199\u4e00\u4e2aAPP<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u5199\u4e00\u4e2aAPP\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3001\u5b9e\u73b0\u529f\u80fd\u903b\u8f91\u3001\u6d4b\u8bd5\u548c\u8c03\u8bd5\u3001\u6253\u5305\u548c\u53d1\u5e03\u3002\u5176\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5f71\u54cd\u5f00\u53d1\u7684\u4fbf\u6377\u6027\u548c\u5e94\u7528\u7684\u6027\u80fd\u3002\u6700\u5e38\u7528\u7684\u6846\u67b6\u6709Kivy\u548cPyQt\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u6846\u67b6\u6765\u5f00\u53d1\u4e00\u4e2aAPP\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6<\/h3>\n<\/p>\n<p><p>\u9009\u62e9\u6846\u67b6\u662f\u5f00\u53d1APP\u7684\u7b2c\u4e00\u6b65\u3002Python\u6709\u591a\u79cd\u6846\u67b6\u53ef\u4f9b\u9009\u62e9\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u6709Kivy\u548cPyQt\u3002<\/p>\n<\/p>\n<p><h4>1. Kivy\u6846\u67b6<\/h4>\n<\/p>\n<p><p>Kivy\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Python\u5e93\uff0c\u7528\u4e8e\u5f00\u53d1\u8de8\u5e73\u53f0\u5e94\u7528\u3002\u5b83\u652f\u6301Windows\u3001Linux\u3001macOS\u3001iOS\u548cAndroid\u3002Kivy\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u5f3a\u5927\u7684\u56fe\u5f62\u5904\u7406\u80fd\u529b\u548c\u7b80\u6d01\u7684API\uff0c\u975e\u5e38\u9002\u5408\u5f00\u53d1\u9700\u8981\u590d\u6742\u7528\u6237\u754c\u9762\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5Kivy<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5Kivy\u3002\u53ef\u4ee5\u901a\u8fc7pip\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install kivy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. PyQt\u6846\u67b6<\/h4>\n<\/p>\n<p><p>PyQt\u662f\u4e00\u4e2a\u57fa\u4e8eQt\u5e93\u7684Python\u7ed1\u5b9a\uff0c\u9002\u7528\u4e8e\u5f00\u53d1\u684c\u9762\u5e94\u7528\u3002\u5b83\u5177\u6709\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u5de5\u5177\uff0c\u652f\u6301\u8de8\u5e73\u53f0\u5f00\u53d1\u3002PyQt\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u6210\u719f\u7684\u751f\u6001\u7cfb\u7edf\u548c\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b89\u88c5PyQt<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7pip\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><h3>\u4e8c\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762<\/h3>\n<\/p>\n<p><p>\u7528\u6237\u754c\u9762\u662fAPP\u4e0e\u7528\u6237\u4ea4\u4e92\u7684\u4e3b\u8981\u9014\u5f84\uff0c\u4e00\u4e2a\u597d\u7684\u754c\u9762\u8bbe\u8ba1\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528Kivy\u8bbe\u8ba1\u754c\u9762<\/h4>\n<\/p>\n<p><p>Kivy\u4f7f\u7528KV\u8bed\u8a00\u6765\u5b9a\u4e49\u754c\u9762\u5e03\u5c40\u3002KV\u8bed\u8a00\u662f\u4e00\u79cd\u58f0\u660e\u5f0f\u8bed\u8a00\uff0c\u4e13\u95e8\u7528\u4e8e\u63cf\u8ff0Kivy\u5e94\u7528\u7684\u754c\u9762\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from kivy.app import App<\/p>\n<p>from kivy.uix.label import Label<\/p>\n<p>class MyApp(App):<\/p>\n<p>    def build(self):<\/p>\n<p>        return Label(text=&quot;Hello, Kivy!&quot;)<\/p>\n<p>if __name__ == &quot;__m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n__&quot;:<\/p>\n<p>    MyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528PyQt\u8bbe\u8ba1\u754c\u9762<\/h4>\n<\/p>\n<p><p>PyQt\u4f7f\u7528Qt Designer\u8bbe\u8ba1\u754c\u9762\uff0c\u6216\u8005\u53ef\u4ee5\u901a\u8fc7\u4ee3\u7801\u624b\u52a8\u7f16\u5199\u754c\u9762\u5e03\u5c40\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QLabel, QWidget<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<p>window = QWidget()<\/p>\n<p>window.setWindowTitle(&quot;Hello, PyQt&quot;)<\/p>\n<p>label = QLabel(&quot;Hello, PyQt&quot;, parent=window)<\/p>\n<p>window.setGeometry(100, 100, 280, 80)<\/p>\n<p>label.move(60, 30)<\/p>\n<p>window.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9e\u73b0\u529f\u80fd\u903b\u8f91<\/h3>\n<\/p>\n<p><p>\u529f\u80fd\u903b\u8f91\u662fAPP\u7684\u6838\u5fc3\u90e8\u5206\uff0c\u5305\u62ec\u5904\u7406\u7528\u6237\u8f93\u5165\u3001\u6570\u636e\u5904\u7406\u3001\u4e0e\u540e\u53f0\u670d\u52a1\u4ea4\u4e92\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. Kivy\u529f\u80fd\u903b\u8f91\u5b9e\u73b0<\/h4>\n<\/p>\n<p><p>Kivy\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7ec4\u4ef6\u548c\u4e8b\u4ef6\u5904\u7406\u673a\u5236\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b9e\u73b0\u5404\u79cd\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from kivy.app import App<\/p>\n<p>from kivy.uix.button import Button<\/p>\n<p>class MyApp(App):<\/p>\n<p>    def build(self):<\/p>\n<p>        button = Button(text=&quot;Click Me!&quot;)<\/p>\n<p>        button.bind(on_press=self.on_button_press)<\/p>\n<p>        return button<\/p>\n<p>    def on_button_press(self, instance):<\/p>\n<p>        print(&quot;Button pressed!&quot;)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    MyApp().run()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. PyQt\u529f\u80fd\u903b\u8f91\u5b9e\u73b0<\/h4>\n<\/p>\n<p><p>PyQt\u901a\u8fc7\u4fe1\u53f7\u548c\u69fd\u673a\u5236\u5904\u7406\u7528\u6237\u4ea4\u4e92\uff0c\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<p>from PyQt5.QtWidgets import QApplication, QPushButton, QWidget<\/p>\n<p>class MyApp(QWidget):<\/p>\n<p>    def __init__(self):<\/p>\n<p>        super().__init__()<\/p>\n<p>        self.initUI()<\/p>\n<p>    def initUI(self):<\/p>\n<p>        self.setGeometry(100, 100, 280, 80)<\/p>\n<p>        self.setWindowTitle(&#39;Signal and Slot&#39;)<\/p>\n<p>        btn = QPushButton(&#39;Click Me&#39;, self)<\/p>\n<p>        btn.move(50, 20)<\/p>\n<p>        btn.clicked.connect(self.on_button_click)<\/p>\n<p>    def on_button_click(self):<\/p>\n<p>        print(&#39;Button clicked!&#39;)<\/p>\n<p>app = QApplication(sys.argv)<\/p>\n<p>ex = MyApp()<\/p>\n<p>ex.show()<\/p>\n<p>sys.exit(app.exec_())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6d4b\u8bd5\u548c\u8c03\u8bd5<\/h3>\n<\/p>\n<p><p>\u6d4b\u8bd5\u548c\u8c03\u8bd5\u662f\u786e\u4fddAPP\u8d28\u91cf\u7684\u91cd\u8981\u6b65\u9aa4\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u6d4b\u8bd5\u6846\u67b6\uff0c\u5982unittest\u3001pytest\u7b49\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u7f16\u5199\u548c\u6267\u884c\u6d4b\u8bd5\u7528\u4f8b\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528unittest\u8fdb\u884c\u6d4b\u8bd5<\/h4>\n<\/p>\n<p><p>unittest\u662fPython\u6807\u51c6\u5e93\u63d0\u4f9b\u7684\u6d4b\u8bd5\u6846\u67b6\uff0c\u9002\u7528\u4e8e\u5404\u79cd\u89c4\u6a21\u7684\u9879\u76ee\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import unittest<\/p>\n<p>class TestMyApp(unittest.TestCase):<\/p>\n<p>    def test_example(self):<\/p>\n<p>        self.assertEqual(1 + 1, 2)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    unittest.main()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528pytest\u8fdb\u884c\u6d4b\u8bd5<\/h4>\n<\/p>\n<p><p>pytest\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6d4b\u8bd5\u6846\u67b6\uff0c\u652f\u6301\u7b80\u5355\u7684\u6d4b\u8bd5\u7528\u4f8b\u548c\u590d\u6742\u7684\u6d4b\u8bd5\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def test_example():<\/p>\n<p>    assert 1 + 1 == 2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6253\u5305\u548c\u53d1\u5e03<\/h3>\n<\/p>\n<p><p>\u6253\u5305\u548c\u53d1\u5e03\u662f\u5c06APP\u5206\u53d1\u7ed9\u7528\u6237\u7684\u6700\u540e\u4e00\u6b65\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u6253\u5305\u5de5\u5177\uff0c\u5982PyInstaller\u3001cx_Freeze\u7b49\uff0c\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528PyInstaller\u6253\u5305<\/h4>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6253\u5305\u5de5\u5177\uff0c\u53ef\u4ee5\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p>pyinstaller --onefile my_app.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528cx_Freeze\u6253\u5305<\/h4>\n<\/p>\n<p><p>cx_Freeze\u662f\u53e6\u4e00\u4e2a\u5e38\u7528\u7684\u6253\u5305\u5de5\u5177\uff0c\u652f\u6301\u591a\u79cd\u5e73\u53f0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p>cxfreeze my_app.py --target-dir dist<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\u5f00\u53d1APP\u9700\u8981\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3001\u5b9e\u73b0\u529f\u80fd\u903b\u8f91\u3001\u6d4b\u8bd5\u548c\u8c03\u8bd5\u3001\u6253\u5305\u548c\u53d1\u5e03\u3002Kivy\u548cPyQt\u662f\u4e24\u79cd\u5e38\u7528\u7684\u6846\u67b6\uff0c\u5404\u6709\u4f18\u52a3\u3002\u901a\u8fc7\u5408\u7406\u7684\u6846\u67b6\u9009\u62e9\u548c\u826f\u597d\u7684\u5f00\u53d1\u5b9e\u8df5\uff0c\u53ef\u4ee5\u5f00\u53d1\u51fa\u529f\u80fd\u5f3a\u5927\u3001\u7528\u6237\u4f53\u9a8c\u4f18\u79c0\u7684APP\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u6765\u5f00\u53d1Python\u5e94\u7528\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728\u5f00\u53d1Python\u5e94\u7528\u7a0b\u5e8f\u65f6\uff0c\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u81f3\u5173\u91cd\u8981\u3002\u5e38\u89c1\u7684\u6846\u67b6\u5305\u62ecFlask\u548cDjango\uff0c\u524d\u8005\u9002\u5408\u5c0f\u578b\u5e94\u7528\uff0c\u540e\u8005\u5219\u66f4\u9002\u5408\u5927\u578b\u9879\u76ee\u3002\u5982\u679c\u9700\u8981\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\uff0c\u53ef\u4ee5\u8003\u8651Kivy\u6216BeeWare\u7b49\u4e13\u95e8\u9488\u5bf9\u79fb\u52a8\u5e73\u53f0\u7684\u6846\u67b6\u3002\u9700\u8981\u6839\u636e\u9879\u76ee\u9700\u6c42\u3001\u56e2\u961f\u6280\u80fd\u548c\u957f\u671f\u7ef4\u62a4\u7684\u53ef\u884c\u6027\u6765\u505a\u51fa\u9009\u62e9\u3002<\/p>\n<p><strong>Python\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u54ea\u4e9b\u57fa\u672c\u77e5\u8bc6\uff1f<\/strong><br \/>\u5f00\u53d1Python\u5e94\u7528\u7a0b\u5e8f\u901a\u5e38\u9700\u8981\u638c\u63e1\u57fa\u7840\u7684\u7f16\u7a0b\u77e5\u8bc6\uff0c\u5305\u62ecPython\u8bed\u8a00\u672c\u8eab\u7684\u8bed\u6cd5\u3001\u6570\u636e\u7ed3\u6784\u548c\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3002\u6b64\u5916\uff0c\u8fd8\u9700\u8981\u7406\u89e3API\u7684\u4f7f\u7528\u3001\u6570\u636e\u5e93\u64cd\u4f5c\u3001\u524d\u7aef\u6280\u672f\uff08\u5982HTML\u3001CSS\u548cJavaScript\uff09\u4ee5\u53ca\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08\u5982Git\uff09\u3002\u8fd9\u4e9b\u77e5\u8bc6\u6709\u52a9\u4e8e\u6784\u5efa\u529f\u80fd\u5b8c\u5584\u4e14\u7528\u6237\u53cb\u597d\u7684\u5e94\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4e0a\uff1f<\/strong><br \/>\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4e0a\u901a\u5e38\u6d89\u53ca\u51e0\u4e2a\u6b65\u9aa4\u3002\u9996\u5148\uff0c\u9009\u62e9\u5408\u9002\u7684\u4e91\u670d\u52a1\u63d0\u4f9b\u5546\uff0c\u5982AWS\u3001Heroku\u6216DigitalOcean\u3002\u7136\u540e\uff0c\u8bbe\u7f6e\u865a\u62df\u73af\u5883\u5e76\u5b89\u88c5\u6240\u9700\u4f9d\u8d56\u3002\u63a5\u4e0b\u6765\uff0c\u914d\u7f6eWeb\u670d\u52a1\u5668\uff08\u5982Nginx\u6216Apache\uff09\u5e76\u8bbe\u7f6e\u53cd\u5411\u4ee3\u7406\uff0c\u786e\u4fdd\u5e94\u7528\u53ef\u4ee5\u901a\u8fc7\u57df\u540d\u8bbf\u95ee\u3002\u6700\u540e\uff0c\u8fdb\u884c\u5b89\u5168\u6027\u8bbe\u7f6e\u548c\u6027\u80fd\u4f18\u5316\uff0c\u786e\u4fdd\u5e94\u7528\u7a33\u5b9a\u8fd0\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u8c03\u8bd5Python\u5e94\u7528\u7a0b\u5e8f\u4ee5\u89e3\u51b3\u9519\u8bef\uff1f<\/strong><br \/>\u8c03\u8bd5Python\u5e94\u7528\u7a0b\u5e8f\u7684\u6709\u6548\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u5982pdb\uff0c\u6216\u5229\u7528IDE\u4e2d\u7684\u8c03\u8bd5\u529f\u80fd\u3002\u6b64\u5916\uff0c\u6dfb\u52a0\u65e5\u5fd7\u8bb0\u5f55\u53ef\u4ee5\u5e2e\u52a9\u8ffd\u8e2a\u5e94\u7528\u7684\u8fd0\u884c\u72b6\u6001\u548c\u6355\u83b7\u9519\u8bef\u4fe1\u606f\u3002\u8fd0\u884c\u5355\u5143\u6d4b\u8bd5\u4e5f\u662f\u786e\u4fdd\u4ee3\u7801\u8d28\u91cf\u7684\u91cd\u8981\u624b\u6bb5\uff0c\u901a\u8fc7\u6d4b\u8bd5\u5404\u4e2a\u6a21\u5757\u6765\u53d1\u73b0\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5982\u4f55\u4f7f\u7528Python\u5199\u4e00\u4e2aAPP \u4f7f\u7528Python\u5199\u4e00\u4e2aAPP\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u9009\u62e9\u5408\u9002\u7684\u6846\u67b6\u3001\u8bbe\u8ba1\u7528\u6237\u754c\u9762\u3001\u5b9e [&hellip;]","protected":false},"author":3,"featured_media":1086707,"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\/1086696"}],"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=1086696"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1086696\/revisions"}],"predecessor-version":[{"id":1086709,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1086696\/revisions\/1086709"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1086707"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1086696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1086696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1086696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}