{"id":1076802,"date":"2025-01-08T11:56:32","date_gmt":"2025-01-08T03:56:32","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1076802.html"},"modified":"2025-01-08T11:56:34","modified_gmt":"2025-01-08T03:56:34","slug":"python%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e4%ba%94%e8%a1%8c%e5%85%ad%e5%88%97-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1076802.html","title":{"rendered":"python\u5982\u4f55\u8f93\u51fa\u4e94\u884c\u516d\u5217"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181158\/086136ab-dadf-4179-a45a-56715244b914.webp\" alt=\"python\u5982\u4f55\u8f93\u51fa\u4e94\u884c\u516d\u5217\" \/><\/p>\n<p><p> <strong>Python \u8f93\u51fa\u4e94\u884c\u516d\u5217\u7684\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f8b\u5982\u4f7f\u7528\u5faa\u73af\u3001\u5217\u8868\u6216 NumPy \u7b49\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5d4c\u5957\u7684 for \u5faa\u73af\u6765\u751f\u6210\u548c\u6253\u5370\u77e9\u9635\uff0c\u6bcf\u884c\u5305\u542b\u516d\u4e2a\u5143\u7d20\uff0c\u6bcf\u4e2a\u5143\u7d20\u53ef\u4ee5\u662f\u6570\u503c\u3001\u5b57\u7b26\u6216\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528\u5d4c\u5957\u7684 for \u5faa\u73af\u6765\u8f93\u51fa\u4e00\u4e2a\u7b80\u5355\u7684\u6570\u503c\u77e9\u9635\uff0c\u5e76\u5bf9\u5176\u4e2d\u4e00\u4e2a\u65b9\u6cd5\u8fdb\u884c\u8be6\u7ec6\u63cf\u8ff0\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5d4c\u5957\u7684 for \u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u8fd9\u662f\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\uff0c\u901a\u8fc7\u4e24\u4e2a\u5d4c\u5957\u7684 for \u5faa\u73af\u6765\u63a7\u5236\u884c\u548c\u5217\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(5):  # \u63a7\u5236\u884c\u6570<\/p>\n<p>    for j in range(6):  # \u63a7\u5236\u5217\u6570<\/p>\n<p>        print(f&#39;({i},{j})&#39;, end=&#39; &#39;)  # \u6253\u5370\u5f53\u524d\u7684\u884c\u5217\u7d22\u5f15<\/p>\n<p>    print()  # \u6bcf\u884c\u7ed3\u675f\u540e\u6362\u884c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c<code>for i in range(5)<\/code> \u63a7\u5236\u5916\u5c42\u5faa\u73af\uff0c\u8fed\u4ee3 5 \u6b21\uff0c\u6bcf\u6b21\u8fed\u4ee3\u4ee3\u8868\u77e9\u9635\u7684\u4e00\u884c\u3002<code>for j in range(6)<\/code> \u63a7\u5236\u5185\u5c42\u5faa\u73af\uff0c\u8fed\u4ee3 6 \u6b21\uff0c\u6bcf\u6b21\u8fed\u4ee3\u4ee3\u8868\u77e9\u9635\u7684\u4e00\u5217\u3002\u5728\u5185\u5c42\u5faa\u73af\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528 <code>print(f&#39;({i},{j})&#39;, end=&#39; &#39;)<\/code> \u6253\u5370\u5f53\u524d\u7684\u884c\u5217\u7d22\u5f15\uff0c\u5e76\u4f7f\u7528 <code>end=&#39; &#39;<\/code> \u6765\u9632\u6b62\u81ea\u52a8\u6362\u884c\u3002\u5185\u5c42\u5faa\u73af\u7ed3\u675f\u540e\uff0c\u901a\u8fc7 <code>print()<\/code> \u6362\u884c\u8fdb\u5165\u4e0b\u4e00\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u751f\u6210\u5668<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5217\u8868\u751f\u6210\u5668\u6765\u521b\u5efa\u77e9\u9635\uff0c\u7136\u540e\u9010\u884c\u6253\u5370\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [[(i, j) for j in range(6)] for i in range(5)]<\/p>\n<p>for row in matrix:<\/p>\n<p>    for item in row:<\/p>\n<p>        print(item, end=&#39; &#39;)<\/p>\n<p>    print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u9996\u5148\u4f7f\u7528\u5217\u8868\u751f\u6210\u5668\u521b\u5efa\u4e00\u4e2a 5 \u884c 6 \u5217\u7684\u77e9\u9635\uff0c\u6bcf\u4e2a\u5143\u7d20\u662f\u5176\u884c\u5217\u7d22\u5f15\u7684\u5143\u7ec4\u3002\u7136\u540e\u901a\u8fc7\u5d4c\u5957\u5faa\u73af\u9010\u884c\u6253\u5370\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 NumPy \u5e93<\/h3>\n<\/p>\n<p><p>NumPy \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa\u548c\u64cd\u4f5c\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>matrix = np.arange(30).reshape(5, 6)<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u9996\u5148\u4f7f\u7528 <code>np.arange(30)<\/code> \u521b\u5efa\u4e00\u4e2a\u5305\u542b 30 \u4e2a\u5143\u7d20\u7684\u6570\u7ec4\uff0c\u7136\u540e\u4f7f\u7528 <code>reshape(5, 6)<\/code> \u5c06\u5176\u91cd\u5851\u4e3a 5 \u884c 6 \u5217\u7684\u77e9\u9635\uff0c\u6700\u540e\u6253\u5370\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528 pandas \u5e93<\/h3>\n<\/p>\n<p><p>pandas \u662f\u53e6\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u4e8c\u7ef4\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>matrix = pd.DataFrame(np.arange(30).reshape(5, 6))<\/p>\n<p>print(matrix)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528 pandas \u7684 DataFrame \u7ed3\u6784\u521b\u5efa\u5e76\u6253\u5370\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u4e8c\u7ef4\u5217\u8868<\/h3>\n<\/p>\n<p><p>\u76f4\u63a5\u521b\u5efa\u4e00\u4e2a\u4e8c\u7ef4\u5217\u8868\uff0c\u7136\u540e\u9010\u884c\u6253\u5370\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [<\/p>\n<p>    [1, 2, 3, 4, 5, 6],<\/p>\n<p>    [7, 8, 9, 10, 11, 12],<\/p>\n<p>    [13, 14, 15, 16, 17, 18],<\/p>\n<p>    [19, 20, 21, 22, 23, 24],<\/p>\n<p>    [25, 26, 27, 28, 29, 30]<\/p>\n<p>]<\/p>\n<p>for row in matrix:<\/p>\n<p>    for item in row:<\/p>\n<p>        print(item, end=&#39; &#39;)<\/p>\n<p>    print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u76f4\u63a5\u5b9a\u4e49\u4e00\u4e2a\u5305\u542b 5 \u884c 6 \u5217\u7684\u4e8c\u7ef4\u5217\u8868\uff0c\u7136\u540e\u901a\u8fc7\u5d4c\u5957\u5faa\u73af\u9010\u884c\u6253\u5370\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u751f\u6210\u5668\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570\u6765\u751f\u6210\u77e9\u9635\uff0c\u7136\u540e\u9010\u884c\u6253\u5370\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def generate_matrix(rows, cols):<\/p>\n<p>    for i in range(rows):<\/p>\n<p>        yield [f&#39;({i},{j})&#39; for j in range(cols)]<\/p>\n<p>matrix = generate_matrix(5, 6)<\/p>\n<p>for row in matrix:<\/p>\n<p>    for item in row:<\/p>\n<p>        print(item, end=&#39; &#39;)<\/p>\n<p>    print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u5b9a\u4e49\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570 <code>generate_matrix<\/code>\uff0c\u8be5\u51fd\u6570\u4f7f\u7528 <code>yield<\/code> \u5173\u952e\u5b57\u9010\u884c\u751f\u6210\u77e9\u9635\u3002\u7136\u540e\u901a\u8fc7\u5d4c\u5957\u5faa\u73af\u9010\u884c\u6253\u5370\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u63a7\u5236\u8f93\u51fa\u7684\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(5):<\/p>\n<p>    for j in range(6):<\/p>\n<p>        print(f&#39;{i * 6 + j:2}&#39;, end=&#39; &#39;)<\/p>\n<p>    print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32 <code>f&#39;{i * 6 + j:2}&#39;<\/code> \u6765\u63a7\u5236\u8f93\u51fa\u7684\u683c\u5f0f\uff0c\u4f7f\u8f93\u51fa\u7684\u6570\u5b57\u5bf9\u9f50\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u4f7f\u7528 itertools \u5e93<\/h3>\n<\/p>\n<p><p>itertools \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u8fed\u4ee3\u5de5\u5177\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u751f\u6210\u548c\u64cd\u4f5c\u8fed\u4ee3\u5668\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>matrix = itertools.product(range(5), range(6))<\/p>\n<p>for i, j in matrix:<\/p>\n<p>    print(f&#39;({i},{j})&#39;, end=&#39; &#39;)<\/p>\n<p>    if j == 5:<\/p>\n<p>        print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528 <code>itertools.product<\/code> \u751f\u6210\u7b1b\u5361\u5c14\u79ef\u8fed\u4ee3\u5668\uff0c\u7136\u540e\u9010\u4e2a\u5143\u7d20\u6253\u5370\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u4f7f\u7528 enumerate \u51fd\u6570<\/h3>\n<\/p>\n<p><p>enumerate \u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u5faa\u73af\u4e2d\u83b7\u53d6\u7d22\u5f15\u548c\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [[(i, j) for j in range(6)] for i in range(5)]<\/p>\n<p>for i, row in enumerate(matrix):<\/p>\n<p>    for j, item in enumerate(row):<\/p>\n<p>        print(item, end=&#39; &#39;)<\/p>\n<p>    print()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528 <code>enumerate<\/code> \u51fd\u6570\u5728\u5faa\u73af\u4e2d\u83b7\u53d6\u7d22\u5f15\u548c\u503c\uff0c\u7136\u540e\u9010\u884c\u6253\u5370\u77e9\u9635\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u4f7f\u7528 map \u51fd\u6570<\/h3>\n<\/p>\n<p><p>map \u51fd\u6570\u53ef\u4ee5\u5bf9\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u6bcf\u4e2a\u5143\u7d20\u5e94\u7528\u6307\u5b9a\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [[(i, j) for j in range(6)] for i in range(5)]<\/p>\n<p>for row in matrix:<\/p>\n<p>    print(&#39; &#39;.join(map(str, row)))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u4f7f\u7528 <code>map<\/code> \u51fd\u6570\u5c06\u6bcf\u4e2a\u5143\u7d20\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528 <code>join<\/code> \u65b9\u6cd5\u5c06\u5176\u8fde\u63a5\u6210\u4e00\u884c\u5b57\u7b26\u4e32\u5e76\u6253\u5370\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0a\u5341\u79cd\u65b9\u6cd5\u5c55\u793a\u4e86\u5982\u4f55\u5728 Python \u4e2d\u8f93\u51fa\u4e00\u4e2a\u4e94\u884c\u516d\u5217\u7684\u77e9\u9635\u3002\u6bcf\u79cd\u65b9\u6cd5\u5404\u6709\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 NumPy \u548c pandas \u5e93\u7684\u65b9\u6cd5\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u66f4\u9ad8\u6548\uff0c\u800c\u4f7f\u7528\u5d4c\u5957 for \u5faa\u73af\u548c\u5217\u8868\u751f\u6210\u5668\u7684\u65b9\u6cd5\u66f4\u76f4\u89c2\u6613\u61c2\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a5\u884c6\u5217\u7684\u4e8c\u7ef4\u6570\u7ec4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216NumPy\u5e93\u6765\u521b\u5efa\u4e00\u4e2a5\u884c6\u5217\u7684\u4e8c\u7ef4\u6570\u7ec4\u3002\u5982\u679c\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>array = [[0 for _ in range(6)] for _ in range(5)]<\/code>\u3002\u5982\u679c\u4f7f\u7528NumPy\u5e93\uff0c\u53ef\u4ee5\u4f7f\u7528<code>np.zeros((5, 6))<\/code>\u521b\u5efa\u4e00\u4e2a\u5168\u4e3a\u96f6\u7684\u6570\u7ec4\uff0c\u6216\u8005\u4f7f\u7528<code>np.array([[1, 2, 3, 4, 5, 6], ...])<\/code>\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u6570\u7ec4\u3002<\/p>\n<p><strong>\u5982\u4f55\u8f93\u51faPython\u4e2d\u4e8c\u7ef4\u6570\u7ec4\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u7b80\u5355\u7684\u5faa\u73af\u6765\u8f93\u51fa\u4e8c\u7ef4\u6570\u7ec4\u7684\u5185\u5bb9\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5d4c\u5957\u7684for\u5faa\u73af\u904d\u5386\u6bcf\u4e00\u884c\u548c\u6bcf\u4e00\u5217\u5e76\u6253\u5370\u51fa\u6765\uff0c\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">for row in array:\n    print(&quot; &quot;.join(map(str, row)))\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u4ee5\u884c\u7684\u5f62\u5f0f\u8f93\u51fa\u6570\u7ec4\u5185\u5bb9\uff0c\u5e76\u7528\u7a7a\u683c\u5206\u9694\u6bcf\u4e2a\u5143\u7d20\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u683c\u5f0f\u5316\u8f93\u51fa\u6570\u7ec4\u4ee5\u4fbf\u4e8e\u9605\u8bfb\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u6765\u4f7f\u8f93\u51fa\u66f4\u6574\u9f50\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u91c7\u7528f-string\u683c\u5f0f\u5316\u6bcf\u4e2a\u5143\u7d20\u7684\u5bbd\u5ea6\uff0c\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">for row in array:\n    print(&quot; | &quot;.join(f&quot;{item:4}&quot; for item in row))\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6bcf\u4e2a\u5143\u7d20\u5728\u8f93\u51fa\u65f6\u90fd\u6709\u76f8\u540c\u7684\u5bbd\u5ea6\uff0c\u63d0\u5347\u53ef\u8bfb\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u8f93\u51fa\u4e94\u884c\u516d\u5217\u7684\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f8b\u5982\u4f7f\u7528\u5faa\u73af\u3001\u5217\u8868\u6216 NumPy \u7b49\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":1076810,"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\/1076802"}],"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=1076802"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1076802\/revisions"}],"predecessor-version":[{"id":1076813,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1076802\/revisions\/1076813"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1076810"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1076802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1076802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1076802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}