{"id":929162,"date":"2024-12-26T16:50:11","date_gmt":"2024-12-26T08:50:11","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/929162.html"},"modified":"2024-12-26T16:50:14","modified_gmt":"2024-12-26T08:50:14","slug":"python%e5%a6%82%e4%bd%95%e6%89%93%e5%bc%80dat","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/929162.html","title":{"rendered":"Python\u5982\u4f55\u6253\u5f00dat"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25064508\/1016284a-e580-4295-93ae-98925ff3029c.webp\" alt=\"Python\u5982\u4f55\u6253\u5f00dat\" \/><\/p>\n<p><p> <strong>Python\u6253\u5f00DAT\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f8b\u5982\u4f7f\u7528\u6807\u51c6\u5e93\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\u3001\u7b2c\u4e09\u65b9\u5e93\u5982Pandas\u3001Numpy\u7b49\u3002\u5177\u4f53\u7684\u4f7f\u7528\u65b9\u6cd5\u53d6\u51b3\u4e8eDAT\u6587\u4ef6\u7684\u683c\u5f0f\u548c\u5185\u5bb9\u3002\u53ef\u4ee5\u4f7f\u7528Python\u5185\u7f6e\u7684<code>open<\/code>\u51fd\u6570\u3001\u5229\u7528Pandas\u8fdb\u884c\u6570\u636e\u5904\u7406\u3001\u6216\u8005\u901a\u8fc7Numpy\u8fdb\u884c\u6570\u503c\u8ba1\u7b97\u3002<\/strong>\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528Python\u6253\u5f00\u548c\u5904\u7406DAT\u6587\u4ef6\u7684\u51e0\u79cd\u65b9\u6cd5\uff0c\u91cd\u70b9\u5728\u4e8e\u5982\u4f55\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u6765\u6ee1\u8db3\u7279\u5b9a\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001DAT\u6587\u4ef6\u57fa\u7840<\/p>\n<\/p>\n<p><p>DAT\u6587\u4ef6\u662f\u4e00\u79cd\u901a\u7528\u7684\u6570\u636e\u6587\u4ef6\u683c\u5f0f\uff0c\u901a\u5e38\u7528\u4e8e\u5b58\u50a8\u4e8c\u8fdb\u5236\u6570\u636e\u6216\u6587\u672c\u6570\u636e\u3002\u7531\u4e8e\u5176\u4e0d\u7279\u5b9a\u7684\u6570\u636e\u7ed3\u6784\uff0c\u7406\u89e3\u5176\u5185\u5bb9\u662f\u6210\u529f\u8bfb\u53d6\u7684\u5173\u952e\u3002DAT\u6587\u4ef6\u53ef\u4ee5\u662f\u7eaf\u6587\u672c\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u751a\u81f3\u662f\u7279\u5b9a\u8f6f\u4ef6\u751f\u6210\u7684\u6570\u636e\u5b58\u50a8\u683c\u5f0f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>DAT\u6587\u4ef6\u7684\u6587\u672c\u683c\u5f0f<\/p>\n<\/p>\n<ul>\n<li>\u5982\u679cDAT\u6587\u4ef6\u662f\u6587\u672c\u683c\u5f0f\uff0c\u901a\u5e38\u53ef\u4ee5\u7528\u4efb\u4f55\u6587\u672c\u7f16\u8f91\u5668\u6253\u5f00\u5e76\u67e5\u770b\u5176\u5185\u5bb9\u3002Python\u4e2d\u53ef\u4ee5\u4f7f\u7528<code>open<\/code>\u51fd\u6570\u4ee5\u6587\u672c\u6a21\u5f0f\u8bfb\u53d6\u3002<\/li>\n<li>\u8bfb\u53d6\u6587\u672cDAT\u6587\u4ef6\u7684\u5173\u952e\u662f\u660e\u786e\u6587\u4ef6\u7684\u5206\u9694\u7b26\u3001\u7f16\u7801\u548c\u6570\u636e\u683c\u5f0f\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>DAT\u6587\u4ef6\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f<\/p>\n<\/p>\n<ul>\n<li>\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684DAT\u6587\u4ef6\u901a\u5e38\u9700\u8981\u77e5\u9053\u6587\u4ef6\u7684\u7ed3\u6784\u548c\u7f16\u7801\u65b9\u5f0f\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684<code>open<\/code>\u51fd\u6570\u4ee5\u4e8c\u8fdb\u5236\u6a21\u5f0f\u8bfb\u53d6\u3002<\/li>\n<li>\u89e3\u6790\u4e8c\u8fdb\u5236\u6570\u636e\u65f6\u53ef\u80fd\u9700\u8981\u7ed3\u5408struct\u6a21\u5757\uff0c\u4e86\u89e3\u6587\u4ef6\u7684\u5177\u4f53\u7ed3\u6784\u624d\u80fd\u6b63\u786e\u89e3\u6790\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528Python\u5185\u7f6e\u51fd\u6570\u8bfb\u53d6DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5185\u7f6e\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u4e8e\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u6570\u636e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528<code>open<\/code>\u51fd\u6570\u8bfb\u53d6\u6587\u672cDAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;example.dat&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:<\/p>\n<p>    data = file.readlines()<\/p>\n<p>    for line in data:<\/p>\n<p>        print(line.strip())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6587\u672c\u683c\u5f0f\u7684DAT\u6587\u4ef6\uff0c\u4f7f\u7528<code>with<\/code>\u8bed\u53e5\u53ef\u4ee5\u786e\u4fdd\u6587\u4ef6\u5728\u8bfb\u53d6\u5b8c\u6210\u540e\u6b63\u786e\u5173\u95ed\u3002<\/li>\n<li><code>readlines<\/code>\u65b9\u6cd5\u5c06\u6587\u4ef6\u7684\u6bcf\u4e00\u884c\u4f5c\u4e3a\u5143\u7d20\u5b58\u5165\u5217\u8868\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4f7f\u7528<code>open<\/code>\u51fd\u6570\u8bfb\u53d6\u4e8c\u8fdb\u5236DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;example.dat&#39;, &#39;rb&#39;) as file:<\/p>\n<p>    binary_data = file.read()<\/p>\n<p>    # \u9700\u8981\u6839\u636e\u6587\u4ef6\u683c\u5f0f\u89e3\u6790binary_data<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li>\u8bfb\u53d6\u4e8c\u8fdb\u5236\u6587\u4ef6\u65f6\u4f7f\u7528<code>&#39;rb&#39;<\/code>\u6a21\u5f0f\uff0c\u8bfb\u53d6\u7684\u5185\u5bb9\u4e3a\u5b57\u8282\u5bf9\u8c61\u3002<\/li>\n<li>\u89e3\u6790\u4e8c\u8fdb\u5236\u6570\u636e\u53ef\u80fd\u9700\u8981\u5bf9\u6587\u4ef6\u7ed3\u6784\u6709\u6df1\u5165\u4e86\u89e3\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5229\u7528Pandas\u5e93\u5904\u7406DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u8868\u683c\u6570\u636e\u3002\u5b83\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bfb\u53d6\u548c\u5206\u6790\u5404\u79cd\u683c\u5f0f\u7684\u6570\u636e\u6587\u4ef6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528Pandas\u8bfb\u53d6CSV\u683c\u5f0f\u7684DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>df = pd.read_csv(&#39;example.dat&#39;, delimiter=&#39;;&#39;, encoding=&#39;utf-8&#39;)<\/p>\n<p>print(df.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li>\u5982\u679cDAT\u6587\u4ef6\u662fCSV\u683c\u5f0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>pd.read_csv<\/code>\u51fd\u6570\u8bfb\u53d6\uff0c\u6ce8\u610f\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8bbe\u7f6e<code>delimiter<\/code>\u548c<code>encoding<\/code>\u53c2\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4f7f\u7528Pandas\u8bfb\u53d6\u81ea\u5b9a\u4e49\u5206\u9694\u7b26\u7684DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df = pd.read_table(&#39;example.dat&#39;, sep=&#39;|&#39;, encoding=&#39;utf-8&#39;)<\/p>\n<p>print(df.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>read_table<\/code>\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u8bfb\u53d6\u5177\u6709\u81ea\u5b9a\u4e49\u5206\u9694\u7b26\u7684\u6587\u4ef6\uff0c\u901a\u8fc7<code>sep<\/code>\u53c2\u6570\u6307\u5b9a\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528Numpy\u8bfb\u53d6\u548c\u5904\u7406DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><p>Numpy\u9002\u5408\u5904\u7406\u6570\u503c\u578b\u6570\u636e\uff0c\u5e38\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u4f7f\u7528Numpy\u8bfb\u53d6\u6570\u503c\u578bDAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = np.loadtxt(&#39;example.dat&#39;, delimiter=&#39;,&#39;)<\/p>\n<p>print(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>np.loadtxt<\/code>\u51fd\u6570\u53ef\u4ee5\u8bfb\u53d6\u6570\u503c\u578b\u6570\u636e\u6587\u4ef6\uff0c\u9700\u6839\u636e\u6587\u4ef6\u7ed3\u6784\u8bbe\u7f6e<code>delimiter<\/code>\u53c2\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u4f7f\u7528Numpy\u8bfb\u53d6\u4e8c\u8fdb\u5236DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = np.fromfile(&#39;example.dat&#39;, dtype=np.float32)<\/p>\n<p>print(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>np.fromfile<\/code>\u51fd\u6570\u7528\u4e8e\u8bfb\u53d6\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684\u6570\u503c\u578b\u6570\u636e\uff0c\u9700\u8981\u6307\u5b9a\u6570\u636e\u7c7b\u578b<code>dtype<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5904\u7406\u590d\u6742\u683c\u5f0f\u7684DAT\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u4e00\u4e9b\u590d\u6742\u683c\u5f0f\u7684DAT\u6587\u4ef6\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u7ed3\u5408\u591a\u79cd\u5de5\u5177\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u81ea\u5b9a\u4e49\u89e3\u6790\u51fd\u6570<\/p>\n<\/p>\n<ul>\n<li>\u5bf9\u4e8e\u683c\u5f0f\u590d\u6742\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u89e3\u6790\u51fd\u6570\uff0c\u9010\u884c\u6216\u5206\u5757\u8bfb\u53d6\u6570\u636e\u5e76\u89e3\u6790\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7ed3\u5408\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<\/p>\n<ul>\n<li>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7075\u6d3b\u89e3\u6790\u4e0d\u89c4\u5219\u6587\u672c\u683c\u5f0f\u7684\u6570\u636e\uff0c\u7279\u522b\u662f\u5728\u6570\u636e\u5206\u9694\u7b26\u4e0d\u89c4\u5219\u65f6\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u5904\u7406DAT\u6587\u4ef6\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u786e\u8ba4\u6587\u4ef6\u683c\u5f0f<\/p>\n<\/p>\n<ul>\n<li>\u5728\u5904\u7406\u524d\u786e\u8ba4DAT\u6587\u4ef6\u7684\u683c\u5f0f\uff08\u6587\u672c\u6216\u4e8c\u8fdb\u5236\uff09\u4ee5\u53ca\u5176\u5185\u90e8\u7ed3\u6784\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5904\u7406\u5927\u6587\u4ef6<\/p>\n<\/p>\n<ul>\n<li>\u5927\u6587\u4ef6\u8bfb\u53d6\u65f6\u5efa\u8bae\u5206\u5757\u8bfb\u53d6\uff0c\u907f\u514d\u5185\u5b58\u5360\u7528\u8fc7\u9ad8\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6570\u636e\u7f16\u7801\u95ee\u9898<\/p>\n<\/p>\n<ul>\n<li>\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u65f6\u6ce8\u610f\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\uff0c\u8bbe\u7f6e\u6b63\u786e\u7684<code>encoding<\/code>\u53c2\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0cPython\u53ef\u4ee5\u7075\u6d3b\u5730\u6253\u5f00\u548c\u5904\u7406\u5404\u79cd\u683c\u5f0f\u7684DAT\u6587\u4ef6\u3002\u9009\u62e9\u9002\u5408\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u80fd\u591f\u6709\u6548\u63d0\u9ad8\u6570\u636e\u5904\u7406\u6548\u7387\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6587\u672c\u6587\u4ef6\uff0c\u8fd8\u662f\u590d\u6742\u7684\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u901a\u8fc7\u5bf9Python\u5185\u7f6e\u51fd\u6570\u548c\u7b2c\u4e09\u65b9\u5e93\u7684\u5408\u7406\u4f7f\u7528\uff0c\u90fd\u80fd\u8f7b\u677e\u5b9e\u73b0\u5bf9DAT\u6587\u4ef6\u7684\u8bfb\u53d6\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bfb\u53d6.dat\u6587\u4ef6\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u8981\u5728Python\u4e2d\u8bfb\u53d6.dat\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684open()\u51fd\u6570\u3002\u9996\u5148\uff0c\u786e\u5b9a\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\uff08\u5982UTF-8\u6216ASCII\uff09\u3002\u63a5\u7740\uff0c\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\u6253\u5f00\u6587\u4ef6\u5e76\u8bfb\u53d6\u5185\u5bb9\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;filename.dat&#39;, &#39;r&#39;, encoding=&#39;utf-8&#39;) as file:\n    data = file.read()\n    print(data)\n<\/code><\/pre>\n<p>\u786e\u4fdd\u5c06&#39;filename.dat&#39;\u66ff\u6362\u4e3a\u60a8\u7684\u6587\u4ef6\u540d\u3002<\/p>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u5e93\u6765\u5904\u7406.dat\u6587\u4ef6\uff1f<\/strong><br \/>Python\u6709\u591a\u4e2a\u5e93\u53ef\u4f9b\u5904\u7406.dat\u6587\u4ef6\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6587\u4ef6\u7684\u683c\u5f0f\u3002\u4f8b\u5982\uff0cpandas\u5e93\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\uff0c\u800cNumPy\u5219\u9002\u5408\u5904\u7406\u6570\u503c\u6570\u636e\u3002\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u53ef\u4ee5\u8f7b\u677e\u52a0\u8f7d\u6570\u636e\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\ndata = pd.read_csv(&#39;filename.dat&#39;, delimiter=&#39;,&#39;)  # \u6839\u636e\u5b9e\u9645\u5206\u9694\u7b26\u8c03\u6574\n<\/code><\/pre>\n<p><strong>\u5982\u679c.dat\u6587\u4ef6\u5305\u542b\u4e8c\u8fdb\u5236\u6570\u636e\uff0c\u6211\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5305\u542b\u4e8c\u8fdb\u5236\u6570\u636e\u7684.dat\u6587\u4ef6\uff0c\u4f7f\u7528&#39;b&#39;\u6a21\u5f0f\u6253\u5f00\u6587\u4ef6\u662f\u5fc5\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u6253\u5f00\u548c\u8bfb\u53d6\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;filename.dat&#39;, &#39;rb&#39;) as file:\n    data = file.read()\n    # \u8fdb\u884c\u76f8\u5e94\u7684\u4e8c\u8fdb\u5236\u6570\u636e\u5904\u7406\n<\/code><\/pre>\n<p>\u786e\u4fdd\u6839\u636e\u5b9e\u9645\u9700\u6c42\u5bf9\u6570\u636e\u8fdb\u884c\u89e3\u6790\u548c\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6253\u5f00DAT\u6587\u4ef6\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u4f8b\u5982\u4f7f\u7528\u6807\u51c6\u5e93\u4e2d\u7684\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\u3001\u7b2c\u4e09\u65b9\u5e93\u5982Pandas\u3001Num [&hellip;]","protected":false},"author":3,"featured_media":929166,"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\/929162"}],"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=929162"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/929162\/revisions"}],"predecessor-version":[{"id":929170,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/929162\/revisions\/929170"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/929166"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=929162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=929162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=929162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}