{"id":314583,"date":"2024-05-20T23:37:27","date_gmt":"2024-05-20T15:37:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/314583.html"},"modified":"2024-05-20T23:37:37","modified_gmt":"2024-05-20T15:37:37","slug":"python-%e7%a8%8b%e5%ba%8f-%e4%b8%ad%e7%9a%84%e8%af%ad%e6%b3%95%e7%b3%96%e6%9c%89%e5%93%aa%e4%ba%9b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/314583.html","title":{"rendered":"python \u7a0b\u5e8f \u4e2d\u7684\u8bed\u6cd5\u7cd6\u6709\u54ea\u4e9b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27034142\/e5b363e3-6c2f-460d-9823-0892161e3957.webp\" alt=\"python \u7a0b\u5e8f \u4e2d\u7684\u8bed\u6cd5\u7cd6\u6709\u54ea\u4e9b\" \/><\/p>\n<p><p>Python\u7a0b\u5e8f\u4e2d\u7684\u8bed\u6cd5\u7cd6\u4f53\u73b0\u5728\u5176\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\u8bbe\u8ba1\u4e0a\uff0c\u65e8\u5728\u4f7f\u4ee3\u7801\u66f4\u52a0\u6613\u8bfb\u3001\u6613\u5199\u3002<strong>\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u5305\u62ec\u5217\u8868\u89e3\u6790\u3001\u88c5\u9970\u5668\u3001\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u3001\u6761\u4ef6\u8868\u8fbe\u5f0f\u3001\u8fde\u7eed\u6bd4\u8f83\u3001\u89e3\u5305\u8d4b\u503c<\/strong>\u7b49\u3002\u8fd9\u4e9b\u8bed\u6cd5\u7cd6\u4e0d\u4ec5\u8ba9\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\uff0c\u4e5f\u6781\u5927\u63d0\u9ad8\u4e86\u5f00\u53d1\u6548\u7387\u3002\u5176\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u662f\u975e\u5e38\u5178\u578b\u4e14\u5e7f\u6cdb\u4f7f\u7528\u7684\u8bed\u6cd5\u7cd6\uff0c\u5b83\u5141\u8bb8\u901a\u8fc7\u4e00\u884c\u4ee3\u7801\u6784\u5efa\u65b0\u5217\u8868\uff0c\u4f7f\u4ee3\u7801\u66f4\u4e3a\u7b80\u6d01\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5217\u8868\u89e3\u6790<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\uff08List comprehensions\uff09\u662f\u4e00\u79cd\u7b80\u6d01\u5730\u521b\u5efa\u5217\u8868\u7684\u65b9\u6cd5\uff0c\u5b83\u901a\u8fc7\u5bf9\u5df2\u6709\u5217\u8868\u8fdb\u884c\u64cd\u4f5c\uff0c\u6839\u636e\u8868\u8fbe\u5f0f\u5bf9\u5217\u8868\u4e2d\u7684\u5143\u7d20\u8fdb\u884c\u8fc7\u6ee4\u548c\u5904\u7406\uff0c\u4ece\u800c\u5f97\u5230\u65b0\u7684\u5217\u8868\u3002\u5b83\u4e0d\u4ec5\u4ee3\u7801\u66f4\u7b80\u6d01\uff0c\u6267\u884c\u6548\u7387\u4e5f\u76f8\u5bf9\u8f83\u9ad8\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4e0e\u4f18\u52bf<\/h4>\n<\/p>\n<p><p>\u8003\u8651\u9700\u8981\u5f97\u5230\u4e00\u4e2a\u5217\u8868\u4e2d\u6bcf\u4e2a\u5143\u7d20\u7684\u5e73\u65b9\uff0c\u4f20\u7edf\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u5faa\u73af\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = [1, 2, 3, 4, 5]<\/p>\n<p>squared = []<\/p>\n<p>for number in numbers:<\/p>\n<p>    squared.append(number  2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u800c\u4f7f\u7528\u5217\u8868\u89e3\u6790\uff0c\u4ee3\u7801\u53d8\u4e3a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squared = [number  2 for number in numbers]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5229\u7528\u5217\u8868\u89e3\u6790\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e00\u884c\u5185\u5b8c\u6210\u4ee5\u5f80\u9700\u8981\u591a\u884c\u624d\u80fd\u5b9e\u73b0\u7684\u529f\u80fd\uff0c\u6781\u5927\u63d0\u5347\u4e86\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u5199\u6548\u7387\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u88c5\u9970\u5668<\/h3>\n<\/p>\n<p><p>\u88c5\u9970\u5668\uff08Decorators\uff09\u662f\u4fee\u6539\u5176\u4ed6\u51fd\u6570\u6216\u7c7b\u7684\u529f\u80fd\u7684\u51fd\u6570\u3002\u5728\u4e0d\u6539\u53d8\u539f\u6709\u51fd\u6570\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u7ed9\u51fd\u6570\u6dfb\u52a0\u65b0\u7684\u529f\u80fd\u3002\u8fd9\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u6a21\u5757\u5316\uff0c\u589e\u52a0\u4e86\u4ee3\u7801\u7684\u590d\u7528\u6027\u3002<\/p>\n<\/p>\n<p><h4>\u5e94\u7528\u573a\u666f\u4e0e\u5b9e\u73b0<\/h4>\n<\/p>\n<p><p>\u88c5\u9970\u5668\u5e7f\u6cdb\u5e94\u7528\u4e8e\u65e5\u5fd7\u8bb0\u5f55\u3001\u6027\u80fd\u6d4b\u8bd5\u3001\u4e8b\u52a1\u5904\u7406\u7b49\u9886\u57df\u3002\u4f8b\u5982\uff0c\u8bb0\u5f55\u51fd\u6570\u6267\u884c\u65f6\u95f4\u7684\u88c5\u9970\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def timing_function(some_function):<\/p>\n<p>    def wrapper():<\/p>\n<p>        start = time.time()<\/p>\n<p>        some_function()<\/p>\n<p>        end = time.time()<\/p>\n<p>        print(f&quot;{some_function.__name__} took {end-start} seconds to execute&quot;)<\/p>\n<p>    return wrapper<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u88c5\u9970\u5668\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u539f\u51fd\u6570\u7684\u524d\u63d0\u4e0b\uff0c\u589e\u52a0\u989d\u5916\u7684\u529f\u80fd\uff0c\u8fd9\u6837\u7684\u8bbe\u8ba1\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u3001\u6613\u4e8e\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u751f\u6210\u5668\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u5668\u8868\u8fbe\u5f0f\uff08Generator expressions\uff09\u63d0\u4f9b\u4e86\u4e00\u79cd\u66f4\u8282\u7701\u5185\u5b58\u7684\u6784\u5efa\u8fed\u4ee3\u5668\u7684\u65b9\u6cd5\u3002\u7c7b\u4f3c\u4e8e\u5217\u8868\u89e3\u6790\uff0c\u4f46\u662f\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u8fd4\u56de\u7684\u662f\u4e00\u4e2a\u8fed\u4ee3\u5668\u800c\u4e0d\u662f\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>\u6027\u80fd\u4f18\u52bf<\/h4>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\uff0c\u5982\u679c\u4f7f\u7528\u5217\u8868\u89e3\u6790\uff0c\u4f1a\u4e00\u6b21\u6027\u8f7d\u5165\u6240\u6709\u6570\u636e\uff0c\u6d88\u8017\u5927\u91cf\u5185\u5b58\u3002\u800c\u751f\u6210\u5668\u8868\u8fbe\u5f0f\u5219\u662f\u6309\u9700\u63d0\u4f9b\u6570\u636e\uff0c\u663e\u8457\u964d\u4f4e\u5185\u5b58\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">numbers = range(10)<\/p>\n<p>squared_generator = (number  2 for number in numbers)<\/p>\n<p>for number in squared_generator:<\/p>\n<p>    print(number)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u6309\u9700\u751f\u6210\u6570\u636e\u7684\u65b9\u5f0f\uff0c\u4e0d\u4ec5\u964d\u4f4e\u4e86\u5185\u5b58\u7684\u4f7f\u7528\uff0c\u4e5f\u4f7f\u4ee3\u7801\u66f4\u4e3a\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u6761\u4ef6\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6761\u4ef6\u8868\u8fbe\u5f0f\uff08Ternary operator\uff09\u662f\u4e00\u79cd\u57fa\u4e8e\u6761\u4ef6\u5224\u65ad\uff0c\u8fd4\u56de\u4e0d\u540c\u503c\u7684\u7b80\u6d01\u5199\u6cd5\u3002\u5b83\u7684\u4e00\u822c\u5f62\u5f0f\u4e3a\uff1a<code>x if C else y<\/code>\uff0c\u5f53\u6761\u4ef6C\u4e3aTrue\u65f6\uff0c\u8fd4\u56dex\uff0c\u5426\u5219\u8fd4\u56dey\u3002<\/p>\n<\/p>\n<p><h4>\u7b80\u5316\u5224\u65ad\u903b\u8f91<\/h4>\n<\/p>\n<p><p>\u5176\u8bed\u6cd5\u7684\u7b80\u6d01\u6027\u4f7f\u5f97\u5728\u9700\u8981\u8fdb\u884c\u7b80\u5355\u6761\u4ef6\u5224\u65ad\u65f6\uff0c\u4ee3\u7801\u66f4\u52a0\u6e05\u6670\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">age = 15<\/p>\n<p>status = &quot;teen&quot; if age &lt; 18 else &quot;adult&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u4e00\u884c\u4ee3\u7801\u5b8c\u6210\u6761\u4ef6\u5224\u65ad\u548c\u8d4b\u503c\u7684\u65b9\u5f0f\uff0c\u5927\u5927\u7b80\u5316\u4e86\u4ee3\u7801\u7684\u590d\u6742\u5ea6\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u8fde\u7eed\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>Python\u652f\u6301\u8fde\u7eed\u6bd4\u8f83\uff0c\u5982<code>a &lt; b &lt; c<\/code>\u8fd9\u6837\u7684\u8bed\u53e5\uff0c\u53ef\u4ee5\u540c\u65f6\u5bf9\u591a\u4e2a\u5143\u7d20\u8fdb\u884c\u6bd4\u8f83\u3002\u8fd9\u79cd\u8bed\u6cd5\u4f7f\u903b\u8f91\u8868\u8fbe\u66f4\u4e3a\u76f4\u89c2\uff0c\u4ee3\u7801\u66f4\u7b80\u6d01\u3002<\/p>\n<\/p>\n<p><h4>\u903b\u8f91\u6e05\u6670<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">x = 5<\/p>\n<p>result = 1 &lt; x &lt; 10<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u7684\u8fde\u7eed\u6bd4\u8f83\uff0c\u4e0d\u4ec5\u80fd\u591f\u76f4\u89c2\u5730\u8868\u8fbe\u51fa\u6bd4\u8f83\u903b\u8f91\uff0c\u800c\u4e14\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u89e3\u5305\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u89e3\u5305\u8d4b\u503c\u5141\u8bb8\u540c\u65f6\u4e3a\u591a\u4e2a\u53d8\u91cf\u8d4b\u503c\u3002\u8fd9\u79cd\u673a\u5236\u5728\u4ea4\u6362\u53d8\u91cf\u503c\u3001\u51fd\u6570\u8fd4\u56de\u591a\u503c\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u8303\u4e0e\u4f18\u52bf<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">a, b = 5, 10<\/p>\n<p>a, b = b, a<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u89e3\u5305\u8d4b\u503c\u4e0d\u4ec5\u4f7f\u4ee3\u7801\u66f4\u7b80\u6d01\uff0c\u8fd8\u53ef\u4ee5\u5728\u4e0d\u4f7f\u7528\u4e34\u65f6\u53d8\u91cf\u7684\u60c5\u51b5\u4e0b\uff0c\u65b9\u4fbf\u5730\u4ea4\u6362\u53d8\u91cf\u503c\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u8ba8\u8bba\uff0c\u6211\u4eec\u80fd\u591f\u770b\u5230Python\u7684\u8bed\u6cd5\u7cd6\u4e0d\u4ec5\u63d0\u5347\u4e86\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7f16\u5199\u6548\u7387\uff0c\u8fd8\u4f7f\u5f97Python\u7a0b\u5e8f\u66f4\u52a0\u7075\u6d3b\u3001\u7b80\u6d01\u3002\u7406\u89e3\u5e76\u5408\u7406\u5229\u7528\u8fd9\u4e9b\u8bed\u6cd5\u7cd6\uff0c\u53ef\u4ee5\u4f7f\u6211\u4eec\u6210\u4e3a\u66f4\u9ad8\u6548\u7684Python\u7a0b\u5e8f\u5458\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. Python\u7a0b\u5e8f\u4e2d\u7684\u8bed\u6cd5\u7cd6\u662f\u4ec0\u4e48\uff1f<\/strong><\/p>\n<p>\u8bed\u6cd5\u7cd6\u662f\u6307\u5728\u7f16\u7a0b\u8bed\u8a00\u4e2d\u7684\u67d0\u79cd\u8bed\u6cd5\u7279\u6027\uff0c\u5b83\u5e76\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u4f46\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3001\u6613\u8bfb\u548c\u4f18\u96c5\u3002\u5728Python\u7a0b\u5e8f\u4e2d\u4e5f\u5b58\u5728\u8bb8\u591a\u8bed\u6cd5\u7cd6\uff0c\u4e0b\u9762\u6211\u5c06\u4ecb\u7ecd\u5176\u4e2d\u51e0\u4e2a\u5e38\u89c1\u7684\u3002<\/p>\n<p><strong>2. Python\u7a0b\u5e8f\u4e2d\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u8bed\u6cd5\u7cd6\uff1f<\/strong><\/p>\n<ul>\n<li>\n<p>\u5217\u8868\u63a8\u5bfc\u5f0f\uff1a\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u5b83\u66f4\u7b80\u6d01\u660e\u4e86\uff0c\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b8c\u6210\u5bf9\u539f\u5217\u8868\u7684\u64cd\u4f5c\u548c\u7b5b\u9009\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b57\u5178\u63a8\u5bfc\u5f0f\uff1a\u4e0e\u5217\u8868\u63a8\u5bfc\u5f0f\u7c7b\u4f3c\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u7528\u4e00\u884c\u4ee3\u7801\u5feb\u901f\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u3002\u5b83\u4e5f\u662fPython\u4e2d\u5e38\u7528\u7684\u8bed\u6cd5\u7cd6\u4e4b\u4e00\u3002<\/p>\n<\/li>\n<li>\n<p>\u88c5\u9970\u5668\uff1a\u88c5\u9970\u5668\u662f\u4e00\u79cd\u4f7f\u4ee3\u7801\u66f4\u52a0\u4f18\u96c5\u548c\u6a21\u5757\u5316\u7684\u65b9\u5f0f\uff0c\u5b83\u53ef\u4ee5\u5728\u4e0d\u4fee\u6539\u539f\u51fd\u6570\u7684\u60c5\u51b5\u4e0b\uff0c\u7ed9\u51fd\u6570\u6dfb\u52a0\u989d\u5916\u7684\u529f\u80fd\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\uff1a\u901a\u8fc7\u4f7f\u7528\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u5757\u6267\u884c\u524d\u540e\u81ea\u52a8\u5b8c\u6210\u4e00\u4e9b\u51c6\u5907\u5de5\u4f5c\u548c\u6e05\u7406\u5de5\u4f5c\uff0c\u5982\u6253\u5f00\u6587\u4ef6\u3001\u5173\u95ed\u6587\u4ef6\u7b49\u3002<\/p>\n<\/li>\n<\/ul>\n<p><strong>3. \u4f60\u53ef\u4ee5\u4e3e\u4e2a\u4f8b\u5b50\u6765\u8bf4\u660ePython\u7a0b\u5e8f\u4e2d\u7684\u8bed\u6cd5\u7cd6\u5417\uff1f<\/strong><\/p>\n<p>\u5f53\u7136\u53ef\u4ee5\uff01\u6bd4\u5982\uff0c\u5bf9\u4e8e\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5982\u4e0b\u7684\u8bed\u6cd5\u7cd6\u6765\u5feb\u901f\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff1a<\/p>\n<pre><code>numbers = [1, 2, 3, 4, 5]\nsquared_numbers = [num ** 2 for num in numbers]    # \u5217\u8868\u63a8\u5bfc\u5f0f\nprint(squared_numbers)    # \u8f93\u51fa\uff1a[1, 4, 9, 16, 25]\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u901a\u8fc7\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u4e00\u884c\u4ee3\u7801\u5373\u53ef\u5c06\u539f\u6765\u7684<code>numbers<\/code>\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u90fd\u5e73\u65b9\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868<code>squared_numbers<\/code>\u3002\u8fd9\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u3001\u6613\u8bfb\u548c\u4f18\u96c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u7a0b\u5e8f\u4e2d\u7684\u8bed\u6cd5\u7cd6\u4f53\u73b0\u5728\u5176\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\u8bbe\u8ba1\u4e0a\uff0c\u65e8\u5728\u4f7f\u4ee3\u7801\u66f4\u52a0\u6613\u8bfb\u3001\u6613\u5199\u3002\u5176\u4e2d\u6700\u5e38\u89c1\u7684\u5305\u62ec\u5217\u8868\u89e3\u6790\u3001\u88c5 [&hellip;]","protected":false},"author":3,"featured_media":314593,"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\/314583"}],"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=314583"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/314583\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/314593"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=314583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=314583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=314583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}