{"id":946926,"date":"2024-12-26T23:46:58","date_gmt":"2024-12-26T15:46:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/946926.html"},"modified":"2024-12-26T23:47:00","modified_gmt":"2024-12-26T15:47:00","slug":"python%e5%a6%82%e4%bd%95%e5%b0%81%e8%a3%85%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/946926.html","title":{"rendered":"python\u5982\u4f55\u5c01\u88c5\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082905\/a6f0efe1-43ff-4e83-8c1f-9bbeff1bbbbe.webp\" alt=\"python\u5982\u4f55\u5c01\u88c5\u5e93\" \/><\/p>\n<p><p> <strong>Python\u5c01\u88c5\u5e93\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u5b9a\u4e49\u529f\u80fd\u6a21\u5757\u3001\u7f16\u5199setup\u811a\u672c\u3001\u521b\u5efa\u5305\u76ee\u5f55\u3001\u7f16\u5199\u6587\u6863\u548c\u6ce8\u91ca\u3001\u53d1\u5e03\u5230PyPI\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5173\u952e\u7684\u662f\u6b63\u786e\u8bbe\u7f6e\u4f60\u7684<code>setup.py<\/code>\u6587\u4ef6\uff0c\u4f7f\u5176\u80fd\u591f\u6b63\u786e\u63cf\u8ff0\u548c\u6253\u5305\u4f60\u7684\u5e93\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5982\u4f55\u4e00\u6b65\u6b65\u5c01\u88c5\u4e00\u4e2aPython\u5e93\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b9a\u4e49\u529f\u80fd\u6a21\u5757<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u5c01\u88c5\u5e93\u4e4b\u524d\uff0c\u4f60\u9700\u8981\u660e\u786e\u5e93\u7684\u529f\u80fd\u6a21\u5757\u3002\u901a\u5e38\uff0c\u5e93\u7684\u529f\u80fd\u6a21\u5757\u662f\u7531\u4e00\u7cfb\u5217\u76f8\u5173\u7684\u51fd\u6570\u548c\u7c7b\u7ec4\u6210\u7684\u3002\u4f60\u5e94\u8be5\u6839\u636e\u529f\u80fd\u7684\u76f8\u5173\u6027\u548c\u590d\u7528\u6027\u6765\u5212\u5206\u6a21\u5757\uff0c\u5e76\u786e\u4fdd\u6bcf\u4e2a\u6a21\u5757\u7684\u529f\u80fd\u662f\u72ec\u7acb\u4e14\u53ef\u4ee5\u5355\u72ec\u6d4b\u8bd5\u7684\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6b63\u5728\u521b\u5efa\u4e00\u4e2a\u5904\u7406\u56fe\u50cf\u7684\u5e93\uff0c\u4f60\u53ef\u80fd\u4f1a\u6709\u6a21\u5757\u7528\u4e8e\u56fe\u50cf\u8bfb\u53d6\u3001\u56fe\u50cf\u5904\u7406\u3001\u56fe\u50cf\u4fdd\u5b58\u7b49\u3002\u6bcf\u4e2a\u6a21\u5757\u90fd\u5e94\u8be5\u4e13\u6ce8\u4e8e\u4e00\u79cd\u7279\u5b9a\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7f16\u5199setup\u811a\u672c<\/p>\n<\/p>\n<p><p><code>setup.py<\/code>\u662fPython\u5e93\u7684\u5b89\u88c5\u811a\u672c\uff0c\u5b83\u5b9a\u4e49\u4e86\u5e93\u7684\u540d\u79f0\u3001\u7248\u672c\u3001\u4f5c\u8005\u3001\u63cf\u8ff0\u3001\u4f9d\u8d56\u7b49\u4fe1\u606f\u3002\u4e00\u4e2a\u7b80\u5355\u7684<code>setup.py<\/code>\u6587\u4ef6\u53ef\u80fd\u5982\u4e0b\u6240\u793a\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;your_library_name&#39;,<\/p>\n<p>    version=&#39;0.1.0&#39;,<\/p>\n<p>    author=&#39;Your Name&#39;,<\/p>\n<p>    author_em<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l=&#39;your.email@example.com&#39;,<\/p>\n<p>    description=&#39;A short description of the library&#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\/your-repo&#39;,<\/p>\n<p>    packages=find_packages(),<\/p>\n<p>    install_requires=[<\/p>\n<p>        # List your library&#39;s dependencies here, e.g.:<\/p>\n<p>        # &#39;numpy&gt;=1.18.0&#39;,<\/p>\n<p>    ],<\/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>)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u786e\u4fdd\u5728<code>install_requires<\/code>\u4e2d\u5217\u51fa\u6240\u6709\u5fc5\u8981\u7684\u4f9d\u8d56\u9879<\/strong>\uff0c\u8fd9\u6837\u7528\u6237\u5728\u5b89\u88c5\u4f60\u7684\u5e93\u65f6\uff0c\u8fd9\u4e9b\u4f9d\u8d56\u9879\u4e5f\u4f1a\u88ab\u81ea\u52a8\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u521b\u5efa\u5305\u76ee\u5f55<\/p>\n<\/p>\n<p><p>\u5728\u521b\u5efa\u5e93\u65f6\uff0c\u9075\u5faaPython\u7684\u6807\u51c6\u76ee\u5f55\u7ed3\u6784\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4e00\u4e2aPython\u5e93\u7684\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>your-library\/<\/p>\n<p>    \u251c\u2500\u2500 your_library\/<\/p>\n<p>    \u2502   \u251c\u2500\u2500 __init__.py<\/p>\n<p>    \u2502   \u251c\u2500\u2500 module1.py<\/p>\n<p>    \u2502   \u2514\u2500\u2500 module2.py<\/p>\n<p>    \u251c\u2500\u2500 tests\/<\/p>\n<p>    \u2502   \u251c\u2500\u2500 test_module1.py<\/p>\n<p>    \u2502   \u2514\u2500\u2500 test_module2.py<\/p>\n<p>    \u251c\u2500\u2500 setup.py<\/p>\n<p>    \u251c\u2500\u2500 README.md<\/p>\n<p>    \u251c\u2500\u2500 LICENSE<\/p>\n<p>    \u2514\u2500\u2500 .gitignore<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>your_library\/<\/code>\uff1a\u5b58\u653e\u4f60\u7684\u5e93\u4ee3\u7801\u7684\u76ee\u5f55\uff0c\u5305\u542b\u5404\u4e2a\u6a21\u5757\u3002<\/li>\n<li><code>tests\/<\/code>\uff1a\u5305\u542b\u7528\u4e8e\u6d4b\u8bd5\u7684\u811a\u672c\u3002<\/li>\n<li><code>README.md<\/code>\uff1a\u63d0\u4f9b\u5e93\u7684\u8be6\u7ec6\u4fe1\u606f\u548c\u4f7f\u7528\u65b9\u6cd5\u3002<\/li>\n<li><code>LICENSE<\/code>\uff1a\u5e93\u7684\u8bb8\u53ef\u8bc1\u4fe1\u606f\u3002<\/li>\n<li><code>.gitignore<\/code>\uff1a\u6307\u5b9aGit\u5ffd\u7565\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u3002<\/li>\n<\/ul>\n<p><p><strong>\u786e\u4fdd\u5728\u4f60\u7684\u5e93\u76ee\u5f55\u4e2d\u6709\u4e00\u4e2a<code>__init__.py<\/code>\u6587\u4ef6<\/strong>\uff0c\u5b83\u53ef\u4ee5\u662f\u7a7a\u7684\uff0c\u4f46\u5b83\u7684\u5b58\u5728\u662f\u5fc5\u8981\u7684\uff0c\u4ee5\u4fbfPython\u5c06\u5176\u8bc6\u522b\u4e3a\u4e00\u4e2a\u5305\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u7f16\u5199\u6587\u6863\u548c\u6ce8\u91ca<\/p>\n<\/p>\n<p><p>\u826f\u597d\u7684\u6587\u6863\u548c\u6ce8\u91ca\u5bf9\u4e8e\u4e00\u4e2a\u6210\u529f\u7684Python\u5e93\u81f3\u5173\u91cd\u8981\u3002\u6587\u6863\u4e0d\u4ec5\u5305\u62ec<code>README.md<\/code>\u6587\u4ef6\uff0c\u8fd8\u5305\u62ec\u5728\u4ee3\u7801\u4e2d\u5199\u7684\u6ce8\u91ca\u548cdocstring\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u6a21\u5757\u548c\u51fd\u6570\uff0c\u786e\u4fdd\u4f60\u4f7f\u7528docstring\u6765\u89e3\u91ca\u5b83\u4eec\u7684\u7528\u9014\u3001\u53c2\u6570\u3001\u8fd4\u56de\u503c\u4ee5\u53ca\u53ef\u80fd\u7684\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(a, b):<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    Add two numbers together.<\/p>\n<p>    :param a: First number<\/p>\n<p>    :param b: Second number<\/p>\n<p>    :return: Sum of a and b<\/p>\n<p>    &quot;&quot;&quot;<\/p>\n<p>    return a + b<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u8be6\u7ec6\u7684docstring\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u5982\u4f55\u4f7f\u7528\u4f60\u7684\u5e93<\/strong>\uff0c\u5e76\u4e14\u5b83\u4e5f\u6709\u52a9\u4e8e\u81ea\u52a8\u6587\u6863\u751f\u6210\u5de5\u5177\uff08\u5982Sphinx\uff09\u6765\u751f\u6210\u6587\u6863\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u53d1\u5e03\u5230PyPI<\/p>\n<\/p>\n<p><p>\u4e00\u65e6\u4f60\u51c6\u5907\u597d\u4e86\u5e93\u7684\u4ee3\u7801\u3001\u6587\u6863\u548c\u6d4b\u8bd5\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u53d1\u5e03\u5230Python Package Index (PyPI)\uff0c\u4ee5\u4fbf\u5176\u4ed6\u4eba\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u4f7f\u7528\u5b83\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5b89\u88c5\u4e86<code>twine<\/code>\u548c<code>wheel<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install twine wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p>\u7136\u540e\uff0c\u5728\u5e93\u7684\u6839\u76ee\u5f55\u4e0b\uff0c\u751f\u6210\u5206\u53d1\u6587\u4ef6\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<\/li>\n<li>\n<p>\u4f7f\u7528<code>twine<\/code>\u5c06\u5305\u4e0a\u4f20\u5230PyPI\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">twine upload dist\/*<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u53d1\u5e03\u540e\uff0c\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u901a\u8fc7<code>pip install your-library-name<\/code>\u547d\u4ee4\u5b89\u88c5\u4f60\u7684\u5e93\u3002<\/p>\n<\/p>\n<p><p><strong>\u786e\u4fdd\u4f60\u7684\u9879\u76ee\u5728PyPI\u4e0a\u6709\u4e00\u4e2a\u72ec\u7279\u7684\u540d\u5b57<\/strong>\uff0c\u4ee5\u907f\u514d\u4e0e\u5176\u4ed6\u9879\u76ee\u540d\u79f0\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u7ef4\u62a4\u548c\u66f4\u65b0<\/p>\n<\/p>\n<p><p>\u53d1\u5e03\u540e\u7684\u5de5\u4f5c\u5e76\u6ca1\u6709\u7ed3\u675f\u3002\u4f60\u9700\u8981\u6301\u7eed\u7ef4\u62a4\u548c\u66f4\u65b0\u4f60\u7684\u5e93\uff0c\u4ee5\u4fee\u590dBug\u3001\u589e\u52a0\u65b0\u529f\u80fd\u6216\u6539\u8fdb\u6027\u80fd\u3002\u5b9a\u671f\u68c0\u67e5\u7528\u6237\u53cd\u9988\uff0c\u5e76\u6839\u636e\u9700\u8981\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u968f\u7740Python\u7248\u672c\u7684\u66f4\u65b0\u548c\u4f9d\u8d56\u5e93\u7684\u53d8\u5316\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u4f60\u7684\u5e93\u4ee5\u4fdd\u6301\u517c\u5bb9\u6027\u3002\u786e\u4fdd\u4f60\u7684\u5e93\u5728\u591a\u4e2aPython\u7248\u672c\u4e0a\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5e7f\u6cdb\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5c01\u88c5\u4e00\u4e2aPython\u5e93\u662f\u4e00\u4e2a\u7cfb\u7edf\u5316\u7684\u8fc7\u7a0b\uff0c\u4ece\u660e\u786e\u529f\u80fd\u6a21\u5757\u5230\u53d1\u5e03\u548c\u7ef4\u62a4\uff0c\u6bcf\u4e00\u6b65\u90fd\u9700\u8981\u4ed4\u7ec6\u7684\u8ba1\u5212\u548c\u6267\u884c\u3002\u901a\u8fc7\u9075\u5faa\u6807\u51c6\u7684Python\u5305\u7ed3\u6784\u3001\u64b0\u5199\u8be6\u7ec6\u7684\u6587\u6863\u548c\u6ce8\u91ca\uff0c\u4ee5\u53ca\u786e\u4fdd\u5728\u591a\u4e2a\u73af\u5883\u4e0b\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6613\u4e8e\u4f7f\u7528\u3001\u7ef4\u62a4\u548c\u6269\u5c55\u7684Python\u5e93\u3002<strong>\u4e0d\u65ad\u66f4\u65b0\u548c\u6539\u8fdb\u4f60\u7684\u5e93\uff0c\u786e\u4fdd\u5b83\u80fd\u591f\u6ee1\u8db3\u7528\u6237\u7684\u9700\u6c42\u5e76\u4e0e\u65f6\u4ff1\u8fdb\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u4ee3\u7801\u5c01\u88c5\u6210\u4e00\u4e2a\u5e93\uff1f<\/strong><br \/>\u5c01\u88c5Python\u4ee3\u7801\u4e3a\u5e93\u901a\u5e38\u6d89\u53ca\u521b\u5efa\u4e00\u4e2a\u6a21\u5757\u6216\u5305\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5c06\u76f8\u5173\u7684Python\u6587\u4ef6\u7ec4\u7ec7\u5728\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u5e76\u786e\u4fdd\u8be5\u76ee\u5f55\u5305\u542b\u4e00\u4e2a<code>__init__.py<\/code>\u6587\u4ef6\u3002\u8fd9\u4e2a\u6587\u4ef6\u53ef\u4ee5\u662f\u7a7a\u7684\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u521d\u59cb\u5316\u5305\u4e2d\u7684\u6a21\u5757\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u5728\u8be5\u76ee\u5f55\u4e2d\u6dfb\u52a0\u60a8\u7684\u529f\u80fd\u6a21\u5757\uff0c\u7136\u540e\u901a\u8fc7\u5728\u5176\u4ed6Python\u6587\u4ef6\u4e2d\u5bfc\u5165\u8fd9\u4e9b\u6a21\u5757\u6765\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u5e93\u4e2d\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb\uff1f<\/strong><br \/>\u5728\u5f00\u53d1Python\u5e93\u65f6\uff0c\u7ba1\u7406\u4f9d\u8d56\u5173\u7cfb\u975e\u5e38\u91cd\u8981\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a<code>requirements.txt<\/code>\u6587\u4ef6\uff0c\u5217\u51fa\u6240\u6709\u9700\u8981\u7684\u7b2c\u4e09\u65b9\u5e93\u53ca\u5176\u7248\u672c\u3002\u7528\u6237\u5728\u5b89\u88c5\u60a8\u7684\u5e93\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>pip install -r requirements.txt<\/code>\u547d\u4ee4\u8f7b\u677e\u5b89\u88c5\u8fd9\u4e9b\u4f9d\u8d56\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5728<code>setup.py<\/code>\u6587\u4ef6\u4e2d\u6307\u5b9a\u4f9d\u8d56\u9879\uff0c\u4ee5\u4fbf\u5728\u7528\u6237\u5b89\u88c5\u5e93\u65f6\u81ea\u52a8\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5982\u4f55\u53d1\u5e03\u548c\u5206\u4eab\u6211\u7684Python\u5e93\uff1f<\/strong><br \/>\u8981\u53d1\u5e03Python\u5e93\uff0c\u60a8\u53ef\u4ee5\u5c06\u5176\u4e0a\u4f20\u5230Python Package Index (PyPI)\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u7684\u5e93\u6709\u4e00\u4e2a<code>setup.py<\/code>\u6587\u4ef6\uff0c\u5e76\u5728\u5176\u4e2d\u5305\u542b\u5e93\u7684\u540d\u79f0\u3001\u7248\u672c\u3001\u63cf\u8ff0\u548c\u4f5c\u8005\u4fe1\u606f\u3002\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528<code>twine<\/code>\u5de5\u5177\u5c06\u60a8\u7684\u5e93\u4e0a\u4f20\u5230PyPI\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c<code>pip install your-library-name<\/code>\u8f7b\u677e\u5b89\u88c5\u60a8\u7684\u5e93\u3002\u786e\u4fdd\u5728\u53d1\u5e03\u4e4b\u524d\u8fdb\u884c\u5145\u5206\u7684\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5e93\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5c01\u88c5\u5e93\u7684\u6b65\u9aa4\u4e3b\u8981\u5305\u62ec\uff1a\u5b9a\u4e49\u529f\u80fd\u6a21\u5757\u3001\u7f16\u5199setup\u811a\u672c\u3001\u521b\u5efa\u5305\u76ee\u5f55\u3001\u7f16\u5199\u6587\u6863\u548c\u6ce8\u91ca\u3001\u53d1\u5e03\u5230PyPI [&hellip;]","protected":false},"author":3,"featured_media":946932,"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\/946926"}],"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=946926"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/946926\/revisions"}],"predecessor-version":[{"id":946933,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/946926\/revisions\/946933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/946932"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=946926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=946926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=946926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}