{"id":1028474,"date":"2024-12-31T10:59:57","date_gmt":"2024-12-31T02:59:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1028474.html"},"modified":"2024-12-31T11:00:00","modified_gmt":"2024-12-31T03:00:00","slug":"python-%e6%96%87%e4%bb%b6%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c%e6%96%87%e4%bb%b6%e5%a4%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1028474.html","title":{"rendered":"python \u6587\u4ef6\u5982\u4f55\u8fd0\u884c\u6587\u4ef6\u5939"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/71776746-9080-4ac6-ba00-d3a62e10a724.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python \u6587\u4ef6\u5982\u4f55\u8fd0\u884c\u6587\u4ef6\u5939\" \/><\/p>\n<p><p> <strong>Python \u6587\u4ef6\u5982\u4f55\u8fd0\u884c\u6587\u4ef6\u5939<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u5728Python\u4e2d\u8fd0\u884c\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u4f7f\u7528\u51e0\u79cd\u65b9\u6cd5\uff1a\u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\u3001\u6267\u884c\u6587\u4ef6\u5939\u4e2d\u7684Python\u811a\u672c\u3001\u6216\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u6570\u636e\u3002<strong>os\u6a21\u5757\u3001glob\u6a21\u5757\u3001subprocess\u6a21\u5757<\/strong>\u662f\u5e38\u7528\u7684\u5de5\u5177\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff0c\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u6765\u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\uff0c\u5e76\u6267\u884c\u5176\u4e2d\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528os\u6a21\u5757\u904d\u5386\u6587\u4ef6\u5939<\/strong><\/p>\n<\/p>\n<p><p><code>os<\/code>\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u63d0\u4f9b\u4e86\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u8fdb\u884c\u4ea4\u4e92\u7684\u529f\u80fd\u3002\u8981\u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.walk<\/code>\u51fd\u6570\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def run_files_in_folder(folder_path):<\/p>\n<p>    for root, dirs, files in os.walk(folder_path):<\/p>\n<p>        for file in files:<\/p>\n<p>            if file.endswith(&quot;.py&quot;):<\/p>\n<p>                file_path = os.path.join(root, file)<\/p>\n<p>                print(f&quot;Running {file_path}&quot;)<\/p>\n<p>                os.system(f&quot;python {file_path}&quot;)<\/p>\n<p>folder_path = &quot;\/path\/to\/folder&quot;<\/p>\n<p>run_files_in_folder(folder_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e00\u3001os\u6a21\u5757\u904d\u5386\u6587\u4ef6\u5939<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u904d\u5386\u6587\u4ef6\u5939\u662f\u4e00\u4e2a\u7b80\u5355\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u3002<code>os.walk<\/code>\u51fd\u6570\u4f1a\u751f\u6210\u4e00\u4e2a\u76ee\u5f55\u6811\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u540d\uff0c\u5e76\u5728\u6bcf\u6b21\u904d\u5386\u65f6\u8fd4\u56de\u5f53\u524d\u76ee\u5f55\u8def\u5f84\u3001\u76ee\u5f55\u4e0b\u7684\u5b50\u76ee\u5f55\u4ee5\u53ca\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>def run_files_in_folder(folder_path):<\/p>\n<p>    for root, dirs, files in os.walk(folder_path):<\/p>\n<p>        for file in files:<\/p>\n<p>            if file.endswith(&quot;.py&quot;):<\/p>\n<p>                file_path = os.path.join(root, file)<\/p>\n<p>                print(f&quot;Running {file_path}&quot;)<\/p>\n<p>                os.system(f&quot;python {file_path}&quot;)<\/p>\n<p>folder_path = &quot;\/path\/to\/folder&quot;<\/p>\n<p>run_files_in_folder(folder_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u5bfc\u5165<code>os<\/code>\u6a21\u5757\uff0c\u7136\u540e\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>run_files_in_folder<\/code>\uff0c\u5b83\u63a5\u53d7\u4e00\u4e2a\u6587\u4ef6\u5939\u8def\u5f84\u4f5c\u4e3a\u53c2\u6570\u3002<code>os.walk<\/code>\u51fd\u6570\u4f1a\u904d\u5386\u8be5\u6587\u4ef6\u5939\u53ca\u5176\u5b50\u6587\u4ef6\u5939\u4e2d\u7684\u6240\u6709\u6587\u4ef6\uff0c\u5bf9\u4e8e\u6bcf\u4e2a\u4ee5<code>.py<\/code>\u7ed3\u5c3e\u7684\u6587\u4ef6\uff0c\u4f7f\u7528<code>os.system<\/code>\u51fd\u6570\u8fd0\u884c\u8be5\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001glob\u6a21\u5757\u904d\u5386\u6587\u4ef6\u5939<\/h3>\n<\/p>\n<p><p><code>glob<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66f4\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u67e5\u627e\u7b26\u5408\u7279\u5b9a\u6a21\u5f0f\u7684\u6587\u4ef6\u3002\u53ef\u4ee5\u4f7f\u7528<code>glob<\/code>\u51fd\u6570\u6765\u67e5\u627e\u6240\u6709\u7684Python\u6587\u4ef6\u5e76\u8fd0\u884c\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import glob<\/p>\n<p>import os<\/p>\n<p>def run_files_in_folder(folder_path):<\/p>\n<p>    for file_path in glob.glob(os.path.join(folder_path, &#39;&#39;, &#39;*.py&#39;), recursive=True):<\/p>\n<p>        print(f&quot;Running {file_path}&quot;)<\/p>\n<p>        os.system(f&quot;python {file_path}&quot;)<\/p>\n<p>folder_path = &quot;\/path\/to\/folder&quot;<\/p>\n<p>run_files_in_folder(folder_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u5bfc\u5165<code>glob<\/code>\u548c<code>os<\/code>\u6a21\u5757\uff0c\u7136\u540e\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>run_files_in_folder<\/code>\u3002<code>glob.glob<\/code>\u51fd\u6570\u4f7f\u7528\u901a\u914d\u7b26<code><\/code>\u6765\u9012\u5f52\u67e5\u627e\u6240\u6709\u5b50\u6587\u4ef6\u5939\u4e2d\u7684Python\u6587\u4ef6\uff0c\u5e76\u8fd4\u56de\u8fd9\u4e9b\u6587\u4ef6\u7684\u8def\u5f84\u3002\u7136\u540e\u4f7f\u7528<code>os.system<\/code>\u51fd\u6570\u8fd0\u884c\u6bcf\u4e2a\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001subprocess\u6a21\u5757\u8fd0\u884c\u811a\u672c<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u4efb\u52a1\uff0c\u4f7f\u7528<code>subprocess<\/code>\u6a21\u5757\u53ef\u80fd\u4f1a\u66f4\u5408\u9002\u3002<code>subprocess<\/code>\u6a21\u5757\u5141\u8bb8\u4f60\u542f\u52a8\u4e00\u4e2a\u65b0\u7684\u8fdb\u7a0b\u5e76\u8fde\u63a5\u5b83\u7684\u8f93\u5165\u3001\u8f93\u51fa\u548c\u9519\u8bef\u7ba1\u9053\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>import os<\/p>\n<p>def run_files_in_folder(folder_path):<\/p>\n<p>    for root, dirs, files in os.walk(folder_path):<\/p>\n<p>        for file in files:<\/p>\n<p>            if file.endswith(&quot;.py&quot;):<\/p>\n<p>                file_path = os.path.join(root, file)<\/p>\n<p>                print(f&quot;Running {file_path}&quot;)<\/p>\n<p>                result = subprocess.run([&#39;python&#39;, file_path], capture_output=True, text=True)<\/p>\n<p>                print(result.stdout)<\/p>\n<p>                if result.returncode != 0:<\/p>\n<p>                    print(f&quot;Error running {file_path}: {result.stderr}&quot;)<\/p>\n<p>folder_path = &quot;\/path\/to\/folder&quot;<\/p>\n<p>run_files_in_folder(folder_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u5bfc\u5165<code>subprocess<\/code>\u548c<code>os<\/code>\u6a21\u5757\uff0c\u7136\u540e\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>run_files_in_folder<\/code>\u3002<code>subprocess.run<\/code>\u51fd\u6570\u8fd0\u884c\u6bcf\u4e2aPython\u6587\u4ef6\uff0c\u5e76\u6355\u83b7\u5176\u8f93\u51fa\u3002\u5982\u679c\u811a\u672c\u8fd0\u884c\u5931\u8d25\uff08\u8fd4\u56de\u4ee3\u7801\u4e0d\u4e3a0\uff09\uff0c\u5219\u6253\u5370\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u6570\u636e<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u8fd0\u884c\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\u5e76\u4e0d\u662f\u552f\u4e00\u7684\u9700\u6c42\uff0c\u8fd8\u9700\u8981\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u6570\u636e\u3002\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u548c<code>pandas<\/code>\u6a21\u5757\u6765\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u6570\u636e\u6587\u4ef6\uff0c\u4f8b\u5982CSV\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>import pandas as pd<\/p>\n<p>def process_files_in_folder(folder_path):<\/p>\n<p>    for root, dirs, files in os.walk(folder_path):<\/p>\n<p>        for file in files:<\/p>\n<p>            if file.endswith(&quot;.csv&quot;):<\/p>\n<p>                file_path = os.path.join(root, file)<\/p>\n<p>                print(f&quot;Processing {file_path}&quot;)<\/p>\n<p>                df = pd.read_csv(file_path)<\/p>\n<p>                # \u8fdb\u884c\u6570\u636e\u5904\u7406\u64cd\u4f5c\uff0c\u4f8b\u5982\u8ba1\u7b97\u5e73\u5747\u503c<\/p>\n<p>                mean_value = df[&#39;column_name&#39;].mean()<\/p>\n<p>                print(f&quot;Mean value in {file}: {mean_value}&quot;)<\/p>\n<p>folder_path = &quot;\/path\/to\/folder&quot;<\/p>\n<p>process_files_in_folder(folder_path)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u9996\u5148\u5bfc\u5165<code>os<\/code>\u548c<code>pandas<\/code>\u6a21\u5757\uff0c\u7136\u540e\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570<code>process_files_in_folder<\/code>\u3002\u5bf9\u4e8e\u6bcf\u4e2aCSV\u6587\u4ef6\uff0c\u4f7f\u7528<code>pandas.read_csv<\/code>\u51fd\u6570\u8bfb\u53d6\u6587\u4ef6\uff0c\u5e76\u8fdb\u884c\u6570\u636e\u5904\u7406\u64cd\u4f5c\uff0c\u4f8b\u5982\u8ba1\u7b97\u67d0\u5217\u7684\u5e73\u5747\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8fd0\u884c\u6587\u4ef6\u5939\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c<strong>os\u6a21\u5757\u3001glob\u6a21\u5757\u3001subprocess\u6a21\u5757<\/strong>\u662f\u5e38\u7528\u7684\u5de5\u5177\u3002<code>os<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u904d\u5386\u6587\u4ef6\u5939\u7684\u57fa\u672c\u529f\u80fd\uff0c<code>glob<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u6a21\u5f0f\u5339\u914d\uff0c<code>subprocess<\/code>\u6a21\u5757\u9002\u5408\u5904\u7406\u66f4\u590d\u6742\u7684\u4efb\u52a1\u3002\u7ed3\u5408<code>pandas<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u6570\u636e\u6587\u4ef6\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8fd0\u884c\u6574\u4e2a\u6587\u4ef6\u5939\u4e2d\u7684\u6240\u6709\u811a\u672c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u548c<code>glob<\/code>\u6a21\u5757\u6765\u904d\u5386\u6587\u4ef6\u5939\u5e76\u8fd0\u884c\u6240\u6709Python\u811a\u672c\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u73af\u5883\uff0c\u5e76\u5c06\u5de5\u4f5c\u76ee\u5f55\u66f4\u6539\u4e3a\u76ee\u6807\u6587\u4ef6\u5939\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\uff1a<\/p>\n<pre><code class=\"language-python\">import os\nimport glob\n\n# \u8bbe\u7f6e\u8981\u8fd0\u884c\u7684\u811a\u672c\u6240\u5728\u7684\u6587\u4ef6\u5939\u8def\u5f84\nfolder_path = &#39;your\/folder\/path\/*.py&#39;\n\n# \u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6240\u6709Python\u811a\u672c\u5e76\u6267\u884c\nfor script in glob.glob(folder_path):\n    os.system(f&#39;python {script}&#39;)\n<\/code><\/pre>\n<p>\u786e\u4fdd\u5c06<code>your\/folder\/path\/<\/code>\u66ff\u6362\u4e3a\u5b9e\u9645\u7684\u6587\u4ef6\u5939\u8def\u5f84\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u6587\u4ef6\u5939\u4e2d\u7684\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u8fd0\u884c\u6587\u4ef6\u5939\u4e2d\u7684\u591a\u4e2aPython\u811a\u672c\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u9519\u8bef\u3002\u4e3a\u4e86\u66f4\u597d\u5730\u5904\u7406\u8fd9\u4e9b\u9519\u8bef\uff0c\u53ef\u4ee5\u5728\u6267\u884c\u811a\u672c\u65f6\u4f7f\u7528<code>try...except<\/code>\u8bed\u53e5\u6765\u6355\u83b7\u5f02\u5e38\uff0c\u5e76\u8bb0\u5f55\u9519\u8bef\u4fe1\u606f\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import os\nimport glob\n\nfolder_path = &#39;your\/folder\/path\/*.py&#39;\n\nfor script in glob.glob(folder_path):\n    try:\n        os.system(f&#39;python {script}&#39;)\n    except Exception as e:\n        print(f&#39;Error occurred while running {script}: {e}&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u5e2e\u52a9\u60a8\u8ddf\u8e2a\u51fa\u9519\u7684\u811a\u672c\uff0c\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u8c03\u8bd5\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u7279\u5b9a\u73af\u5883\u4e2d\u8fd0\u884c\u6587\u4ef6\u5939\u4e2d\u7684Python\u811a\u672c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u5728\u7279\u5b9a\u7684Python\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u6587\u4ef6\u5939\u4e2d\u7684\u811a\u672c\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u6fc0\u6d3b\u6240\u9700\u7684\u865a\u62df\u73af\u5883\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0e\u4e0a\u9762\u76f8\u540c\u7684\u4ee3\u7801\u6765\u8fd0\u884c\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u5728Windows\u548cUnix\u7cfb\u7edf\u4e2d\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u7684\u793a\u4f8b\uff1a<\/p>\n<ul>\n<li>Windows\u7cfb\u7edf\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">path\\to\\venv\\Scripts\\activate\n<\/code><\/pre>\n<ul>\n<li>Unix\u7cfb\u7edf\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash\">source path\/to\/venv\/bin\/activate\n<\/code><\/pre>\n<p>\u6fc0\u6d3b\u540e\uff0c\u4f7f\u7528\u4e4b\u524d\u63d0\u5230\u7684\u4ee3\u7801\u5373\u53ef\u5728\u865a\u62df\u73af\u5883\u4e2d\u8fd0\u884c\u6240\u6709\u811a\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u6587\u4ef6\u5982\u4f55\u8fd0\u884c\u6587\u4ef6\u5939 \u8981\u5728Python\u4e2d\u8fd0\u884c\u6587\u4ef6\u5939\uff0c\u53ef\u4ee5\u4f7f\u7528\u51e0\u79cd\u65b9\u6cd5\uff1a\u904d\u5386\u6587\u4ef6\u5939\u4e2d\u7684\u6587\u4ef6\u3001\u6267\u884c\u6587\u4ef6 [&hellip;]","protected":false},"author":3,"featured_media":1028483,"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\/1028474"}],"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=1028474"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1028474\/revisions"}],"predecessor-version":[{"id":1028485,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1028474\/revisions\/1028485"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1028483"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1028474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1028474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1028474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}