{"id":1004703,"date":"2024-12-27T10:28:58","date_gmt":"2024-12-27T02:28:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1004703.html"},"modified":"2024-12-27T10:29:00","modified_gmt":"2024-12-27T02:29:00","slug":"python-%e5%a6%82%e4%bd%95%e6%8f%90%e5%8d%87%e9%80%9f%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1004703.html","title":{"rendered":"python \u5982\u4f55\u63d0\u5347\u901f\u5ea6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081536\/535da20a-00c9-4787-838a-157fed6bbd0a.webp\" alt=\"python \u5982\u4f55\u63d0\u5347\u901f\u5ea6\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u63d0\u5347\u901f\u5ea6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f18\u5316\u7b97\u6cd5\u3001\u4f7f\u7528C\u6269\u5c55\u3001\u5e76\u884c\u5904\u7406\u3001\u4f7f\u7528\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u548c\u5e93\uff08\u5982NumPy\uff09\u3001\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97\u3002<\/strong>\u5176\u4e2d\uff0c\u4f18\u5316\u7b97\u6cd5\u662f\u6700\u76f4\u63a5\u4e14\u9ad8\u6548\u7684\u65b9\u5f0f\u3002\u901a\u8fc7\u9009\u62e9\u5408\u9002\u7684\u7b97\u6cd5\u548c\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u663e\u8457\u51cf\u5c11\u7a0b\u5e8f\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6392\u5e8f\u64cd\u4f5c\uff0c\u9009\u62e9\u5408\u9002\u7684\u6392\u5e8f\u7b97\u6cd5\uff08\u5982\u5feb\u901f\u6392\u5e8f\u6216\u5408\u5e76\u6392\u5e8f\uff09\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u901f\u5ea6\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\uff08\u5982\u54c8\u5e0c\u8868\u4ee3\u66ff\u5217\u8868\u8fdb\u884c\u67e5\u627e\u64cd\u4f5c\uff09\u4e5f\u80fd\u51cf\u5c11\u65f6\u95f4\u6d88\u8017\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f18\u5316\u7b97\u6cd5<\/p>\n<\/p>\n<p><p>\u4f18\u5316\u7b97\u6cd5\u662f\u63d0\u5347Python\u7a0b\u5e8f\u901f\u5ea6\u7684\u6838\u5fc3\u65b9\u6cd5\u4e4b\u4e00\u3002\u4f18\u79c0\u7684\u7b97\u6cd5\u8bbe\u8ba1\u53ef\u4ee5\u6781\u5927\u5730\u51cf\u5c11\u8ba1\u7b97\u91cf\uff0c\u63d0\u9ad8\u6267\u884c\u6548\u7387\u3002\u5bf9\u4e8e\u4e0d\u540c\u7684\u95ee\u9898\uff0c\u9009\u62e9\u5408\u9002\u7684\u7b97\u6cd5\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784<\/strong><\/p>\n<\/p>\n<p><p>\u6570\u636e\u7ed3\u6784\u7684\u9009\u62e9\u76f4\u63a5\u5f71\u54cd\u7b97\u6cd5\u7684\u6548\u7387\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u96c6\u5408\u6216\u8005\u5b57\u5178\u8fdb\u884c\u67e5\u627e\u64cd\u4f5c\u8981\u6bd4\u5217\u8868\u66f4\u5feb\uff0c\u56e0\u4e3a\u96c6\u5408\u548c\u5b57\u5178\u5728\u5e95\u5c42\u5b9e\u73b0\u4e0a\u4f7f\u7528\u4e86\u54c8\u5e0c\u8868\uff0c\u67e5\u627e\u590d\u6742\u5ea6\u4e3aO(1)\uff0c\u800c\u5217\u8868\u4e3aO(n)\u3002\u56e0\u6b64\uff0c\u5728\u9700\u8981\u9891\u7e41\u67e5\u627e\u7684\u573a\u666f\u4e0b\uff0c\u4f18\u5148\u4f7f\u7528\u96c6\u5408\u6216\u5b57\u5178\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u51cf\u5c11\u7b97\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8bbe\u8ba1\u7b97\u6cd5\u65f6\uff0c\u5c3d\u91cf\u9009\u62e9\u65f6\u95f4\u590d\u6742\u5ea6\u4f4e\u7684\u7b97\u6cd5\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6392\u5e8f\u64cd\u4f5c\uff0c\u9009\u62e9\u5feb\u901f\u6392\u5e8f\u6216\u8005\u5408\u5e76\u6392\u5e8f\uff0c\u5176\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n log n)\uff0c\u8981\u4f18\u4e8e\u5192\u6ce1\u6392\u5e8f\u7684O(n^2)\u3002\u6b64\u5916\uff0c\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u5d4c\u5957\u5faa\u73af\u7b49\u9ad8\u65f6\u95f4\u590d\u6742\u5ea6\u7684\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u7f13\u5b58\u6280\u672f<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u7f13\u5b58\u53ef\u4ee5\u907f\u514d\u91cd\u590d\u8ba1\u7b97\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u6548\u7387\u3002Python\u4e2d\u53ef\u4ee5\u4f7f\u7528functools.lru_cache\u6765\u7f13\u5b58\u51fd\u6570\u7684\u8fd4\u56de\u503c\uff0c\u7279\u522b\u9002\u7528\u4e8e\u9012\u5f52\u8ba1\u7b97\uff0c\u5982\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528C\u6269\u5c55<\/p>\n<\/p>\n<p><p>Python\u672c\u8eab\u662f\u4e00\u79cd\u89e3\u91ca\u6027\u8bed\u8a00\uff0c\u8fd0\u884c\u901f\u5ea6\u76f8\u5bf9\u8f83\u6162\u3002\u901a\u8fc7\u4f7f\u7528C\u8bed\u8a00\u6269\u5c55\uff0c\u53ef\u4ee5\u5c06\u5173\u952e\u90e8\u5206\u7684\u4ee3\u7801\u7528C\u8bed\u8a00\u91cd\u5199\uff0c\u4ece\u800c\u63d0\u5347\u6267\u884c\u901f\u5ea6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Cython<\/strong><\/p>\n<\/p>\n<p><p>Cython\u662f\u4e00\u4e2a\u5e7f\u6cdb\u4f7f\u7528\u7684Python\u6269\u5c55\u8bed\u8a00\uff0c\u5b83\u5141\u8bb8\u7528C\u8bed\u8a00\u7f16\u5199Python\u4ee3\u7801\uff0c\u4ece\u800c\u751f\u6210\u66f4\u5feb\u7684C\u6269\u5c55\u6a21\u5757\u3002\u901a\u8fc7Cython\uff0c\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u4e3aC\u4ee3\u7801\uff0c\u5927\u5927\u63d0\u9ad8\u8fd0\u884c\u901f\u5ea6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u7684C\u6269\u5c55\u6a21\u5757<\/strong><\/p>\n<\/p>\n<p><p>\u7f16\u5199C\u6269\u5c55\u6a21\u5757\u53ef\u4ee5\u5c06Python\u7684\u90e8\u5206\u4ee3\u7801\u7528C\u8bed\u8a00\u5b9e\u73b0\u3002\u867d\u7136\u7f16\u5199\u8fc7\u7a0b\u8f83\u4e3a\u590d\u6742\uff0c\u4f46\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6027\u80fd\u3002\u5e38\u7528\u7684\u5e93\u5982NumPy\u548cPandas\u5c31\u662f\u5229\u7528C\u6269\u5c55\u5b9e\u73b0\u7684\u9ad8\u6548\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5e76\u884c\u5904\u7406<\/p>\n<\/p>\n<p><p>Python\u7684\u5168\u5c40\u89e3\u91ca\u9501\uff08GIL\uff09\u9650\u5236\u4e86\u591a\u7ebf\u7a0b\u7684\u6267\u884c\u6548\u7387\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u591a\u8fdb\u7a0b\u548c\u5f02\u6b65\u7f16\u7a0b\u5b9e\u73b0\u5e76\u884c\u5904\u7406\uff0c\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u591a\u8fdb\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u591a\u8fdb\u7a0b\u53ef\u4ee5\u7ed5\u8fc7GIL\u7684\u9650\u5236\uff0c\u5145\u5206\u5229\u7528\u591a\u6838CPU\u7684\u4f18\u52bf\u3002Python\u7684multiprocessing\u6a21\u5757\u63d0\u4f9b\u4e86\u7b80\u5355\u6613\u7528\u7684\u591a\u8fdb\u7a0b\u63a5\u53e3\uff0c\u53ef\u4ee5\u6709\u6548\u63d0\u5347\u5904\u7406\u901f\u5ea6\uff0c\u5c24\u5176\u5728CPU\u5bc6\u96c6\u578b\u4efb\u52a1\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5f02\u6b65\u7f16\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eI\/O\u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u5f02\u6b65\u7f16\u7a0b\u53ef\u4ee5\u63d0\u9ad8\u6548\u7387\u3002Python\u4e2d\u7684asyncio\u5e93\u63d0\u4f9b\u4e86\u5f02\u6b65I\/O\u7684\u652f\u6301\uff0c\u901a\u8fc7\u534f\u7a0b\u5b9e\u73b0\u5e76\u53d1\u6267\u884c\uff0c\u51cf\u5c11\u7b49\u5f85\u65f6\u95f4\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u54cd\u5e94\u901f\u5ea6\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u548c\u5e93<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\u548c\u9ad8\u6548\u7684\u5e93\u53ef\u4ee5\u663e\u8457\u63d0\u5347Python\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>NumPy\u548cPandas<\/strong><\/p>\n<\/p>\n<p><p>NumPy\u662f\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u591a\u7ef4\u6570\u7ec4\u5bf9\u8c61\u53ca\u5404\u79cd\u64cd\u4f5c\u65b9\u6cd5\uff0c\u9002\u5408\u4e8e\u6570\u503c\u8ba1\u7b97\u3002Pandas\u662f\u57fa\u4e8eNumPy\u6784\u5efa\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u7528\u4e8e\u5904\u7406\u548c\u5206\u6790\u5927\u578b\u6570\u636e\u96c6\u3002\u4e24\u8005\u7ed3\u5408\u4f7f\u7528\u53ef\u4ee5\u663e\u8457\u63d0\u5347\u6570\u636e\u5904\u7406\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u751f\u6210\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u6570\u636e\u65f6\uff0c\u751f\u6210\u5668\u53ef\u4ee5\u51cf\u5c11\u5185\u5b58\u4f7f\u7528\uff0c\u63d0\u9ad8\u7a0b\u5e8f\u6548\u7387\u3002\u751f\u6210\u5668\u901a\u8fc7yield\u9010\u4e2a\u8fd4\u56de\u6570\u636e\uff0c\u907f\u514d\u4e00\u6b21\u6027\u52a0\u8f7d\u6240\u6709\u6570\u636e\u5230\u5185\u5b58\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97<\/p>\n<\/p>\n<p><p>\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u8ba1\u7b97\u662f\u63d0\u5347Python\u7a0b\u5e8f\u901f\u5ea6\u7684\u91cd\u8981\u624b\u6bb5\u3002\u901a\u8fc7\u4ee3\u7801\u4f18\u5316\u548c\u903b\u8f91\u91cd\u7ec4\uff0c\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u8ba1\u7b97\u91cf\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u907f\u514d\u91cd\u590d\u8ba1\u7b97<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7a0b\u5e8f\u4e2d\uff0c\u5c3d\u91cf\u907f\u514d\u91cd\u590d\u8ba1\u7b97\u76f8\u540c\u7684\u8868\u8fbe\u5f0f\u6216\u51fd\u6570\u7ed3\u679c\u3002\u53ef\u4ee5\u5c06\u8ba1\u7b97\u7ed3\u679c\u7f13\u5b58\u5230\u53d8\u91cf\u4e2d\uff0c\u4f9b\u540e\u7eed\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u63d0\u524d\u7ed3\u675f\u8ba1\u7b97<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5faa\u73af\u6216\u9012\u5f52\u4e2d\uff0c\u5982\u679c\u6ee1\u8db3\u67d0\u4e9b\u6761\u4ef6\uff0c\u53ef\u4ee5\u63d0\u524d\u7ed3\u675f\u8ba1\u7b97\uff0c\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5728\u641c\u7d22\u7b97\u6cd5\u4e2d\uff0c\u5982\u679c\u627e\u5230\u76ee\u6807\u503c\uff0c\u53ef\u4ee5\u7acb\u5373\u8fd4\u56de\u7ed3\u679c\uff0c\u907f\u514d\u7ee7\u7eed\u641c\u7d22\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0cPython\u7a0b\u5e8f\u7684\u6267\u884c\u901f\u5ea6\u53ef\u4ee5\u5f97\u5230\u663e\u8457\u63d0\u5347\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9700\u8981\u6839\u636e\u5177\u4f53\u95ee\u9898\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u8fdb\u884c\u4f18\u5316\uff0c\u8fbe\u5230\u6700\u4f73\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f18\u5316Python\u4ee3\u7801\u7684\u6027\u80fd\u4ee5\u63d0\u5347\u8fd0\u884c\u901f\u5ea6\uff1f<\/strong><br \/>\u8981\u63d0\u5347Python\u4ee3\u7801\u7684\u8fd0\u884c\u901f\u5ea6\uff0c\u53ef\u4ee5\u4ece\u591a\u4e2a\u65b9\u9762\u5165\u624b\u3002\u9996\u5148\uff0c\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u548c\u5e93\uff0c\u8fd9\u4e9b\u901a\u5e38\u662f\u7528C\u8bed\u8a00\u5b9e\u73b0\u7684\uff0c\u6548\u7387\u8f83\u9ad8\u3002\u5176\u6b21\uff0c\u8003\u8651\u4f7f\u7528\u751f\u6210\u5668\u800c\u975e\u5217\u8868\uff0c\u8fd9\u6837\u53ef\u4ee5\u8282\u7701\u5185\u5b58\u5e76\u63d0\u9ad8\u901f\u5ea6\u3002\u6b64\u5916\uff0c\u907f\u514d\u4f7f\u7528\u5168\u5c40\u53d8\u91cf\uff0c\u5c40\u90e8\u53d8\u91cf\u7684\u8bbf\u95ee\u901f\u5ea6\u66f4\u5feb\u3002\u6700\u540e\uff0c\u5206\u6790\u4ee3\u7801\u7684\u8fd0\u884c\u65f6\u95f4\uff0c\u4f7f\u7528\u5de5\u5177\u5982cProfile\u6216timeit\uff0c\u627e\u51fa\u6027\u80fd\u74f6\u9888\uff0c\u5e76\u8fdb\u884c\u9488\u5bf9\u6027\u4f18\u5316\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u4f7f\u7528\u54ea\u4e9b\u6570\u636e\u7ed3\u6784\u53ef\u4ee5\u63d0\u9ad8\u901f\u5ea6\uff1f<\/strong><br \/>\u9009\u62e9\u5408\u9002\u7684\u6570\u636e\u7ed3\u6784\u662f\u63d0\u5347Python\u4ee3\u7801\u901f\u5ea6\u7684\u5173\u952e\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u800c\u4e0d\u662f\u5217\u8868\uff08list\uff09\u8fdb\u884c\u67e5\u627e\u64cd\u4f5c\uff0c\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u6027\u80fd\u3002\u5b57\u5178\uff08dict\uff09\u4e5f\u63d0\u4f9b\u4e86\u5feb\u901f\u7684\u952e\u503c\u5bf9\u5b58\u53d6\uff0c\u6bd4\u5217\u8868\u904d\u5386\u67e5\u627e\u8981\u5feb\u5f97\u591a\u3002\u5bf9\u4e8e\u9700\u8981\u9891\u7e41\u63d2\u5165\u548c\u5220\u9664\u7684\u573a\u666f\uff0c\u4f7f\u7528\u53cc\u7aef\u961f\u5217\uff08deque\uff09\u800c\u975e\u5217\u8868\u4f1a\u66f4\u6709\u6548\u7387\u3002<\/p>\n<p><strong>\u6709\u54ea\u4e9b\u5e93\u6216\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u63d0\u9ad8Python\u7a0b\u5e8f\u7684\u6267\u884c\u901f\u5ea6\uff1f<\/strong><br \/>\u6709\u8bb8\u591a\u5e93\u548c\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u63d0\u5347Python\u7a0b\u5e8f\u7684\u6267\u884c\u901f\u5ea6\u3002NumPy\u548cPandas\u662f\u5e38\u7528\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u80fd\u591f\u901a\u8fc7\u9ad8\u6548\u7684\u6570\u7ec4\u8fd0\u7b97\u5927\u5e45\u5ea6\u63d0\u9ad8\u6027\u80fd\u3002\u5bf9\u4e8e\u9700\u8981\u5e76\u884c\u5904\u7406\u7684\u4efb\u52a1\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u591a\u7ebf\u7a0b\u6216\u591a\u8fdb\u7a0b\u5e93\uff0c\u5982concurrent.futures\u6216multiprocessing\u3002\u6b64\u5916\uff0cCython\u548cPyPy\u662f\u53ef\u4ee5\u5c06Python\u4ee3\u7801\u7f16\u8bd1\u6210\u66f4\u9ad8\u6548\u7684\u5f62\u5f0f\u7684\u5de5\u5177\uff0c\u80fd\u591f\u663e\u8457\u63d0\u9ad8\u6267\u884c\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u63d0\u5347\u901f\u5ea6\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f18\u5316\u7b97\u6cd5\u3001\u4f7f\u7528C\u6269\u5c55\u3001\u5e76\u884c\u5904\u7406\u3001\u4f7f\u7528\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u548c\u5e93\uff08\u5982NumPy\uff09\u3001\u51cf [&hellip;]","protected":false},"author":3,"featured_media":1004712,"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\/1004703"}],"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=1004703"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004703\/revisions"}],"predecessor-version":[{"id":1004713,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004703\/revisions\/1004713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1004712"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1004703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1004703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1004703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}