{"id":1066797,"date":"2024-12-31T16:29:30","date_gmt":"2024-12-31T08:29:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1066797.html"},"modified":"2024-12-31T16:29:33","modified_gmt":"2024-12-31T08:29:33","slug":"python%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e5%88%97%e8%a1%a8%e5%90%8e%e5%8d%81%e4%bd%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1066797.html","title":{"rendered":"Python\u5982\u4f55\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/4751b37e-bcdb-4c28-b357-5a5a0756e2ef.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"Python\u5982\u4f55\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\" \/><\/p>\n<p><p> <strong>Python\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u51fd\u6570\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5207\u7247\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u9ad8\u6548\u3002\u4f7f\u7528\u5207\u7247\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li>\u68c0\u67e5\u5217\u8868\u957f\u5ea6\uff0c\u5982\u679c\u5217\u8868\u957f\u5ea6\u5c0f\u4e8e10\uff0c\u76f4\u63a5\u8fd4\u56de\u6574\u4e2a\u5217\u8868\u3002<\/li>\n<li>\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4f4d\u5143\u7d20\u3002<\/li>\n<\/ol>\n<p><p>\u5207\u7247\u64cd\u4f5c\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u7d22\u5f15\u6765\u622a\u53d6\u5217\u8868\u7684\u4e00\u90e8\u5206\u3002\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def get_last_ten_elements(lst):<\/p>\n<p>    # \u68c0\u67e5\u5217\u8868\u957f\u5ea6\u662f\u5426\u5c0f\u4e8e10<\/p>\n<p>    if len(lst) &lt; 10:<\/p>\n<p>        return lst<\/p>\n<p>    # \u4f7f\u7528\u5207\u7247\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d<\/p>\n<p>    return lst[-10:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4ee3\u7801\u89e3\u6790\uff1a<\/strong><\/p>\n<\/p>\n<ol>\n<li><code>if len(lst) &lt; 10:<\/code>\uff1a\u68c0\u67e5\u5217\u8868\u7684\u957f\u5ea6\u662f\u5426\u5c0f\u4e8e10\u3002<\/li>\n<li><code>return lst<\/code>\uff1a\u5982\u679c\u957f\u5ea6\u5c0f\u4e8e10\uff0c\u8fd4\u56de\u6574\u4e2a\u5217\u8868\u3002<\/li>\n<li><code>return lst[-10:]<\/code>\uff1a\u5426\u5219\uff0c\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u8fd4\u56de\u5217\u8868\u7684\u6700\u540e\u5341\u4f4d\u5143\u7d20\u3002<\/li>\n<\/ol>\n<p><h3>\u4e00\u3001\u5217\u8868\u957f\u5ea6\u68c0\u67e5\u4e0e\u5207\u7247<\/h3>\n<\/p>\n<p><p>\u5207\u7247\u662fPython\u4e2d\u975e\u5e38\u5e38\u7528\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u6765\u622a\u53d6\u5217\u8868\u7684\u4e00\u90e8\u5206\u3002\u5207\u7247\u64cd\u4f5c\u7b26<code>:<\/code>\u53ef\u4ee5\u5728\u65b9\u62ec\u53f7<code>[]<\/code>\u4e2d\u4f7f\u7528\uff0c\u8868\u793a\u4ece\u5f00\u59cb\u7d22\u5f15\u5230\u7ed3\u675f\u7d22\u5f15\u7684\u6240\u6709\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h4>1. \u5217\u8868\u957f\u5ea6\u68c0\u67e5<\/h4>\n<\/p>\n<p><p>\u5728\u8fdb\u884c\u5207\u7247\u4e4b\u524d\uff0c\u9996\u5148\u8981\u68c0\u67e5\u5217\u8868\u7684\u957f\u5ea6\u3002\u5982\u679c\u5217\u8868\u957f\u5ea6\u5c0f\u4e8e10\uff0c\u76f4\u63a5\u8fd4\u56de\u6574\u4e2a\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if len(lst) &lt; 10:<\/p>\n<p>    return lst<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5207\u7247\u83b7\u53d6\u540e\u5341\u4f4d<\/h4>\n<\/p>\n<p><p>\u5207\u7247\u64cd\u4f5c\u7b26<code>-10:<\/code>\u8868\u793a\u4ece\u5012\u6570\u7b2c\u5341\u4e2a\u5143\u7d20\u5f00\u59cb\u5230\u5217\u8868\u672b\u5c3e\u7684\u6240\u6709\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">return lst[-10:]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u4e0e\u5e93\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u51fd\u6570\u6765\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4f4d\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528<code>deque<\/code>\u83b7\u53d6\u540e\u5341\u4f4d<\/h4>\n<\/p>\n<p><p><code>collections<\/code>\u6a21\u5757\u4e2d\u7684<code>deque<\/code>\u5bf9\u8c61\u53ef\u4ee5\u7528\u6765\u9ad8\u6548\u5730\u64cd\u4f5c\u961f\u5217\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u9891\u7e41\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u65f6\u3002\u53ef\u4ee5\u4f7f\u7528<code>deque<\/code>\u7684<code>maxlen<\/code>\u53c2\u6570\u6765\u9650\u5236\u961f\u5217\u7684\u6700\u5927\u957f\u5ea6\uff0c\u4ece\u800c\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4f4d\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import deque<\/p>\n<p>def get_last_ten_elements(lst):<\/p>\n<p>    return list(deque(lst, maxlen=10))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528<code>islice<\/code>\u83b7\u53d6\u540e\u5341\u4f4d<\/h4>\n<\/p>\n<p><p><code>itertools<\/code>\u6a21\u5757\u4e2d\u7684<code>islice<\/code>\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u9ad8\u6548\u5730\u622a\u53d6\u8fed\u4ee3\u5668\u7684\u4e00\u90e8\u5206\u3002\u53ef\u4ee5\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u8fed\u4ee3\u5668\uff0c\u7136\u540e\u4f7f\u7528<code>islice<\/code>\u83b7\u53d6\u6700\u540e\u5341\u4f4d\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from itertools import islice<\/p>\n<p>def get_last_ten_elements(lst):<\/p>\n<p>    it = iter(lst)<\/p>\n<p>    return list(islice(it, len(lst) - 10, len(lst)))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\u5143\u7d20\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u6709\u5f88\u591a\u573a\u666f\uff0c\u6bd4\u5982\u5904\u7406\u65e5\u5fd7\u6587\u4ef6\u3001\u5206\u6790\u6570\u636e\u3001\u83b7\u53d6\u6700\u65b0\u8bb0\u5f55\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. \u65e5\u5fd7\u6587\u4ef6\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u65e5\u5fd7\u6587\u4ef6\u65f6\uff0c\u901a\u5e38\u53ea\u9700\u8981\u67e5\u770b\u6700\u65b0\u7684\u51e0\u6761\u65e5\u5fd7\u8bb0\u5f55\u3002\u53ef\u4ee5\u5c06\u65e5\u5fd7\u6587\u4ef6\u8bfb\u53d6\u5230\u5217\u8868\u4e2d\uff0c\u7136\u540e\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u83b7\u53d6\u6700\u540e\u5341\u6761\u8bb0\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;logfile.log&#39;) as f:<\/p>\n<p>    lines = f.readlines()<\/p>\n<p>last_ten_logs = get_last_ten_elements(lines)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u6570\u636e\u5206\u6790<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5206\u6790\u4e2d\uff0c\u7ecf\u5e38\u9700\u8981\u83b7\u53d6\u6700\u8fd1\u7684\u6570\u636e\u8bb0\u5f55\u8fdb\u884c\u5206\u6790\u3002\u53ef\u4ee5\u5c06\u6570\u636e\u8bfb\u53d6\u5230\u5217\u8868\u4e2d\uff0c\u7136\u540e\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u83b7\u53d6\u6700\u540e\u5341\u6761\u8bb0\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = pd.read_csv(&#39;data.csv&#39;)<\/p>\n<p>last_ten_records = get_last_ten_elements(data[&#39;column_name&#39;].tolist())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6027\u80fd\u4f18\u5316\u4e0e\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u5217\u8868\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u975e\u5e38\u91cd\u8981\u3002\u5c3d\u91cf\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236\u64cd\u4f5c\uff0c\u4f7f\u7528\u9ad8\u6548\u7684\u5207\u7247\u548c\u8fed\u4ee3\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>1. \u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u5217\u8868\u65f6\uff0c\u5c3d\u91cf\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236\u64cd\u4f5c\u3002\u4f7f\u7528\u5207\u7247\u64cd\u4f5c<code>lst[-10:]<\/code>\u4e0d\u4f1a\u521b\u5efa\u65b0\u5217\u8868\uff0c\u800c\u662f\u8fd4\u56de\u539f\u5217\u8868\u7684\u4e00\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u9ad8\u6548\u7684\u8fed\u4ee3\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u5728\u9700\u8981\u9891\u7e41\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u65f6\uff0c\u4f7f\u7528<code>deque<\/code>\u5bf9\u8c61\u53ef\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<code>deque<\/code>\u5bf9\u8c61\u7684<code>maxlen<\/code>\u53c2\u6570\u53ef\u4ee5\u9650\u5236\u961f\u5217\u7684\u6700\u5927\u957f\u5ea6\uff0c\u4ece\u800c\u9ad8\u6548\u5730\u83b7\u53d6\u6700\u540e\u5341\u4f4d\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\u5143\u7d20\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u51fd\u6570\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5207\u7247\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u9ad8\u6548\u3002\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4f4d\u5143\u7d20\uff0c\u5e76\u5e94\u7528\u4e8e\u5b9e\u9645\u573a\u666f\u4e2d\u3002\u5728\u5904\u7406\u5927\u5217\u8868\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u975e\u5e38\u91cd\u8981\uff0c\u5c3d\u91cf\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u590d\u5236\u64cd\u4f5c\uff0c\u4f7f\u7528\u9ad8\u6548\u7684\u5207\u7247\u548c\u8fed\u4ee3\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4e2a\u5143\u7d20\uff1f<\/strong><br \/>\u8981\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u3002\u5047\u8bbe\u4f60\u6709\u4e00\u4e2a\u5217\u8868<code>my_list<\/code>\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7<code>my_list[-10:]<\/code>\u6765\u83b7\u53d6\u6700\u540e\u5341\u4e2a\u5143\u7d20\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u4e14\u9ad8\u6548\uff0c\u4e0d\u4ec5\u9002\u7528\u4e8e\u957f\u5ea6\u5927\u4e8e\u5341\u7684\u5217\u8868\uff0c\u5bf9\u4e8e\u5c0f\u4e8e\u5341\u7684\u5217\u8868\u4e5f\u80fd\u6b63\u786e\u8fd4\u56de\u6240\u6709\u5143\u7d20\u3002<\/p>\n<p><strong>\u5982\u679c\u6211\u7684\u5217\u8868\u957f\u5ea6\u5c11\u4e8e\u5341\u4e2a\u5143\u7d20\uff0c\u4f7f\u7528\u5207\u7247\u4f1a\u6709\u4ec0\u4e48\u6548\u679c\uff1f<\/strong><br \/>\u5f53\u5217\u8868\u7684\u957f\u5ea6\u5c11\u4e8e\u5341\u4e2a\u5143\u7d20\u65f6\uff0c\u4f7f\u7528\u5207\u7247<code>my_list[-10:]<\/code>\u4f1a\u8fd4\u56de\u6574\u4e2a\u5217\u8868\uff0c\u800c\u4e0d\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u8fd9\u662f\u56e0\u4e3a\u5207\u7247\u64cd\u4f5c\u4f1a\u81ea\u52a8\u9002\u5e94\u5217\u8868\u7684\u5b9e\u9645\u957f\u5ea6\uff0c\u56e0\u6b64\u4f60\u53ef\u4ee5\u653e\u5fc3\u4f7f\u7528\u8fd9\u4e00\u65b9\u6cd5\uff0c\u65e0\u8bba\u5217\u8868\u7684\u957f\u5ea6\u5982\u4f55\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u5faa\u73af\u6765\u83b7\u53d6\u5217\u8868\u7684\u6700\u540e\u5341\u4e2a\u5143\u7d20\uff1f<\/strong><br \/>\u867d\u7136\u5207\u7247\u662f\u83b7\u53d6\u6700\u540e\u5341\u4e2a\u5143\u7d20\u7684\u6700\u7b80\u4fbf\u65b9\u6cd5\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002\u901a\u8fc7\u53cd\u5411\u8fed\u4ee3\u5217\u8868\uff0c\u4f60\u53ef\u4ee5\u624b\u52a8\u9009\u62e9\u6700\u540e\u5341\u4e2a\u5143\u7d20\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">last_ten = []\nfor i in range(len(my_list)-10, len(my_list)):\n    if i &gt;= 0:  # \u786e\u4fdd\u7d22\u5f15\u6709\u6548\n        last_ten.append(my_list[i])\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u53ef\u884c\uff0c\u4f46\u4e00\u822c\u4e0d\u5982\u5207\u7247\u7b80\u6d01\u660e\u4e86\u3002<\/p>\n<p><strong>\u5728\u83b7\u53d6\u540e\u5341\u4f4d\u65f6\uff0c\u5982\u4f55\u5904\u7406\u5217\u8868\u4e2d\u7684\u91cd\u590d\u5143\u7d20\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u60f3\u5728\u83b7\u53d6\u6700\u540e\u5341\u4e2a\u5143\u7d20\u65f6\u5904\u7406\u91cd\u590d\u5143\u7d20\uff0c\u53ef\u4ee5\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff0c\u7136\u540e\u518d\u53d6\u6700\u540e\u5341\u4e2a\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">unique_last_ten = list(set(my_list))[-10:]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u53bb\u9664\u91cd\u590d\u503c\uff0c\u4f46\u8981\u6ce8\u610f\uff0c\u96c6\u5408\u662f\u65e0\u5e8f\u7684\uff0c\u56e0\u6b64\u6700\u7ec8\u7684\u7ed3\u679c\u987a\u5e8f\u53ef\u80fd\u4e0e\u539f\u5217\u8868\u4e0d\u540c\u3002\u5982\u679c\u4fdd\u6301\u987a\u5e8f\u662f\u91cd\u8981\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u6765\u786e\u4fdd\u552f\u4e00\u6027\u548c\u987a\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u83b7\u53d6\u5217\u8868\u540e\u5341\u4f4d\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5185\u7f6e\u51fd\u6570\u548c\u5e93\u51fd\u6570\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5207\u7247\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u9ad8\u6548 [&hellip;]","protected":false},"author":3,"featured_media":1066807,"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\/1066797"}],"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=1066797"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066797\/revisions"}],"predecessor-version":[{"id":1066809,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1066797\/revisions\/1066809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1066807"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1066797"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1066797"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1066797"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}