{"id":928651,"date":"2024-12-26T16:39:26","date_gmt":"2024-12-26T08:39:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/928651.html"},"modified":"2024-12-26T16:39:29","modified_gmt":"2024-12-26T08:39:29","slug":"python-import%e5%a6%82%e4%bd%95%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/928651.html","title":{"rendered":"python import\u5982\u4f55\u7528"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064224\/089aa996-276f-4309-b5ff-85b7cb65ff37.webp\" alt=\"python import\u5982\u4f55\u7528\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c<code>import<\/code>\u8bed\u53e5\u7528\u4e8e\u5c06\u6a21\u5757\u6216\u5305\u5f15\u5165\u5230\u5f53\u524d\u7684\u7a0b\u5e8f\u4e2d\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u80fd\u591f\u8bbf\u95ee\u6a21\u5757\u4e2d\u5b9a\u4e49\u7684\u51fd\u6570\u3001\u7c7b\u548c\u53d8\u91cf\u3002\u4f7f\u7528<code>import<\/code>\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u91cd\u7528\u6027\u3001\u7ec4\u7ec7\u6027\u548c\u53ef\u7ef4\u62a4\u6027<\/strong>\u3002\u5728\u4f7f\u7528<code>import<\/code>\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528\u57fa\u672c\u7684<code>import<\/code>\u8bed\u53e5\u3001\u4f7f\u7528<code>from...import<\/code>\u8bed\u53e5\u3001\u4f7f\u7528<code>as<\/code>\u5173\u952e\u5b57\u7ed9\u6a21\u5757\u6216\u51fd\u6570\u8d77\u522b\u540d\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u7528\u6cd5\uff0c\u5e76\u63d0\u4f9b\u5b9e\u7528\u7684\u793a\u4f8b\u548c\u5efa\u8bae\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001BASIC IMPORT\u8bed\u53e5<\/p>\n<\/p>\n<p><p><code>import<\/code>\u8bed\u53e5\u662fPython\u4e2d\u6700\u57fa\u672c\u7684\u5bfc\u5165\u65b9\u5f0f\uff0c\u7528\u4e8e\u5c06\u6574\u4e2a\u6a21\u5757\u5bfc\u5165\u5230\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u4e2d\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u5bfc\u5165\u6a21\u5757\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u201c\u6a21\u5757\u540d.\u5bf9\u8c61\u540d\u201d\u7684\u5f62\u5f0f\u6765\u8bbf\u95ee\u6a21\u5757\u4e2d\u7684\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>result = math.sqrt(16)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5bfc\u5165\u4e86<code>math<\/code>\u6a21\u5757\uff0c\u5e76\u4f7f\u7528<code>math.sqrt()<\/code>\u51fd\u6570\u6765\u8ba1\u7b9716\u7684\u5e73\u65b9\u6839\u3002\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\u7684\u4e00\u4e2a\u597d\u5904\u662f\uff0c\u80fd\u591f\u6e05\u6670\u5730\u77e5\u9053\u5bf9\u8c61\u6765\u81ea\u54ea\u4e2a\u6a21\u5757\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<ol>\n<li><strong>\u660e\u786e\u6a21\u5757\u6765\u6e90<\/strong>\uff1a\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\u53ef\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\uff0c\u6e05\u695a\u5730\u663e\u793a\u51fa\u5bf9\u8c61\u4ece\u54ea\u4e2a\u6a21\u5757\u5bfc\u5165\u3002<\/li>\n<li><strong>\u907f\u514d\u547d\u540d\u51b2\u7a81<\/strong>\uff1a\u4f7f\u7528\u6a21\u5757\u540d\u4f5c\u4e3a\u524d\u7f00\u53ef\u4ee5\u907f\u514d\u547d\u540d\u51b2\u7a81\uff0c\u5c24\u5176\u662f\u5728\u5927\u578b\u9879\u76ee\u4e2d\u3002<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001FROM&#8230;IMPORT\u8bed\u53e5<\/p>\n<\/p>\n<p><p><code>from...import<\/code>\u8bed\u53e5\u7528\u4e8e\u4ece\u6a21\u5757\u4e2d\u5bfc\u5165\u7279\u5b9a\u7684\u5bf9\u8c61\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u5bf9\u8c61\u540d\uff0c\u800c\u4e0d\u9700\u8981\u4f7f\u7528\u201c\u6a21\u5757\u540d.\u5bf9\u8c61\u540d\u201d\u7684\u5f62\u5f0f\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u5408\u4e8e\u53ea\u9700\u8981\u6a21\u5757\u4e2d\u67d0\u4e2a\u6216\u67d0\u4e9b\u7279\u5b9a\u5bf9\u8c61\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">from math import sqrt<\/p>\n<p>result = sqrt(25)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u53ea\u5bfc\u5165\u4e86<code>math<\/code>\u6a21\u5757\u4e2d\u7684<code>sqrt<\/code>\u51fd\u6570\uff0c\u4ece\u800c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>sqrt()<\/code>\u8fdb\u884c\u8ba1\u7b97\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<ol>\n<li><strong>\u7b80\u5316\u4ee3\u7801<\/strong>\uff1a\u5728\u9700\u8981\u9891\u7e41\u4f7f\u7528\u67d0\u4e2a\u6a21\u5757\u4e2d\u7684\u7279\u5b9a\u5bf9\u8c61\u65f6\uff0c<code>from...import<\/code>\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3002<\/li>\n<li><strong>\u63d0\u9ad8\u6548\u7387<\/strong>\uff1a\u53ea\u5bfc\u5165\u9700\u8981\u7684\u5bf9\u8c61\u53ef\u4ee5\u51cf\u5c11\u5185\u5b58\u4f7f\u7528\uff0c\u63d0\u5347\u7a0b\u5e8f\u6548\u7387\u3002<\/li>\n<li><strong>\u6ce8\u610f\u547d\u540d\u51b2\u7a81<\/strong>\uff1a\u8fd9\u79cd\u65b9\u5f0f\u5bb9\u6613\u5bfc\u81f4\u547d\u540d\u51b2\u7a81\uff0c\u5e94\u786e\u4fdd\u5bfc\u5165\u7684\u5bf9\u8c61\u540d\u5728\u5f53\u524d\u547d\u540d\u7a7a\u95f4\u4e2d\u552f\u4e00\u3002<\/li>\n<\/ol>\n<p><p>\u4e09\u3001AS\u5173\u952e\u5b57<\/p>\n<\/p>\n<p><p><code>as<\/code>\u5173\u952e\u5b57\u7528\u4e8e\u7ed9\u5bfc\u5165\u7684\u6a21\u5757\u6216\u5bf9\u8c61\u8d77\u4e00\u4e2a\u522b\u540d\uff0c\u522b\u540d\u53ef\u4ee5\u4f7f\u4ee3\u7801\u66f4\u7b80\u6d01\u6216\u907f\u514d\u547d\u540d\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b<\/h3>\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>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5c06<code>numpy<\/code>\u6a21\u5757\u91cd\u547d\u540d\u4e3a<code>np<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u7b80\u5316\u4ee3\u7801\u4e66\u5199\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<ol>\n<li><strong>\u7f29\u77ed\u6a21\u5757\u540d<\/strong>\uff1a\u5bf9\u4e8e\u540d\u79f0\u8f83\u957f\u7684\u6a21\u5757\uff0c\u4f7f\u7528\u522b\u540d\u53ef\u4ee5\u7b80\u5316\u4ee3\u7801\u4e66\u5199\u3002<\/li>\n<li><strong>\u907f\u514d\u51b2\u7a81<\/strong>\uff1a\u5728\u547d\u540d\u51b2\u7a81\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e3a\u6a21\u5757\u6216\u5bf9\u8c61\u8d77\u522b\u540d\u6765\u89e3\u51b3\u3002<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5bfc\u5165\u5305<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5305\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6a21\u5757\u7684\u76ee\u5f55\u3002\u4f7f\u7528<code>import<\/code>\u5bfc\u5165\u5305\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u70b9\u53f7<code>.<\/code>\u6765\u8bbf\u95ee\u5305\u4e2d\u7684\u5b50\u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">import mypackage.mymodule<\/p>\n<p>mypackage.mymodule.myfunction()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u5bfc\u5165\u4e86<code>mypackage<\/code>\u5305\u4e2d\u7684<code>mymodule<\/code>\u6a21\u5757\uff0c\u5e76\u8c03\u7528\u4e86\u5176\u4e2d\u7684<code>myfunction()<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<ol>\n<li><strong>\u7ec4\u7ec7\u4ee3\u7801<\/strong>\uff1a\u5c06\u76f8\u5173\u7684\u6a21\u5757\u653e\u5165\u5305\u4e2d\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u4ee3\u7801\u3002<\/li>\n<li><strong>\u63a7\u5236\u8bbf\u95ee<\/strong>\uff1a\u901a\u8fc7<code>__init__.py<\/code>\u6587\u4ef6\uff0c\u53ef\u4ee5\u63a7\u5236\u5305\u4e2d\u54ea\u4e9b\u6a21\u5757\u53ef\u4ee5\u88ab\u5916\u90e8\u8bbf\u95ee\u3002<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u52a8\u6001\u5bfc\u5165<\/p>\n<\/p>\n<p><p>\u52a8\u6001\u5bfc\u5165\u662f\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\uff0c\u6839\u636e\u9700\u8981\u5bfc\u5165\u6a21\u5757\u3002\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u6839\u636e\u7528\u6237\u8f93\u5165\u6216\u5176\u4ed6\u6761\u4ef6\u5bfc\u5165\u4e0d\u540c\u6a21\u5757\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u793a\u4f8b<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">module_name = &quot;math&quot;<\/p>\n<p>module = __import__(module_name)<\/p>\n<p>result = module.sqrt(9)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6839\u636e\u53d8\u91cf<code>module_name<\/code>\u7684\u503c\u52a8\u6001\u5bfc\u5165\u6a21\u5757\uff0c\u5e76\u4f7f\u7528\u5176\u4e2d\u7684<code>sqrt()<\/code>\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u5efa\u8bae<\/h3>\n<\/p>\n<ol>\n<li><strong>\u63d0\u9ad8\u7075\u6d3b\u6027<\/strong>\uff1a\u52a8\u6001\u5bfc\u5165\u53ef\u4ee5\u4f7f\u7a0b\u5e8f\u66f4\u52a0\u7075\u6d3b\uff0c\u9002\u5e94\u591a\u53d8\u7684\u9700\u6c42\u3002<\/li>\n<li><strong>\u6ce8\u610f\u6027\u80fd<\/strong>\uff1a\u52a8\u6001\u5bfc\u5165\u53ef\u80fd\u4f1a\u5f71\u54cd\u6027\u80fd\uff0c\u5e94\u8c28\u614e\u4f7f\u7528\u3002<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5bfc\u5165\u7684\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<ol>\n<li><strong>\u9075\u5faaPEP 8\u89c4\u8303<\/strong>\uff1aPEP 8\u662fPython\u7684\u7f16\u7801\u98ce\u683c\u6307\u5357\uff0c\u5efa\u8bae\u5c06\u6240\u6709\u7684<code>import<\/code>\u8bed\u53e5\u653e\u5728\u6587\u4ef6\u7684\u5f00\u5934\u3002<\/li>\n<li><strong>\u6309\u987a\u5e8f\u5bfc\u5165<\/strong>\uff1a\u9996\u5148\u5bfc\u5165\u6807\u51c6\u5e93\u6a21\u5757\uff0c\u7136\u540e\u662f\u7b2c\u4e09\u65b9\u6a21\u5757\uff0c\u6700\u540e\u662f\u81ea\u5b9a\u4e49\u6a21\u5757\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165<\/strong>\uff1a\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\uff0c\u4f18\u5148\u4f7f\u7528\u7edd\u5bf9\u5bfc\u5165\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002<\/li>\n<li><strong>\u907f\u514d\u5faa\u73af\u5bfc\u5165<\/strong>\uff1a\u5faa\u73af\u5bfc\u5165\u4f1a\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\uff0c\u5e94\u901a\u8fc7\u91cd\u6784\u4ee3\u7801\u6216\u4f7f\u7528\u5ef6\u8fdf\u5bfc\u5165\u6765\u89e3\u51b3\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u5408\u7406\u4f7f\u7528<code>import<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u63d0\u9ad8Python\u7a0b\u5e8f\u7684\u53ef\u8bfb\u6027\u3001\u53ef\u7ef4\u62a4\u6027\u548c\u6548\u7387\u3002\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u5bfc\u5165\u65b9\u5f0f\uff0c\u5e76\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\uff0c\u662f\u7f16\u5199\u9ad8\u8d28\u91cfPython\u4ee3\u7801\u7684\u91cd\u8981\u4e00\u6b65\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5bfc\u5165\u81ea\u5b9a\u4e49\u6a21\u5757\u7684\u65b9\u5f0f\u4e0e\u5bfc\u5165\u6807\u51c6\u5e93\u6a21\u5757\u76f8\u4f3c\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u6a21\u5757\u6587\u4ef6\uff08.py\u6587\u4ef6\uff09\u4e0e\u4e3b\u7a0b\u5e8f\u5728\u540c\u4e00\u76ee\u5f55\u4e0b\uff0c\u6216\u8005\u5728Python\u7684\u6a21\u5757\u641c\u7d22\u8def\u5f84\u4e2d\u3002\u4f7f\u7528<code>import module_name<\/code>\u7684\u65b9\u5f0f\u5bfc\u5165\u6a21\u5757\uff0c\u6216\u8005\u4f7f\u7528<code>from module_name import function_name<\/code>\u7684\u65b9\u5f0f\u5bfc\u5165\u7279\u5b9a\u7684\u51fd\u6570\u3002\u8fd9\u6837\uff0c\u4f60\u5c31\u53ef\u4ee5\u5728\u7a0b\u5e8f\u4e2d\u8c03\u7528\u6a21\u5757\u5185\u7684\u51fd\u6570\u6216\u7c7b\u4e86\u3002<\/p>\n<p><strong>Python\u4e2d\u7684\u5bfc\u5165\u8bed\u53e5\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5f62\u5f0f\uff1f<\/strong><br \/>\u5bfc\u5165\u6a21\u5757\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u5f62\u5f0f\u3002\u6700\u5e38\u89c1\u7684\u662f<code>import module_name<\/code>\uff0c\u5b83\u4f1a\u5bfc\u5165\u6574\u4e2a\u6a21\u5757\u3002\u8fd8\u6709<code>from module_name import function_name<\/code>\uff0c\u53ea\u5bfc\u5165\u6307\u5b9a\u7684\u51fd\u6570\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528<code>import module_name as alias<\/code>\u6765\u4e3a\u6a21\u5757\u521b\u5efa\u4e00\u4e2a\u522b\u540d\uff0c\u65b9\u4fbf\u540e\u7eed\u8c03\u7528\u3002\u5229\u7528\u8fd9\u4e9b\u7075\u6d3b\u7684\u5bfc\u5165\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u5f0f\u6765\u7ec4\u7ec7\u548c\u4f7f\u7528\u4ee3\u7801\u3002<\/p>\n<p><strong>\u5bfc\u5165\u6a21\u5757\u65f6\u9047\u5230ImportError\u5e94\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u5f53\u5728\u5bfc\u5165\u6a21\u5757\u65f6\u9047\u5230<code>ImportError<\/code>\uff0c\u901a\u5e38\u610f\u5473\u7740Python\u65e0\u6cd5\u627e\u5230\u6307\u5b9a\u7684\u6a21\u5757\u3002\u8fd9\u53ef\u80fd\u662f\u56e0\u4e3a\u6a21\u5757\u540d\u79f0\u62fc\u5199\u9519\u8bef\u3001\u6a21\u5757\u672a\u5b89\u88c5\uff0c\u6216\u6a21\u5757\u4e0d\u5728Python\u7684\u641c\u7d22\u8def\u5f84\u4e2d\u3002\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5\u6a21\u5757\u540d\u79f0\u3001\u786e\u4fdd\u6a21\u5757\u5df2\u6b63\u786e\u5b89\u88c5\uff08\u4f7f\u7528<code>pip install<\/code>\u8fdb\u884c\u5b89\u88c5\uff09\uff0c\u4ee5\u53ca\u67e5\u770b<code>sys.path<\/code>\u6765\u786e\u8ba4\u6a21\u5757\u7684\u641c\u7d22\u8def\u5f84\u662f\u5426\u5305\u542b\u76ee\u6807\u6a21\u5757\u7684\u4f4d\u7f6e\uff0c\u6765\u89e3\u51b3\u8be5\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0cimport\u8bed\u53e5\u7528\u4e8e\u5c06\u6a21\u5757\u6216\u5305\u5f15\u5165\u5230\u5f53\u524d\u7684\u7a0b\u5e8f\u4e2d\uff0c\u4ece\u800c\u4f7f\u7528\u6237\u80fd\u591f\u8bbf\u95ee\u6a21\u5757\u4e2d\u5b9a\u4e49\u7684\u51fd\u6570\u3001\u7c7b\u548c\u53d8 [&hellip;]","protected":false},"author":3,"featured_media":928656,"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\/928651"}],"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=928651"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/928651\/revisions"}],"predecessor-version":[{"id":928657,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/928651\/revisions\/928657"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/928656"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=928651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=928651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=928651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}