{"id":1013919,"date":"2024-12-27T11:51:58","date_gmt":"2024-12-27T03:51:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1013919.html"},"modified":"2024-12-27T11:52:00","modified_gmt":"2024-12-27T03:52:00","slug":"python%e5%a6%82%e4%bd%95%e8%af%bb%e5%8f%96mac%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1013919.html","title":{"rendered":"python\u5982\u4f55\u8bfb\u53d6mac\u8def\u5f84"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094205\/b353b325-06ac-41a8-9c63-624ab1fb6819.webp\" alt=\"python\u5982\u4f55\u8bfb\u53d6mac\u8def\u5f84\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8bfb\u53d6Mac\u8def\u5f84\uff0c\u53ef\u4ee5\u4f7f\u7528os\u6a21\u5757\u3001pathlib\u6a21\u5757\u3001\u4ee5\u53casys\u6a21\u5757\u3002<\/strong>\u5176\u4e2d\uff0cos\u6a21\u5757\u7528\u4e8e\u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3001\u53d8\u66f4\u76ee\u5f55\u6216\u68c0\u67e5\u8def\u5f84\u5b58\u5728\u6027\uff1bpathlib\u6a21\u5757\u63d0\u4f9b\u9762\u5411\u5bf9\u8c61\u7684\u8def\u5f84\u64cd\u4f5c\u65b9\u5f0f\uff0c\u652f\u6301\u8def\u5f84\u7684\u89e3\u6790\u3001\u5408\u5e76\u7b49\u64cd\u4f5c\uff1b\u800csys\u6a21\u5757\u5219\u53ef\u4ee5\u7528\u4e8e\u83b7\u53d6\u811a\u672c\u6587\u4ef6\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528OS\u6a21\u5757<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0cos\u6a21\u5757\u662f\u5904\u7406\u8def\u5f84\u548c\u6587\u4ef6\u7cfb\u7edf\u64cd\u4f5c\u7684\u6838\u5fc3\u6a21\u5757\u4e4b\u4e00\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u64cd\u4f5c\u6587\u4ef6\u8def\u5f84\uff0c\u5e76\u4e14\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u5177\u6709\u826f\u597d\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55<\/li>\n<\/ol>\n<p><p>os.getcwd()\u51fd\u6570\u7528\u4e8e\u83b7\u53d6\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u7684\u8def\u5f84\u3002\u8be5\u51fd\u6570\u5728Mac OS\u4e0a\u540c\u6837\u9002\u7528\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u811a\u672c\u6267\u884c\u65f6\u7684\u5f53\u524d\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>current_directory = os.getcwd()<\/p>\n<p>print(f&quot;\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u662f: {current_directory}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u5207\u6362\u76ee\u5f55<\/li>\n<\/ol>\n<p><p>os.chdir()\u51fd\u6570\u7528\u4e8e\u6539\u53d8\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u3002\u53ef\u4ee5\u901a\u8fc7\u4f20\u5165\u76ee\u6807\u8def\u5f84\u6765\u5207\u6362\u5230\u6307\u5b9a\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<h2><strong>\u5047\u8bbe\u76ee\u6807\u8def\u5f84\u4e3a\u7528\u6237\u7684\u684c\u9762\u8def\u5f84<\/strong><\/h2>\n<p>desktop_path = &quot;\/Users\/yourusername\/Desktop&quot;<\/p>\n<p>os.chdir(desktop_path)<\/p>\n<p>print(f&quot;\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u5df2\u53d8\u66f4\u4e3a: {os.getcwd()}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u68c0\u67e5\u8def\u5f84\u5b58\u5728\u6027<\/li>\n<\/ol>\n<p><p>os.path.exists()\u51fd\u6570\u7528\u4e8e\u68c0\u67e5\u6307\u5b9a\u8def\u5f84\u662f\u5426\u5b58\u5728\u3002\u8be5\u65b9\u6cd5\u5bf9\u4e8e\u6587\u4ef6\u548c\u76ee\u5f55\u5747\u9002\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>path = &quot;\/Users\/yourusername\/Documents&quot;<\/p>\n<p>if os.path.exists(path):<\/p>\n<p>    print(&quot;\u8def\u5f84\u5b58\u5728&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u8def\u5f84\u4e0d\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528PATHLIB\u6a21\u5757<\/p>\n<\/p>\n<p><p>pathlib\u6a21\u5757\u662fPython 3.4\u5f15\u5165\u7684\u4e00\u4e2a\u65b0\u6a21\u5757\uff0c\u7528\u4e8e\u4ee5\u9762\u5411\u5bf9\u8c61\u7684\u65b9\u5f0f\u64cd\u4f5c\u8def\u5f84\u3002\u5b83\u63d0\u4f9b\u4e86\u66f4\u4e3a\u76f4\u89c2\u7684\u65b9\u6cd5\u6765\u8fdb\u884c\u8def\u5f84\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u8def\u5f84\u5bf9\u8c61<\/li>\n<\/ol>\n<p><p>Path\u5bf9\u8c61\u662fpathlib\u6a21\u5757\u7684\u6838\u5fc3\u7c7b\u3002\u53ef\u4ee5\u901a\u8fc7\u521b\u5efaPath\u5bf9\u8c61\u6765\u8868\u793a\u6587\u4ef6\u6216\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<h2><strong>\u521b\u5efa\u8def\u5f84\u5bf9\u8c61<\/strong><\/h2>\n<p>path = Path(&quot;\/Users\/yourusername\/Documents&quot;)<\/p>\n<p>print(f&quot;\u8def\u5f84\u4e3a: {path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u68c0\u67e5\u8def\u5f84\u662f\u5426\u5b58\u5728<\/li>\n<\/ol>\n<p><p>Path\u5bf9\u8c61\u63d0\u4f9b\u4e86exists()\u65b9\u6cd5\uff0c\u7528\u4e8e\u68c0\u67e5\u8def\u5f84\u662f\u5426\u5b58\u5728\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>path = Path(&quot;\/Users\/yourusername\/Documents&quot;)<\/p>\n<p>if path.exists():<\/p>\n<p>    print(&quot;\u8def\u5f84\u5b58\u5728&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u8def\u5f84\u4e0d\u5b58\u5728&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u83b7\u53d6\u76ee\u5f55\u5185\u5bb9<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7iterdir()\u65b9\u6cd5\uff0c\u53ef\u4ee5\u83b7\u53d6\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u5185\u5bb9\uff0c\u5305\u62ec\u6587\u4ef6\u548c\u5b50\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pathlib import Path<\/p>\n<p>path = Path(&quot;\/Users\/yourusername\/Documents&quot;)<\/p>\n<h2><strong>\u5217\u51fa\u76ee\u5f55\u5185\u5bb9<\/strong><\/h2>\n<p>for item in path.iterdir():<\/p>\n<p>    print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528SYS\u6a21\u5757<\/p>\n<\/p>\n<p><p>sys\u6a21\u5757\u63d0\u4f9b\u4e86\u4e0ePython\u89e3\u91ca\u5668\u76f8\u5173\u7684\u529f\u80fd\uff0c\u5305\u62ec\u83b7\u53d6\u811a\u672c\u8def\u5f84\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li>\u83b7\u53d6\u811a\u672c\u6587\u4ef6\u8def\u5f84<\/li>\n<\/ol>\n<p><p>sys\u6a21\u5757\u7684argv\u5c5e\u6027\u53ef\u4ee5\u83b7\u53d6\u5f53\u524d\u811a\u672c\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<h2><strong>\u83b7\u53d6\u811a\u672c\u6587\u4ef6\u8def\u5f84<\/strong><\/h2>\n<p>script_path = sys.argv[0]<\/p>\n<p>print(f&quot;\u811a\u672c\u6587\u4ef6\u8def\u5f84\u662f: {script_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5e38\u89c1\u8def\u5f84\u64cd\u4f5c<\/p>\n<\/p>\n<ol>\n<li>\u5408\u5e76\u8def\u5f84<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528os.path.join()\u65b9\u6cd5\u53ef\u4ee5\u5408\u5e76\u591a\u4e2a\u8def\u5f84\u7ec4\u4ef6\uff0c\u751f\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>base_path = &quot;\/Users\/yourusername&quot;<\/p>\n<p>sub_path = &quot;Documents\/myfile.txt&quot;<\/p>\n<p>full_path = os.path.join(base_path, sub_path)<\/p>\n<p>print(f&quot;\u5b8c\u6574\u8def\u5f84\u662f: {full_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u62c6\u5206\u8def\u5f84<\/li>\n<\/ol>\n<p><p>os.path.split()\u65b9\u6cd5\u7528\u4e8e\u5c06\u8def\u5f84\u62c6\u5206\u4e3a\u76ee\u5f55\u548c\u6587\u4ef6\u540d\u4e24\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>full_path = &quot;\/Users\/yourusername\/Documents\/myfile.txt&quot;<\/p>\n<p>directory, filename = os.path.split(full_path)<\/p>\n<p>print(f&quot;\u76ee\u5f55: {directory}, \u6587\u4ef6\u540d: {filename}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u83b7\u53d6\u6587\u4ef6\u6269\u5c55\u540d<\/li>\n<\/ol>\n<p><p>os.path.splitext()\u65b9\u6cd5\u7528\u4e8e\u83b7\u53d6\u6587\u4ef6\u540d\u548c\u6269\u5c55\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>filename = &quot;myfile.txt&quot;<\/p>\n<p>name, extension = os.path.splitext(filename)<\/p>\n<p>print(f&quot;\u6587\u4ef6\u540d: {name}, \u6269\u5c55\u540d: {extension}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5904\u7406\u7279\u6b8a\u8def\u5f84<\/p>\n<\/p>\n<p><p>\u5728Mac OS\u4e0a\uff0c\u8def\u5f84\u53ef\u80fd\u5305\u542b\u4e00\u4e9b\u7279\u6b8a\u7684\u5b57\u7b26\u6216\u7b26\u53f7\uff0c\u5982\u7a7a\u683c\u3001\u6ce2\u6d6a\u53f7\u7b49\u3002\u5728\u5904\u7406\u8fd9\u4e9b\u8def\u5f84\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u8f6c\u4e49\u6216\u4f7f\u7528\u76f8\u5e94\u7684\u64cd\u4f5c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li>\u6ce2\u6d6a\u53f7\u8def\u5f84<\/li>\n<\/ol>\n<p><p>\u6ce2\u6d6a\u53f7\uff08~\uff09\u5728Mac OS\u4e2d\u8868\u793a\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528os.path.expanduser()\u65b9\u6cd5\u5c55\u5f00\u6ce2\u6d6a\u53f7\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>path_with_tilde = &quot;~\/Documents&quot;<\/p>\n<p>expanded_path = os.path.expanduser(path_with_tilde)<\/p>\n<p>print(f&quot;\u5c55\u5f00\u540e\u7684\u8def\u5f84\u662f: {expanded_path}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u7a7a\u683c\u8def\u5f84<\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u5305\u542b\u7a7a\u683c\u7684\u8def\u5f84\uff0c\u5728\u5904\u7406\u65f6\u9700\u8981\u4f7f\u7528\u5f15\u53f7\u5305\u88f9\u6574\u4e2a\u8def\u5f84\u5b57\u7b26\u4e32\uff0c\u6216\u8005\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">path_with_space = &quot;\/Users\/yourusername\/My Documents&quot;<\/p>\n<h2><strong>\u4f7f\u7528\u5f15\u53f7<\/strong><\/h2>\n<p>print(f&#39;\u8def\u5f84: &quot;{path_with_space}&quot;&#39;)<\/p>\n<h2><strong>\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26<\/strong><\/h2>\n<p>print(f&quot;\u8def\u5f84: {path_with_space.replace(&#39; &#39;, &#39;\\\\ &#39;)}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5904\u7406Mac\u8def\u5f84\u65f6\uff0cos\u6a21\u5757\u548cpathlib\u6a21\u5757\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002os\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u51fd\u6570\u7528\u4e8e\u4f20\u7edf\u7684\u8def\u5f84\u64cd\u4f5c\uff0c\u800cpathlib\u6a21\u5757\u5219\u63d0\u4f9b\u4e86\u66f4\u52a0\u76f4\u89c2\u7684\u9762\u5411\u5bf9\u8c61\u65b9\u5f0f\u3002sys\u6a21\u5757\u53ef\u4ee5\u7528\u4e8e\u83b7\u53d6\u811a\u672c\u8def\u5f84\uff0c\u9002\u7528\u4e8e\u7279\u5b9a\u573a\u666f\u3002\u901a\u8fc7\u7ed3\u5408\u4f7f\u7528\u8fd9\u4e9b\u6a21\u5757\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u8fdb\u884c\u8def\u5f84\u8bfb\u53d6\u3001\u64cd\u4f5c\u548c\u7ba1\u7406\u3002\u5728\u5904\u7406\u7279\u6b8a\u8def\u5f84\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u6ce2\u6d6a\u53f7\u548c\u7a7a\u683c\u7b49\u5b57\u7b26\u7684\u6b63\u786e\u5904\u7406\u65b9\u5f0f\uff0c\u4ee5\u786e\u4fdd\u8def\u5f84\u64cd\u4f5c\u7684\u51c6\u786e\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406Mac\u8def\u5f84\u7684\u7279\u6b8a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Mac\u8def\u5f84\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u7a7a\u683c\u6216\u5176\u4ed6\u7279\u6b8a\u5b57\u7b26\uff0c\u8fd9\u53ef\u80fd\u5bfc\u81f4\u8def\u5f84\u89e3\u6790\u9519\u8bef\u3002\u4f7f\u7528<code>os.path<\/code>\u6a21\u5757\u4e2d\u7684<code>quote<\/code>\u548c<code>unquote<\/code>\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u5904\u7406\u8fd9\u4e9b\u95ee\u9898\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528\u539f\u59cb\u5b57\u7b26\u4e32\uff08\u5728\u5b57\u7b26\u4e32\u524d\u52a0<code>r<\/code>\uff09\u6765\u907f\u514d\u8f6c\u4e49\u5b57\u7b26\u7684\u5e72\u6270\u3002<\/p>\n<p><strong>\u5728Mac\u4e0a\u5982\u4f55\u786e\u4fddPython\u811a\u672c\u53ef\u4ee5\u8bbf\u95ee\u7279\u5b9a\u8def\u5f84\uff1f<\/strong><br \/>\u4e3a\u4e86\u786e\u4fddPython\u811a\u672c\u80fd\u591f\u8bbf\u95ee\u7279\u5b9a\u8def\u5f84\uff0c\u53ef\u4ee5\u68c0\u67e5\u8be5\u8def\u5f84\u7684\u6743\u9650\u3002\u4f7f\u7528<code>os.access(path, mode)<\/code>\u51fd\u6570\u53ef\u4ee5\u9a8c\u8bc1\u8bfb\u53d6\u6216\u5199\u5165\u7684\u6743\u9650\u3002\u786e\u4fdd\u4f60\u7684\u7528\u6237\u8d26\u6237\u5bf9\u8be5\u8def\u5f84\u6709\u9002\u5f53\u7684\u6743\u9650\uff0c\u6216\u8005\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528<code>chmod<\/code>\u547d\u4ee4\u66f4\u6539\u6743\u9650\u3002<\/p>\n<p><strong>Python\u8bfb\u53d6Mac\u8def\u5f84\u65f6\u9047\u5230\u7684\u5e38\u89c1\u9519\u8bef\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5728\u8bfb\u53d6Mac\u8def\u5f84\u65f6\uff0c\u5e38\u89c1\u9519\u8bef\u5305\u62ec\u201c\u6587\u4ef6\u672a\u627e\u5230\u9519\u8bef\uff08FileNotFoundError\uff09\u201d\u548c\u201c\u6743\u9650\u9519\u8bef\uff08PermissionError\uff09\u201d\u3002\u8fd9\u4e9b\u901a\u5e38\u662f\u7531\u4e8e\u8def\u5f84\u8f93\u5165\u9519\u8bef\u6216\u7f3a\u4e4f\u8bbf\u95ee\u6743\u9650\u5bfc\u81f4\u7684\u3002\u53ef\u4ee5\u901a\u8fc7\u6253\u5370\u51fa\u8def\u5f84\uff0c\u786e\u8ba4\u5176\u6b63\u786e\u6027\uff0c\u5e76\u786e\u4fdd\u811a\u672c\u8fd0\u884c\u5728\u6709\u6743\u9650\u7684\u7528\u6237\u4e0b\uff0c\u6765\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8bfb\u53d6Mac\u8def\u5f84\uff0c\u53ef\u4ee5\u4f7f\u7528os\u6a21\u5757\u3001pathlib\u6a21\u5757\u3001\u4ee5\u53casys\u6a21\u5757\u3002\u5176\u4e2d\uff0cos\u6a21\u5757\u7528\u4e8e\u83b7\u53d6\u5f53 [&hellip;]","protected":false},"author":3,"featured_media":1013928,"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\/1013919"}],"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=1013919"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1013919\/revisions"}],"predecessor-version":[{"id":1013933,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1013919\/revisions\/1013933"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1013928"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1013919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1013919"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1013919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}