{"id":1117217,"date":"2025-01-08T18:23:57","date_gmt":"2025-01-08T10:23:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1117217.html"},"modified":"2025-01-08T18:23:59","modified_gmt":"2025-01-08T10:23:59","slug":"python%e5%a6%82%e4%bd%95%e7%94%9f%e6%88%90%e5%ae%89%e8%a3%85%e6%96%87%e4%bb%b6%e5%a4%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1117217.html","title":{"rendered":"python\u5982\u4f55\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081236\/0f11163d-d508-4424-bdac-8171354b09c0.webp\" alt=\"python\u5982\u4f55\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\" \/><\/p>\n<p><p> <strong>Python\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528distutils\u3001\u4f7f\u7528setuptools\u3001\u4f7f\u7528PyInstaller\u3001\u4f7f\u7528cx_Freeze\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u4f7f\u7528setuptools<\/strong>\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u89c1\u4e14\u7b80\u5355\u7684\u65b9\u6cd5\u3002setuptools\u662f\u4e00\u4e2aPython\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u4fbf\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u3001\u5206\u53d1\u548c\u5b89\u88c5Python\u8f6f\u4ef6\u5305\u3002\u5b83\u6269\u5c55\u5e76\u589e\u5f3a\u4e86distutils\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528setuptools\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528setuptools\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5setuptools<\/h3>\n<\/p>\n<p><p>\u5728\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5setuptools\u3002\u901a\u5e38\uff0cPython\u7684\u6807\u51c6\u5e93\u4e2d\u5df2\u7ecf\u5305\u542b\u4e86setuptools\uff0c\u4f46\u5982\u679c\u6ca1\u6709\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install setuptools<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u521b\u5efa\u9879\u76ee\u7ed3\u6784<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u4f7f\u7528setuptools\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\uff0c\u9996\u5148\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u7ed3\u6784\u3002\u5047\u8bbe\u6211\u4eec\u7684\u9879\u76ee\u540d\u79f0\u4e3a<code>my_project<\/code>\uff0c\u9879\u76ee\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>my_project\/<\/p>\n<p>    my_project\/<\/p>\n<p>        __init__.py<\/p>\n<p>        m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n.py<\/p>\n<p>    setup.py<\/p>\n<p>    README.md<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u7f16\u5199setup.py\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>setup.py\u6587\u4ef6\u662f\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u6838\u5fc3\u6587\u4ef6\u3002\u5b83\u5305\u542b\u6709\u5173\u9879\u76ee\u7684\u5143\u6570\u636e\u548c\u914d\u7f6e\u4fe1\u606f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8bsetup.py\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from setuptools import setup, find_packages<\/p>\n<p>setup(<\/p>\n<p>    name=&#39;my_project&#39;,<\/p>\n<p>    version=&#39;1.0.0&#39;,<\/p>\n<p>    author=&#39;Your Name&#39;,<\/p>\n<p>    author_email=&#39;your.email@example.com&#39;,<\/p>\n<p>    description=&#39;A brief description of your project&#39;,<\/p>\n<p>    long_description=open(&#39;README.md&#39;).read(),<\/p>\n<p>    long_description_content_type=&#39;text\/markdown&#39;,<\/p>\n<p>    url=&#39;https:\/\/github.com\/yourusername\/my_project&#39;,<\/p>\n<p>    packages=find_packages(),<\/p>\n<p>    classifiers=[<\/p>\n<p>        &#39;Programming Language :: Python :: 3&#39;,<\/p>\n<p>        &#39;License :: OSI Approved :: MIT License&#39;,<\/p>\n<p>        &#39;Operating System :: OS Independent&#39;,<\/p>\n<p>    ],<\/p>\n<p>    python_requires=&#39;&gt;=3.6&#39;,<\/p>\n<p>    install_requires=[<\/p>\n<p>        # List your project&#39;s dependencies here.<\/p>\n<p>        # Example: &#39;requests&gt;=2.20.0&#39;,<\/p>\n<p>    ],<\/p>\n<p>    entry_points={<\/p>\n<p>        &#39;console_scripts&#39;: [<\/p>\n<p>            &#39;my_project=my_project.main:main&#39;,<\/p>\n<p>        ],<\/p>\n<p>    },<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684setup.py\u6587\u4ef6\u4e2d\uff0c\u914d\u7f6e\u4e86\u9879\u76ee\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u5305\u62ec\u9879\u76ee\u540d\u79f0\u3001\u7248\u672c\u3001\u4f5c\u8005\u4fe1\u606f\u3001\u9879\u76ee\u63cf\u8ff0\u3001\u9879\u76eeURL\u3001\u5305\u4fe1\u606f\u3001\u5206\u7c7b\u5668\u3001Python\u7248\u672c\u8981\u6c42\u3001\u4f9d\u8d56\u9879\u4ee5\u53ca\u63a7\u5236\u53f0\u811a\u672c\u5165\u53e3\u70b9\u3002<\/p>\n<\/p>\n<p><h3>4\u3001\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\uff08\u5305\u542bsetup.py\u7684\u76ee\u5f55\uff09\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py sdist bdist_wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728<code>dist<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u3002\u901a\u5e38\u4f1a\u751f\u6210\u4e00\u4e2a<code>.tar.gz<\/code>\u6587\u4ef6\u548c\u4e00\u4e2a<code>.whl<\/code>\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>5\u3001\u5b89\u88c5\u751f\u6210\u7684\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u751f\u6210\u7684\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install dist\/my_project-1.0.0-py3-none-any.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e8c\u3001\u4f7f\u7528PyInstaller\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5PyInstaller<\/h3>\n<\/p>\n<p><p>PyInstaller\u662f\u4e00\u4e2a\u5c06Python\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u8981\u5b89\u88c5PyInstaller\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyinstaller<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u6253\u5305Python\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u9879\u76ee\u7684\u4e3b\u811a\u672c\u662f<code>main.py<\/code>\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6253\u5305Python\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyinstaller --onefile main.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728<code>dist<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u4e00\u4e2a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>3\u3001\u8fd0\u884c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">.\/dist\/main<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528cx_Freeze\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5cx_Freeze<\/h3>\n<\/p>\n<p><p>cx_Freeze\u662f\u4e00\u4e2a\u5c06Python\u811a\u672c\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\u7684\u5de5\u5177\u3002\u8981\u5b89\u88c5cx_Freeze\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install cx_Freeze<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u7f16\u5199setup.py\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u4e0esetuptools\u7c7b\u4f3c\uff0ccx_Freeze\u4e5f\u9700\u8981\u4e00\u4e2asetup.py\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8bsetup.py\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cx_Freeze<\/p>\n<p>executables = [cx_Freeze.Executable(&quot;main.py&quot;)]<\/p>\n<p>cx_Freeze.setup(<\/p>\n<p>    name=&quot;my_project&quot;,<\/p>\n<p>    options={&quot;build_exe&quot;: {&quot;packages&quot;: [&quot;os&quot;], &quot;include_files&quot;: []}},<\/p>\n<p>    executables=executables<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\uff08\u5305\u542bsetup.py\u7684\u76ee\u5f55\uff09\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728<code>build<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u4f7f\u7528distutils\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5distutils<\/h3>\n<\/p>\n<p><p>distutils\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u901a\u5e38\u5df2\u7ecf\u5305\u542b\u5728Python\u5b89\u88c5\u4e2d\u3002\u65e0\u9700\u5355\u72ec\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u7f16\u5199setup.py\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>distutils\u7684setup.py\u6587\u4ef6\u4e0esetuptools\u7684setup.py\u6587\u4ef6\u7c7b\u4f3c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8bsetup.py\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from distutils.core import setup<\/p>\n<p>setup(<\/p>\n<p>    name=&#39;my_project&#39;,<\/p>\n<p>    version=&#39;1.0.0&#39;,<\/p>\n<p>    author=&#39;Your Name&#39;,<\/p>\n<p>    author_email=&#39;your.email@example.com&#39;,<\/p>\n<p>    description=&#39;A brief description of your project&#39;,<\/p>\n<p>    packages=[&#39;my_project&#39;],<\/p>\n<p>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u6839\u76ee\u5f55\uff08\u5305\u542bsetup.py\u7684\u76ee\u5f55\uff09\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py sdist<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728<code>dist<\/code>\u76ee\u5f55\u4e2d\u751f\u6210\u4e00\u4e2a<code>.tar.gz<\/code>\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>4\u3001\u5b89\u88c5\u751f\u6210\u7684\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u751f\u6210\u7684\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install dist\/my_project-1.0.0.tar.gz<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u603b\u7ed3<\/h2>\n<\/p>\n<p><p>\u751f\u6210Python\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6700\u5e38\u89c1\u7684\u662f\u4f7f\u7528setuptools\u3001PyInstaller\u548ccx_Freeze\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002<strong>setuptools<\/strong>\u9002\u7528\u4e8e\u521b\u5efa\u548c\u5206\u53d1Python\u5305\uff0c<strong>PyInstaller<\/strong>\u9002\u7528\u4e8e\u6253\u5305\u6210\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6\uff0c<strong>cx_Freeze<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u66f4\u591a\u5b9a\u5236\u5316\u6253\u5305\u7684\u573a\u666f\u3002\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u7b80\u5316\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u4e2d\u7684<code>mkdir<\/code>\u51fd\u6570\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\n\nfolder_name = &quot;\u65b0\u6587\u4ef6\u5939&quot;\nif not os.path.exists(folder_name):\n    os.mkdir(folder_name)\n    print(f&quot;{folder_name} \u5df2\u6210\u529f\u521b\u5efa\u3002&quot;)\nelse:\n    print(f&quot;{folder_name} \u5df2\u5b58\u5728\u3002&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u68c0\u67e5\u6307\u5b9a\u7684\u6587\u4ef6\u5939\u662f\u5426\u5df2\u7ecf\u5b58\u5728\uff0c\u5982\u679c\u4e0d\u5b58\u5728\u5219\u521b\u5efa\u5b83\u3002<\/p>\n<p><strong>Python\u80fd\u5426\u6279\u91cf\u751f\u6210\u591a\u4e2a\u6587\u4ef6\u5939\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u53ef\u4ee5\u6279\u91cf\u751f\u6210\u591a\u4e2a\u6587\u4ef6\u5939\u3002\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u7684<code>mkdir<\/code>\u51fd\u6570\u7ed3\u5408\u5faa\u73af\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\n\nfor i in range(1, 6):\n    folder_name = f&quot;\u6587\u4ef6\u5939_{i}&quot;\n    if not os.path.exists(folder_name):\n        os.mkdir(folder_name)\n        print(f&quot;{folder_name} \u5df2\u6210\u529f\u521b\u5efa\u3002&quot;)\n<\/code><\/pre>\n<p>\u6b64\u4ee3\u7801\u4f1a\u521b\u5efa\u4e94\u4e2a\u6587\u4ef6\u5939\uff0c\u5206\u522b\u547d\u540d\u4e3a\u201c\u6587\u4ef6\u5939_1\u201d\u5230\u201c\u6587\u4ef6\u5939_5\u201d\u3002<\/p>\n<p><strong>\u600e\u6837\u4f7f\u7528Python\u751f\u6210\u5e26\u6709\u7279\u5b9a\u8def\u5f84\u7684\u6587\u4ef6\u5939\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u5728\u7279\u5b9a\u8def\u5f84\u4e0b\u751f\u6210\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u5728<code>mkdir<\/code>\u51fd\u6570\u4e2d\u4f20\u9012\u5b8c\u6574\u8def\u5f84\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import os\n\npath = &quot;C:\/\u7528\u6237\/\u65b0\u6587\u4ef6\u5939&quot;\nif not os.path.exists(path):\n    os.mkdir(path)\n    print(f&quot;{path} \u5df2\u6210\u529f\u521b\u5efa\u3002&quot;)\nelse:\n    print(f&quot;{path} \u5df2\u5b58\u5728\u3002&quot;)\n<\/code><\/pre>\n<p>\u786e\u4fdd\u8def\u5f84\u662f\u6709\u6548\u7684\uff0c\u5e76\u4e14\u7a0b\u5e8f\u6709\u6743\u9650\u5728\u8be5\u4f4d\u7f6e\u521b\u5efa\u6587\u4ef6\u5939\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u751f\u6210\u5b89\u88c5\u6587\u4ef6\u5939\u7684\u51e0\u79cd\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528distutils\u3001\u4f7f\u7528setuptools\u3001\u4f7f\u7528PyInsta [&hellip;]","protected":false},"author":3,"featured_media":1117226,"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\/1117217"}],"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=1117217"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117217\/revisions"}],"predecessor-version":[{"id":1117227,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1117217\/revisions\/1117227"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1117226"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1117217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1117217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1117217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}