{"id":1131497,"date":"2025-01-08T20:49:03","date_gmt":"2025-01-08T12:49:03","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1131497.html"},"modified":"2025-01-08T20:49:06","modified_gmt":"2025-01-08T12:49:06","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e8%be%93%e5%85%a5%e4%b8%a4%e4%b8%aa%e5%8f%98%e9%87%8f%e7%9a%84%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1131497.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101249\/35384ef9-7250-4399-b301-e5ca30992fc5.webp\" alt=\"python\u4e2d\u5982\u4f55\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u3001\u4ee5\u53ca\u4ece\u6587\u4ef6\u8bfb\u53d6\u7b49\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u5c55\u5f00\u4ecb\u7ecdinput()\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528input()\u51fd\u6570\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5<\/strong>\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u4e14\u76f4\u63a5\u3002\u901a\u8fc7input()\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u7528\u6237\u90a3\u91cc\u83b7\u53d6\u8f93\u5165\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u53d8\u91cf\u4e2d\u3002<strong>\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528input()\u51fd\u6570\u5206\u522b\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u7136\u540e\u8fdb\u884c\u76f8\u5e94\u7684\u5904\u7406\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528input()\u51fd\u6570\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c<\/h3>\n<\/p>\n<p><h4>1. \u5355\u72ec\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c<\/h4>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u65b9\u6cd5\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e24\u6b21input()\u51fd\u6570\u8c03\u7528\uff0c\u6bcf\u6b21\u83b7\u53d6\u4e00\u4e2a\u53d8\u91cf\u7684\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c<\/p>\n<p>var1 = input(&quot;\u8bf7\u8f93\u5165\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c: &quot;)<\/p>\n<h2><strong>\u83b7\u53d6\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c<\/strong><\/h2>\n<p>var2 = input(&quot;\u8bf7\u8f93\u5165\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c: &quot;)<\/p>\n<p>print(f&quot;\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var1}&quot;)<\/p>\n<p>print(f&quot;\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var2}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u4f9d\u6b21\u63d0\u793a\u7528\u6237\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u5e76\u5c06\u7528\u6237\u8f93\u5165\u7684\u5185\u5bb9\u5206\u522b\u5b58\u50a8\u5728<code>var1<\/code>\u548c<code>var2<\/code>\u4e2d\u3002\u6700\u540e\uff0c\u7a0b\u5e8f\u8f93\u51fa\u8fd9\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h4>2. \u4f7f\u7528\u5355\u884c\u4ee3\u7801\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c<\/h4>\n<\/p>\n<p><p>\u6211\u4eec\u4e5f\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u5e76\u5c06\u5176\u5206\u914d\u7ed9\u4e24\u4e2a\u4e0d\u540c\u7684\u53d8\u91cf\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u7528<code>split()<\/code>\u51fd\u6570\u6765\u5206\u5272\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u7528\u6237\u8f93\u5165\u5e76\u5206\u5272\u6210\u4e24\u4e2a\u53d8\u91cf<\/p>\n<p>var1, var2 = input(&quot;\u8bf7\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff08\u7528\u7a7a\u683c\u5206\u9694\uff09: &quot;).split()<\/p>\n<p>print(f&quot;\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var1}&quot;)<\/p>\n<p>print(f&quot;\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var2}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7528\u6237\u9700\u8981\u5728\u540c\u4e00\u884c\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u5e76\u7528\u7a7a\u683c\u5206\u9694\u3002<code>split()<\/code>\u51fd\u6570\u4f1a\u5c06\u8f93\u5165\u5b57\u7b26\u4e32\u5206\u5272\u6210\u4e24\u4e2a\u90e8\u5206\uff0c\u5e76\u5206\u522b\u8d4b\u503c\u7ed9<code>var1<\/code>\u548c<code>var2<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u53d8\u91cf\u503c<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528input()\u51fd\u6570\uff0cPython\u8fd8\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u53d8\u91cf\u503c\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u81ea\u52a8\u5316\u811a\u672c\u8fd0\u884c\u7684\u573a\u666f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>sys<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528sys.argv\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570<\/h4>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u5982\u4f55\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u83b7\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<h2><strong>\u68c0\u67e5\u547d\u4ee4\u884c\u53c2\u6570\u7684\u4e2a\u6570<\/strong><\/h2>\n<p>if len(sys.argv) != 3:<\/p>\n<p>    print(&quot;\u7528\u6cd5: python script.py &lt;\u53d8\u91cf1&gt; &lt;\u53d8\u91cf2&gt;&quot;)<\/p>\n<p>    sys.exit(1)<\/p>\n<h2><strong>\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570<\/strong><\/h2>\n<p>var1 = sys.argv[1]<\/p>\n<p>var2 = sys.argv[2]<\/p>\n<p>print(f&quot;\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var1}&quot;)<\/p>\n<p>print(f&quot;\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var2}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7528\u6237\u9700\u8981\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884c\u811a\u672c\uff0c\u5e76\u4f20\u9012\u4e24\u4e2a\u53c2\u6570\u3002<code>sys.argv<\/code>\u5217\u8868\u5305\u542b\u547d\u4ee4\u884c\u53c2\u6570\uff0c\u5176\u4e2d<code>sys.argv[0]<\/code>\u662f\u811a\u672c\u540d\u79f0\uff0c<code>sys.argv[1]<\/code>\u548c<code>sys.argv[2]<\/code>\u5206\u522b\u662f\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4ece\u6587\u4ef6\u8bfb\u53d6\u53d8\u91cf\u503c<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53d8\u91cf\u503c\u53ef\u80fd\u5b58\u50a8\u5728\u6587\u4ef6\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u8fd9\u4e9b\u503c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u5982\u4f55\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff1a<\/p>\n<\/p>\n<p><h4>1. \u6587\u4ef6\u683c\u5f0f\u793a\u4f8b<\/h4>\n<\/p>\n<p><p>\u5047\u8bbe\u6587\u4ef6<code>data.txt<\/code>\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code>\u53d8\u91cf1: value1<\/p>\n<p>\u53d8\u91cf2: value2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u5e76\u63d0\u53d6\u53d8\u91cf\u503c<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6253\u5f00\u6587\u4ef6\u5e76\u8bfb\u53d6\u5185\u5bb9<\/p>\n<p>with open(&#39;data.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    lines = file.readlines()<\/p>\n<h2><strong>\u63d0\u53d6\u53d8\u91cf\u503c<\/strong><\/h2>\n<p>var1 = lines[0].split(&#39;:&#39;)[1].strip()<\/p>\n<p>var2 = lines[1].split(&#39;:&#39;)[1].strip()<\/p>\n<p>print(f&quot;\u7b2c\u4e00\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var1}&quot;)<\/p>\n<p>print(f&quot;\u7b2c\u4e8c\u4e2a\u53d8\u91cf\u7684\u503c\u662f: {var2}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7a0b\u5e8f\u6253\u5f00\u6587\u4ef6<code>data.txt<\/code>\u5e76\u8bfb\u53d6\u6240\u6709\u884c\u3002\u7136\u540e\uff0c\u901a\u8fc7<code>split()<\/code>\u51fd\u6570\u5206\u5272\u6bcf\u4e00\u884c\u7684\u5185\u5bb9\uff0c\u5e76\u63d0\u53d6\u53d8\u91cf\u7684\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u3001\u4ee5\u53ca\u4ece\u6587\u4ef6\u8bfb\u53d6\u3002<strong>\u4f7f\u7528input()\u51fd\u6570\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u4e14\u76f4\u63a5<\/strong>\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u5404\u79cd\u60c5\u51b5\u4e0b\u6709\u6548\u5730\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u4ece\u800c\u63d0\u5347\u7a0b\u5e8f\u7684\u7075\u6d3b\u6027\u548c\u53ef\u7528\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u540c\u65f6\u8f93\u5165\u591a\u4e2a\u53d8\u91cf\u7684\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u7ed3\u5408\u62c6\u5305\u7684\u65b9\u5f0f\u6765\u540c\u65f6\u8f93\u5165\u591a\u4e2a\u53d8\u91cf\u7684\u503c\u3002\u4f60\u53ef\u4ee5\u8bf7\u6c42\u7528\u6237\u8f93\u5165\u4e00\u4e32\u6570\u636e\uff0c\u5e76\u901a\u8fc7\u5206\u9694\u7b26\u5c06\u5176\u62c6\u5206\u6210\u591a\u4e2a\u53d8\u91cf\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u683c\u5f0f\u4e3a\u201ca b\u201d\uff0c\u7136\u540e\u4f7f\u7528<code>input().split()<\/code>\u5c06\u5176\u5206\u5272\u6210\u5217\u8868\uff0c\u6700\u540e\u5c06\u5217\u8868\u4e2d\u7684\u503c\u5206\u522b\u8d4b\u7ed9\u4e0d\u540c\u7684\u53d8\u91cf\u3002\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">a, b = input(&quot;\u8bf7\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u7528\u7a7a\u683c\u5206\u9694: &quot;).split()\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u7528\u6237\u8f93\u5165\u7684\u503c\u5c06\u88ab\u5206\u522b\u8d4b\u7ed9\u53d8\u91cf<code>a<\/code>\u548c<code>b<\/code>\u3002<\/p>\n<p><strong>\u5728\u8f93\u5165\u591a\u4e2a\u53d8\u91cf\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u683c\u5f0f\u6b63\u786e\uff1f<\/strong><br \/>\u4e3a\u4e86\u4fdd\u8bc1\u7528\u6237\u8f93\u5165\u7684\u683c\u5f0f\u6b63\u786e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try-except<\/code>\u7ed3\u6784\u6765\u6355\u83b7\u53ef\u80fd\u7684\u9519\u8bef\u3002\u4f60\u53ef\u4ee5\u5728\u8f93\u5165\u540e\u8fdb\u884c\u57fa\u672c\u7684\u9a8c\u8bc1\uff0c\u786e\u4fdd\u7528\u6237\u786e\u5b9e\u8f93\u5165\u4e86\u4e24\u4e2a\u503c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">try:\n    a, b = input(&quot;\u8bf7\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u7528\u7a7a\u683c\u5206\u9694: &quot;).split()\n    if len(a) == 0 or len(b) == 0:\n        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;\u8bf7\u786e\u4fdd\u8f93\u5165\u4e24\u4e2a\u6709\u6548\u7684\u503c\u3002&quot;)\nexcept ValueError as e:\n    print(f&quot;\u8f93\u5165\u9519\u8bef: {e}&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u6709\u6548\u5730\u5904\u7406\u7528\u6237\u8f93\u5165\u4e0d\u5f53\u7684\u60c5\u51b5\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u8f93\u5165\u7684\u53d8\u91cf\u8f6c\u6362\u4e3a\u7279\u5b9a\u7684\u6570\u636e\u7c7b\u578b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c<code>input()<\/code>\u51fd\u6570\u9ed8\u8ba4\u8fd4\u56de\u5b57\u7b26\u4e32\u7c7b\u578b\u3002\u5982\u679c\u4f60\u5e0c\u671b\u5c06\u8f93\u5165\u7684\u53d8\u91cf\u8f6c\u6362\u4e3a\u5176\u4ed6\u6570\u636e\u7c7b\u578b\uff08\u5982\u6574\u6570\u6216\u6d6e\u70b9\u6570\uff09\uff0c\u53ef\u4ee5\u5728\u5206\u914d\u53d8\u91cf\u540e\u4f7f\u7528\u7c7b\u578b\u8f6c\u6362\u3002\u4f8b\u5982\uff0c\u5982\u679c\u9700\u8981\u5c06\u8f93\u5165\u7684\u4e24\u4e2a\u53d8\u91cf\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<pre><code class=\"language-python\">a, b = map(int, input(&quot;\u8bf7\u8f93\u5165\u4e24\u4e2a\u6574\u6570\uff0c\u7528\u7a7a\u683c\u5206\u9694: &quot;).split())\n<\/code><\/pre>\n<p>\u4f7f\u7528<code>map()<\/code>\u51fd\u6570\u53ef\u4ee5\u5bf9\u8f93\u5165\u7684\u6bcf\u4e2a\u503c\u8fdb\u884c\u5904\u7406\uff0c\u786e\u4fdd\u5b83\u4eec\u88ab\u8f6c\u6362\u4e3a\u6240\u9700\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8f93\u5165\u4e24\u4e2a\u53d8\u91cf\u7684\u503c\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528input()\u51fd\u6570\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u4f20\u9012\u3001\u4ee5\u53ca\u4ece\u6587 [&hellip;]","protected":false},"author":3,"featured_media":1131503,"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\/1131497"}],"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=1131497"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1131497\/revisions"}],"predecessor-version":[{"id":1131507,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1131497\/revisions\/1131507"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1131503"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1131497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1131497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1131497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}