{"id":258290,"date":"2024-05-15T12:34:35","date_gmt":"2024-05-15T04:34:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/258290.html"},"modified":"2024-05-15T12:34:41","modified_gmt":"2024-05-15T04:34:41","slug":"python-%e9%a1%b9%e7%9b%ae%e4%bb%a3%e7%a0%81%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e6%9c%80%e5%90%8e%e4%bf%ae%e6%94%b9%e6%97%b6%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/258290.html","title":{"rendered":"python \u9879\u76ee\u4ee3\u7801\u5982\u4f55\u83b7\u53d6\u6700\u540e\u4fee\u6539\u65f6\u95f4"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27105116\/e2121f05-0617-4610-b835-115c7819d92f.webp\" alt=\"python \u9879\u76ee\u4ee3\u7801\u5982\u4f55\u83b7\u53d6\u6700\u540e\u4fee\u6539\u65f6\u95f4\" \/><\/p>\n<p><p>\u5728Python\u9879\u76ee\u4e2d\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u8fd9\u5bf9\u4e8e\u76d1\u63a7\u6587\u4ef6\u66f4\u65b0\u3001\u65e5\u5fd7\u8bb0\u5f55\u3001\u7f13\u5b58\u7b56\u7565\u7b49\u65b9\u9762\u5177\u6709\u91cd\u8981\u610f\u4e49\u3002<strong>\u4e3b\u8981\u65b9\u6cd5\u662f\u4f7f\u7528Python\u7684\u6807\u51c6\u5e93\u4e2d\u7684<code>os<\/code>\u6a21\u5757\u548c<code>pathlib<\/code>\u6a21\u5757<\/strong>\u3002\u8fd9\u4e9b\u6a21\u5757\u63d0\u4f9b\u4e86\u64cd\u4f5c\u548c\u67e5\u8be2\u6587\u4ef6\u7cfb\u7edf\u7684\u529f\u80fd\uff0c\u5305\u62ec\u83b7\u53d6\u6587\u4ef6\u5c5e\u6027\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u7684<code>stat<\/code>\u51fd\u6570\u53ef\u4ee5\u83b7\u53d6\u6587\u4ef6\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u5176\u4e2d\u5305\u62ec\u6700\u540e\u7684\u4fee\u6539\u65f6\u95f4\u3002<code>os.path.getmtime()<\/code>\u51fd\u6570\u76f4\u63a5\u8fd4\u56de\u6587\u4ef6\u6700\u540e\u4fee\u6539\u7684\u65f6\u95f4\u6233\u3002\u5176\u6b21\uff0c<code>pathlib<\/code>\u6a21\u5757\uff0c\u662f\u4e00\u4e2a\u9762\u5411\u5bf9\u8c61\u7684\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u5e93\uff0c<code>Path<\/code>\u5bf9\u8c61\u7684<code>stat()<\/code>\u65b9\u6cd5\u540c\u6837\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u6587\u4ef6\u72b6\u6001\uff0c\u4ece\u800c\u5f97\u5230\u6700\u540e\u4fee\u6539\u65f6\u95f4\u3002\u76f8\u8f83\u4e8e<code>os<\/code>\u6a21\u5757\uff0c<code>pathlib<\/code>\u63d0\u4f9b\u4e86\u66f4\u4e3a\u73b0\u4ee3\u5316\u548c\u9762\u5411\u5bf9\u8c61\u7684API\uff0c\u4f7f\u5f97\u8def\u5f84\u64cd\u4f5c\u5728\u8bed\u6cd5\u4e0a\u66f4\u52a0\u6e05\u6670\u548c\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u66f4\u52a0\u8be6\u7ec6\u5730\u63a2\u8ba8\u8fd9\u4e24\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528OS\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>os\u6a21\u5757<\/strong>\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\u7684\u51fd\u6570\uff0c\u5b83\u662fPython\u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u56e0\u6b64\u65e0\u9700\u5b89\u88c5\u989d\u5916\u7684\u5305\u5c31\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u8981\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff0c\u4f60\u9700\u8981\u5bfc\u5165<code>os<\/code>\u6a21\u5757\uff0c\u5e76\u4f7f\u7528<code>os.path.getmtime()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u8def\u5f84\u4f5c\u4e3a\u53c2\u6570\uff0c\u8fd4\u56de\u4e00\u4e2a\u65f6\u95f4\u6233\uff0c\u8868\u793a\u6587\u4ef6\u6700\u540e\u4e00\u6b21\u4fee\u6539\u7684\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def get_last_modified_time(filepath):<\/p>\n<p>    timestamp = os.path.getmtime(filepath)<\/p>\n<p>    return timestamp<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u7740\uff0c\u4f60\u53ef\u4ee5\u5c06\u65f6\u95f4\u6233\u8f6c\u6362\u4e3a\u66f4\u6613\u8bfb\u7684\u683c\u5f0f\u3002Python\u7684<code>datetime<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u8f6c\u6362\u65f6\u95f4\u6233\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from datetime import datetime<\/p>\n<p>def convert_timestamp_to_datetime(timestamp):<\/p>\n<p>    last_modified_date = datetime.fromtimestamp(timestamp)<\/p>\n<p>    return last_modified_date<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7ed3\u5408\u4e0a\u8ff0\u4e24\u4e2a\u51fd\u6570\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff0c\u5e76\u4ee5\u6613\u4e8e\u9605\u8bfb\u7684\u65b9\u5f0f\u5c55\u793a\u51fa\u6765\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528PATHLIB\u6a21\u5757<\/h3>\n<\/p>\n<p><p><strong>Pathlib\u6a21\u5757<\/strong>\u662fPython 3.4\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u5f15\u5165\u7684\u73b0\u4ee3\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u5e93\uff0c\u63d0\u4f9b\u4e86\u9762\u5411\u5bf9\u8c61\u7684\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u4ece<code>pathlib<\/code>\u5bfc\u5165<code>Path<\/code>\u7c7b\uff0c\u5e76\u521b\u5efa\u4e00\u4e2a\u6307\u5411\u76ee\u6807\u6587\u4ef6\u7684Path\u5bf9\u8c61\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u8be5\u5bf9\u8c61\u7684<code>stat()<\/code>\u65b9\u6cd5\u83b7\u53d6\u6587\u4ef6\u7684\u72b6\u6001\u4fe1\u606f\uff0c\u8be5\u4fe1\u606f\u4e2d\u5305\u542b\u4e86\u6700\u540e\u4fee\u6539\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>def get_last_modified_time_with_pathlib(filepath):<\/p>\n<p>    path = Path(filepath)<\/p>\n<p>    stat_info = path.stat()<\/p>\n<p>    return stat_info.st_mtime<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0e\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u7c7b\u4f3c\uff0c\u83b7\u5f97\u7684\u662f\u4e00\u4e2a\u65f6\u95f4\u6233\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0<code>convert_timestamp_to_datetime<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u6613\u4e8e\u7406\u89e3\u7684\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/p>\n<\/p>\n<p><p>Pathlib\u6a21\u5757\u4ee5\u4e00\u4e2a\u66f4\u52a0\u9762\u5411\u5bf9\u8c61\u7684\u65b9\u5f0f\u63d0\u4f9b\u4e86\u6587\u4ef6\u7cfb\u7edf\u8def\u5f84\u7684\u64cd\u4f5c\u80fd\u529b\u3002\u4f7f\u7528\u8be5\u6a21\u5757\u4e0d\u4ec5\u53ef\u4ee5\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff0c\u8fd8\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u8def\u5f84\u7684\u6784\u9020\u3001\u62fc\u63a5\u548c\u5206\u89e3\u7b49\u64cd\u4f5c\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u6e05\u6670\u548c\u6613\u4e8e\u7ef4\u62a4\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5bf9\u6bd4\u548c\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u867d\u7136<code>os<\/code>\u548c<code>pathlib<\/code>\u6a21\u5757\u90fd\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff0c\u4f46\u5b83\u4eec\u5728\u4f7f\u7528\u4e0a\u7a0d\u6709\u4e0d\u540c\u3002<code>os<\/code>\u6a21\u5757\u7684\u63a5\u53e3\u66f4\u504f\u5411\u4e8e\u4f20\u7edf\u548c\u8fc7\u7a0b\u5316\u7684\u64cd\u4f5c\uff0c\u800c<code>pathlib<\/code>\u63d0\u4f9b\u4e86\u66f4\u73b0\u4ee3\u548c\u9762\u5411\u5bf9\u8c61\u7684API\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0c<code>pathlib<\/code>\u7684\u4f7f\u7528\u53ef\u4ee5\u8ba9\u8def\u5f84\u64cd\u4f5c\u7684\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u660e\u4e86\u3002<\/p>\n<\/p>\n<p><p>\u5728\u51b3\u5b9a\u4f7f\u7528\u54ea\u4e00\u4e2a\u6a21\u5757\u65f6\uff0c\u5982\u679c\u4f60\u66f4\u503e\u5411\u4e8e\u9762\u5411\u5bf9\u8c61\u7684\u7f16\u7a0b\u8303\u5f0f\uff0c\u6216\u8005\u6b63\u5728\u4f7f\u7528Python 3.4\u53ca\u4ee5\u4e0a\u7248\u672c\uff0c\u63a8\u8350\u4f7f\u7528<code>pathlib<\/code>\u6a21\u5757\u3002\u5b83\u4e0d\u4ec5\u80fd\u591f\u6ee1\u8db3\u83b7\u53d6\u6700\u540e\u4fee\u6539\u65f6\u95f4\u7684\u9700\u6c42\uff0c\u8fd8\u80fd\u8ba9\u6574\u4f53\u4ee3\u7801\u7ed3\u6784\u66f4\u52a0\u6e05\u6670\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u8df5\u5e94\u7528\u6848\u4f8b<\/h3>\n<\/p>\n<p><p>\u5728\u65e5\u5e38\u5f00\u53d1\u4e2d\uff0c\u76d1\u63a7\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u6709\u7740\u5e7f\u6cdb\u7684\u7528\u9014\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u811a\u672c\u5b9a\u671f\u68c0\u67e5\u7279\u5b9a\u6587\u4ef6\u6216\u76ee\u5f55\u7684\u66f4\u65b0\u72b6\u6001\uff0c\u4e00\u65e6\u53d1\u73b0\u6587\u4ef6\u88ab\u4fee\u6539\uff0c\u4fbf\u6267\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\uff0c\u5982\u81ea\u52a8\u5907\u4efd\u3001\u89e6\u53d1\u8b66\u62a5\u6216\u8005\u81ea\u52a8\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u7f51\u7ad9\u5f00\u53d1\u4e2d\u7ecf\u5e38\u9700\u8981\u6839\u636e\u9759\u6001\u6587\u4ef6\u7684\u4fee\u6539\u65f6\u95f4\u6765\u8bbe\u7f6eHTTP\u7f13\u5b58\u3002\u901a\u8fc7\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u5e76\u5728HTTP\u54cd\u5e94\u5934\u4e2d\u6dfb\u52a0<code>Last-Modified<\/code>\u5b57\u6bb5\uff0c\u53ef\u4ee5\u4f18\u5316\u7f51\u7ad9\u7684\u7f13\u5b58\u7b56\u7565\uff0c\u63d0\u9ad8\u7f51\u7ad9\u52a0\u8f7d\u901f\u5ea6\u548c\u7528\u6237\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u5728\u81ea\u52a8\u5316\u811a\u672c\u3001\u7f51\u7ad9\u5f00\u53d1\u8fd8\u662f\u5176\u4ed6\u9700\u8981\u6587\u4ef6\u76d1\u63a7\u7684\u573a\u666f\u4e2d\uff0c\u638c\u63e1\u5982\u4f55\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u90fd\u662f\u4e00\u9879\u975e\u5e38\u5b9e\u7528\u7684\u6280\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u4f7f\u7528Python\u83b7\u53d6\u9879\u76ee\u4ee3\u7801\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u7f6e\u7684\u6a21\u5757<code>os<\/code>\uff0c\u53ef\u4ee5\u7528\u6765\u83b7\u53d6\u6587\u4ef6\u7684\u76f8\u5173\u4fe1\u606f\uff0c\u5305\u62ec\u6700\u540e\u4fee\u6539\u65f6\u95f4\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>os.path<\/code>\u6a21\u5757\u4e2d\u7684<code>getmtime()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\n\ndef get_last_modified_time(file_path):\n    last_modified_timestamp = os.path.getmtime(file_path)\n    last_modified_time = datetime.datetime.fromtimestamp(last_modified_timestamp)\n    return last_modified_time\n\nfile_path = &quot;\/path\/to\/your\/file.py&quot;\nlast_modified_time = get_last_modified_time(file_path)\nprint(&quot;\u9879\u76ee\u4ee3\u7801\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u662f\uff1a&quot;, last_modified_time)\n<\/code><\/pre>\n<p><strong>2. \u5982\u4f55\u83b7\u53d6\u9879\u76ee\u4ee3\u7801\u4e2d\u6bcf\u4e2a\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u60f3\u83b7\u53d6\u9879\u76ee\u4ee3\u7801\u4e2d\u6bcf\u4e2a\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\uff0c\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u904d\u5386\u7684\u65b9\u6cd5\uff0c\u5c06\u4ee3\u7801\u5e94\u7528\u4e8e\u6574\u4e2a\u9879\u76ee\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\nimport datetime\n\ndef get_last_modified_time(file_path):\n    last_modified_timestamp = os.path.getmtime(file_path)\n    last_modified_time = datetime.datetime.fromtimestamp(last_modified_timestamp)\n    return last_modified_time\n\ndef get_all_files(directory):\n    files = []\n    for root, _, filenames in os.walk(directory):\n        for filename in filenames:\n            file_path = os.path.join(root, filename)\n            files.append(file_path)\n    return files\n\nproject_directory = &quot;\/path\/to\/your\/project&quot;\nfile_paths = get_all_files(project_directory)\n\nfor file_path in file_paths:\n    last_modified_time = get_last_modified_time(file_path)\n    print(file_path, &quot;\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u662f\uff1a&quot;, last_modified_time)\n<\/code><\/pre>\n<p><strong>3. \u5982\u4f55\u5c06\u9879\u76ee\u4ee3\u7801\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u4fdd\u5b58\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5c06\u9879\u76ee\u4ee3\u7801\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u4fdd\u5b58\u5230\u4e00\u4e2a\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6\u64cd\u4f5c\u51fd\u6570\u5c06\u65f6\u95f4\u4fe1\u606f\u5199\u5165\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">import os\nimport datetime\n\ndef get_last_modified_time(file_path):\n    last_modified_timestamp = os.path.getmtime(file_path)\n    last_modified_time = datetime.datetime.fromtimestamp(last_modified_timestamp)\n    return last_modified_time\n\ndef get_all_files(directory):\n    files = []\n    for root, _, filenames in os.walk(directory):\n        for filename in filenames:\n            file_path = os.path.join(root, filename)\n            files.append(file_path)\n    return files\n\nproject_directory = &quot;\/path\/to\/your\/project&quot;\nfile_paths = get_all_files(project_directory)\n\noutput_file = open(&quot;last_modified_time.txt&quot;, &quot;w&quot;)\n\nfor file_path in file_paths:\n    last_modified_time = get_last_modified_time(file_path)\n    output_file.write(file_path + &quot; \u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u662f\uff1a&quot; + str(last_modified_time) + &quot;\\n&quot;)\n\noutput_file.close()\nprint(&quot;\u6700\u540e\u4fee\u6539\u65f6\u95f4\u5df2\u4fdd\u5b58\u5230 last_modified_time.txt \u6587\u4ef6\u4e2d\u3002&quot;)\n<\/code><\/pre>\n<p>\u8bf7\u6ce8\u610f\uff0c\u8fd9\u53ea\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u60a8\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u9879\u76ee\u4e2d\u83b7\u53d6\u6587\u4ef6\u7684\u6700\u540e\u4fee\u6539\u65f6\u95f4\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u8fd9\u5bf9\u4e8e\u76d1\u63a7\u6587\u4ef6\u66f4\u65b0\u3001\u65e5\u5fd7\u8bb0\u5f55\u3001\u7f13\u5b58\u7b56\u7565\u7b49\u65b9\u9762\u5177\u6709\u91cd [&hellip;]","protected":false},"author":3,"featured_media":258297,"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\/258290"}],"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=258290"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/258290\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/258297"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=258290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=258290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=258290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}