{"id":943417,"date":"2024-12-26T22:39:46","date_gmt":"2024-12-26T14:39:46","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/943417.html"},"modified":"2024-12-26T22:39:49","modified_gmt":"2024-12-26T14:39:49","slug":"python%e5%a6%82%e4%bd%95%e5%af%bc%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/943417.html","title":{"rendered":"python\u5982\u4f55\u5bfc\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25080833\/e8c3ee6b-d3ce-41ce-b6ac-48bc72b97d81.webp\" alt=\"python\u5982\u4f55\u5bfc\u5e93\" \/><\/p>\n<p><p> \u4e00\u3001\u5bfc\u5165Python\u5e93\u7684\u57fa\u672c\u65b9\u6cd5<\/p>\n<\/p>\n<p><p><strong>\u5728Python\u4e2d\u5bfc\u5165\u5e93\u4e3b\u8981\u901a\u8fc7\u4f7f\u7528import\u8bed\u53e5\u3001\u4f7f\u7528from&#8230;import\u8bed\u53e5\u3001\u4f7f\u7528\u522b\u540d\u5bfc\u5165\u5e93<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u9879\u76ee\u4e2d\u9ad8\u6548\u5730\u4f7f\u7528\u5916\u90e8\u5e93\u3002<strong>import\u8bed\u53e5<\/strong>\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u901a\u5e38\u7528\u4e8e\u5bfc\u5165\u6574\u4e2a\u6a21\u5757\uff1b<strong>from&#8230;import\u8bed\u53e5<\/strong>\u7528\u4e8e\u4ece\u6a21\u5757\u4e2d\u5bfc\u5165\u7279\u5b9a\u7684\u51fd\u6570\u6216\u7c7b\uff1b<strong>\u4f7f\u7528\u522b\u540d\u5bfc\u5165\u5e93<\/strong>\u53ef\u4ee5\u4e3a\u5e93\u6216\u6a21\u5757\u7684\u540d\u79f0\u521b\u5efa\u4e00\u4e2a\u7b80\u77ed\u7684\u522b\u540d\u3002\u4ee5\u4e0b\u6211\u4eec\u5c06\u8be6\u7ec6\u8bb2\u89e3\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528import\u8bed\u53e5\u5bfc\u5165\u5e93\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u5f53\u4f60\u5728Python\u811a\u672c\u4e2d\u4f7f\u7528import\u8bed\u53e5\u65f6\uff0cPython\u4f1a\u5728\u5176\u641c\u7d22\u8def\u5f84\u4e2d\u67e5\u627e\u6307\u5b9a\u7684\u6a21\u5757\uff0c\u5e76\u5c06\u5176\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u8bbf\u95ee\u6a21\u5757\u4e2d\u7684\u6240\u6709\u51fd\u6570\u548c\u7c7b\u3002\u4f8b\u5982\uff0c\u8981\u5bfc\u5165\u6807\u51c6\u5e93\u4e2d\u7684math\u6a21\u5757\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u8bed\u53e5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5bfc\u5165\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6a21\u5757\u540d\u79f0\u8bbf\u95ee\u5176\u4e2d\u7684\u51fd\u6570\u548c\u5c5e\u6027\uff0c\u6bd4\u5982\u8ba1\u7b97\u5e73\u65b9\u6839\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sqrt_value = math.sqrt(9)<\/p>\n<p>print(sqrt_value)  # \u8f93\u51fa\u7ed3\u679c\u4e3a3.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528from&#8230;import\u8bed\u53e5\u5bfc\u5165\u7279\u5b9a\u51fd\u6570\u6216\u7c7b<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\u4f60\u53ea\u9700\u8981\u6a21\u5757\u4e2d\u7684\u67d0\u4e2a\u7279\u5b9a\u51fd\u6570\u6216\u7c7b\uff0c\u53ef\u4ee5\u4f7f\u7528from&#8230;import\u8bed\u53e5\u76f4\u63a5\u5bfc\u5165\u5b83\u4eec\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u7b80\u6d01\uff0c\u5e76\u4e14\u5728\u4f7f\u7528\u8fd9\u4e9b\u51fd\u6570\u6216\u7c7b\u65f6\u4e0d\u9700\u8981\u6307\u5b9a\u6a21\u5757\u540d\u79f0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from math import sqrt<\/p>\n<p>sqrt_value = sqrt(16)<\/p>\n<p>print(sqrt_value)  # \u8f93\u51fa\u7ed3\u679c\u4e3a4.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u51cf\u5c11\u4ee3\u7801\u7684\u957f\u5ea6\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u9891\u7e41\u4f7f\u7528\u67d0\u4e2a\u51fd\u6570\u6216\u7c7b\u65f6\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4f7f\u7528from&#8230;import\u8bed\u53e5\u65f6\u8981\u786e\u4fdd\u5bfc\u5165\u7684\u51fd\u6570\u6216\u7c7b\u540d\u79f0\u5728\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u4e2d\u662f\u552f\u4e00\u7684\uff0c\u4ee5\u907f\u514d\u540d\u79f0\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4e3a\u6a21\u5757\u6216\u51fd\u6570\u8bbe\u7f6e\u522b\u540d<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6a21\u5757\u540d\u79f0\u53ef\u80fd\u8f83\u957f\u6216\u8005\u5bb9\u6613\u5f15\u8d77\u6df7\u6dc6\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528as\u5173\u952e\u5b57\u4e3a\u6a21\u5757\u6216\u51fd\u6570\u8bbe\u7f6e\u4e00\u4e2a\u522b\u540d\u3002\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u7528\u4e8e\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982pandas\u548cnumpy\uff0c\u5b83\u4eec\u901a\u5e38\u6709\u8f83\u957f\u7684\u540d\u79f0\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>array = np.array([1, 2, 3])<\/p>\n<p>print(array)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u4f60\u53ef\u4ee5\u7528np\u4ee3\u66ffnumpy\uff0c\u8fd9\u4f7f\u5f97\u4ee3\u7801\u66f4\u7b80\u6d01\u6613\u8bfb\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u6807\u51c6\u5e93\u548c\u7b2c\u4e09\u65b9\u5e93\uff0cPython\u8fd8\u5141\u8bb8\u4f60\u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\u3002\u81ea\u5b9a\u4e49\u6a21\u5757\u53ef\u4ee5\u662f\u4f60\u81ea\u5df1\u7f16\u5199\u7684Python\u6587\u4ef6\u6216\u5305\u3002\u5728\u540c\u4e00\u4e2a\u9879\u76ee\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7import\u8bed\u53e5\u76f4\u63a5\u5bfc\u5165\u8fd9\u4e9b\u6a21\u5757\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u540d\u4e3amy_module.py\u7684Python\u6587\u4ef6\uff0c\u5176\u4e2d\u5b9a\u4e49\u4e86\u4e00\u4e2a\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># my_module.py<\/p>\n<p>def greet(name):<\/p>\n<p>    return f&quot;Hello, {name}!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u53e6\u4e00\u4e2aPython\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5bfc\u5165\u5e76\u4f7f\u7528\u8fd9\u4e2a\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import my_module<\/p>\n<p>message = my_module.greet(&quot;Alice&quot;)<\/p>\n<p>print(message)  # \u8f93\u51fa\u7ed3\u679c\u4e3a&quot;Hello, Alice!&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5305\u548c\u5b50\u6a21\u5757<\/p>\n<\/p>\n<p><p>\u5728\u590d\u6742\u7684\u9879\u76ee\u4e2d\uff0c\u4ee3\u7801\u901a\u5e38\u4f1a\u5206\u5e03\u5728\u591a\u4e2a\u6a21\u5757\u548c\u5b50\u6a21\u5757\u4e2d\u3002Python\u652f\u6301\u4f7f\u7528\u5305\u6765\u7ec4\u7ec7\u8fd9\u4e9b\u6a21\u5757\u3002\u5305\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6a21\u5757\u7684\u76ee\u5f55\uff0c\u901a\u5e38\u5305\u542b\u4e00\u4e2a__init__.py\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u76ee\u5f55\u7ed3\u6784\uff1a<\/p>\n<\/p>\n<p><pre><code>my_package\/<\/p>\n<p>    __init__.py<\/p>\n<p>    module1.py<\/p>\n<p>    module2.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5bfc\u5165\u5305\u4e2d\u7684\u6a21\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from my_package import module1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406\u4ee3\u7801\u7ed3\u6784\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5728Python\u9879\u76ee\u4e2d\u7ba1\u7406\u4f9d\u8d56<\/p>\n<\/p>\n<p><p>\u5728\u5927\u578b\u9879\u76ee\u4e2d\uff0c\u901a\u5e38\u4f1a\u4f9d\u8d56\u591a\u4e2a\u7b2c\u4e09\u65b9\u5e93\u3002\u4e3a\u4e86\u65b9\u4fbf\u7ba1\u7406\u8fd9\u4e9b\u4f9d\u8d56\u9879\uff0cPython\u63a8\u8350\u4f7f\u7528\u865a\u62df\u73af\u5883\u548c\u4f9d\u8d56\u7ba1\u7406\u5de5\u5177\uff0c\u5982pip\u548crequirements.txt\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u865a\u62df\u73af\u5883<\/strong>\uff1a\u865a\u62df\u73af\u5883\u5141\u8bb8\u4f60\u4e3a\u6bcf\u4e2a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u907f\u514d\u5e93\u7248\u672c\u51b2\u7a81\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u542f\u52a8\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source myenv\/bin\/activate  # \u5bf9\u4e8eUnix\u6216MacOS<\/p>\n<p>myenv\\Scripts\\activate  # \u5bf9\u4e8eWindows<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong>\uff1a\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install numpy pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u751f\u6210requirements.txt<\/strong>\uff1a\u4e3a\u4e86\u8bb0\u5f55\u5f53\u524d\u73af\u5883\u4e2d\u7684\u6240\u6709\u4f9d\u8d56\u5e93\uff0c\u53ef\u4ee5\u751f\u6210requirements.txt\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip freeze &gt; requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5\u4f9d\u8d56\u9879<\/strong>\uff1a\u5728\u65b0\u7684\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7requirements.txt\u6587\u4ef6\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u9879\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6848<\/p>\n<\/p>\n<p><p>\u5728\u5bfc\u5165\u5e93\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u5982\u6a21\u5757\u672a\u627e\u5230\u3001\u7248\u672c\u4e0d\u517c\u5bb9\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6a21\u5757\u672a\u627e\u5230<\/strong>\uff1a\u68c0\u67e5\u662f\u5426\u6b63\u786e\u5b89\u88c5\u4e86\u6a21\u5757\uff0c\u53ef\u4ee5\u4f7f\u7528pip list\u547d\u4ee4\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u4e0d\u517c\u5bb9<\/strong>\uff1a\u786e\u4fdd\u5b89\u88c5\u7684\u5e93\u7248\u672c\u4e0e\u9879\u76ee\u9700\u6c42\u4e00\u81f4\uff0c\u53ef\u4ee5\u901a\u8fc7pip show <package>\u67e5\u770b\u5e93\u7684\u7248\u672c\u4fe1\u606f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8def\u5f84\u95ee\u9898<\/strong>\uff1a\u5982\u679c\u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\u65f6\u51fa\u73b0\u95ee\u9898\uff0c\u786e\u4fdd\u6a21\u5757\u6240\u5728\u76ee\u5f55\u5728Python\u7684\u641c\u7d22\u8def\u5f84\u4e2d\u3002\u53ef\u4ee5\u901a\u8fc7sys.path\u67e5\u770b\u5f53\u524d\u7684\u641c\u7d22\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u4f60\u53ef\u4ee5\u5728Python\u9879\u76ee\u4e2d\u9ad8\u6548\u5730\u7ba1\u7406\u548c\u5bfc\u5165\u5e93\uff0c\u4ece\u800c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b89\u88c5\u7b2c\u4e09\u65b9\u5e93\u901a\u5e38\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177<code>pip<\/code>\u3002\u53ea\u9700\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>pip install \u5e93\u540d<\/code>\uff08\u4f8b\u5982\uff1a<code>pip install requests<\/code>\uff09\u3002\u5b89\u88c5\u540e\uff0c\u60a8\u5c31\u53ef\u4ee5\u5728Python\u4ee3\u7801\u4e2d\u901a\u8fc7<code>import \u5e93\u540d<\/code>\u6765\u4f7f\u7528\u8be5\u5e93\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5bfc\u5165\u5e93\u65f6\u6709\u54ea\u4e9b\u5e38\u89c1\u9519\u8bef\uff1f<\/strong><br \/>\u5bfc\u5165\u5e93\u65f6\uff0c\u5e38\u89c1\u9519\u8bef\u5305\u62ec\u201cModuleNotFoundError\u201d\uff0c\u8fd9\u901a\u5e38\u8868\u793a\u8be5\u5e93\u5c1a\u672a\u5b89\u88c5\u3002\u5176\u4ed6\u9519\u8bef\u5982\u201cImportError\u201d\u53ef\u80fd\u662f\u7531\u4e8e\u5e93\u7684\u7248\u672c\u4e0d\u517c\u5bb9\u6216\u5bfc\u5165\u8def\u5f84\u4e0d\u6b63\u786e\u3002\u786e\u4fdd\u5e93\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u5e76\u68c0\u67e5Python\u73af\u5883\u7684\u914d\u7f6e\u3002<\/p>\n<p><strong>\u5982\u4f55\u67e5\u770b\u5df2\u5b89\u88c5\u7684Python\u5e93\u5217\u8868\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c\u547d\u4ee4<code>pip list<\/code>\u5728\u547d\u4ee4\u884c\u4e2d\u67e5\u770b\u5f53\u524d\u73af\u5883\u4e2d\u5df2\u5b89\u88c5\u7684\u6240\u6709\u5e93\u53ca\u5176\u7248\u672c\u3002\u8fd9\u6837\u53ef\u4ee5\u5e2e\u52a9\u60a8\u786e\u8ba4\u6240\u9700\u5e93\u662f\u5426\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u6216\u8fdb\u884c\u7248\u672c\u7ba1\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e00\u3001\u5bfc\u5165Python\u5e93\u7684\u57fa\u672c\u65b9\u6cd5 \u5728Python\u4e2d\u5bfc\u5165\u5e93\u4e3b\u8981\u901a\u8fc7\u4f7f\u7528import\u8bed\u53e5\u3001\u4f7f\u7528from&#038;#8230 [&hellip;]","protected":false},"author":3,"featured_media":943421,"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\/943417"}],"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=943417"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/943417\/revisions"}],"predecessor-version":[{"id":943422,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/943417\/revisions\/943422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/943421"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=943417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=943417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=943417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}