{"id":1114892,"date":"2025-01-08T18:01:42","date_gmt":"2025-01-08T10:01:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1114892.html"},"modified":"2025-01-08T18:01:44","modified_gmt":"2025-01-08T10:01:44","slug":"python%e5%a6%82%e4%bd%95%e8%af%bb%e5%8f%96%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e6%95%b4%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1114892.html","title":{"rendered":"python\u5982\u4f55\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6574\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075852\/10829901-b9b7-4fac-a77b-98ac27294590.webp\" alt=\"python\u5982\u4f55\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6574\u6570\" \/><\/p>\n<p><p> <strong>Python\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6574\u6570<\/strong>\uff1a\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u3001\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u3001\u4f7f\u7528<code>eval()<\/code>\u51fd\u6570\u3002<strong>\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u662f\u6700\u5e38\u89c1\u548c\u76f4\u63a5\u7684\u65b9\u6cd5<\/strong>\uff0c\u4f8b\u5982\uff0c<code>int(&quot;123&quot;)<\/code>\u5c06\u5b57\u7b26\u4e32&quot;123&quot;\u8f6c\u6362\u4e3a\u6574\u6570123\u3002<\/p>\n<\/p>\n<p><p>Python\u662f\u4e00\u79cd\u529f\u80fd\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u4ee5\u591a\u79cd\u65b9\u5f0f\u5904\u7406\u548c\u64cd\u4f5c\u6570\u636e\u3002\u8bfb\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6574\u6570\u662fPython\u4e2d\u7684\u5e38\u89c1\u64cd\u4f5c\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u4ece\u7528\u6237\u8f93\u5165\u3001\u6587\u4ef6\u6216\u5176\u4ed6\u6570\u636e\u6e90\u4e2d\u63d0\u53d6\u6570\u503c\u65f6\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u6765\u8bfb\u53d6\u548c\u8f6c\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>int()<\/code>\u51fd\u6570<\/p>\n<p><code>int()<\/code>\u51fd\u6570\u662fPython\u4e2d\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u7528\u4e8e\u5c06\u8868\u793a\u6574\u6570\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u7c7b\u578b\u3002\u5b83\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u6574\u6570\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_str = &quot;123&quot;<\/p>\n<p>num = int(num_str)<\/p>\n<p>print(num)  # \u8f93\u51fa\uff1a123<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u9002\u7528\u4e8e\u5b57\u7b26\u4e32\u4e2d\u53ea\u5305\u542b\u6574\u6570\u7684\u60c5\u51b5\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u975e\u6570\u5b57\u5b57\u7b26\uff0c<code>int()<\/code>\u51fd\u6570\u5c06\u5f15\u53d1<code>ValueError<\/code>\u5f02\u5e38\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_str = &quot;123abc&quot;<\/p>\n<p>try:<\/p>\n<p>    num = int(num_str)<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u65e0\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code>re<\/code>\u6a21\u5757<\/p>\n<p><code>re<\/code>\uff08\u6b63\u5219\u8868\u8fbe\u5f0f\uff09\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u6574\u6570\u3002\u901a\u8fc7\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u5339\u914d\u548c\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;The price is 100 dollars, and the discount is 20%&quot;<\/p>\n<p>numbers = re.findall(r&#39;\\d+&#39;, text)<\/p>\n<p>integers = [int(num) for num in numbers]<\/p>\n<p>print(integers)  # \u8f93\u51fa\uff1a[100, 20]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>re.findall()<\/code>\u51fd\u6570\u7528\u4e8e\u67e5\u627e\u6240\u6709\u5339\u914d\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f<code>\\d+<\/code>\u7684\u5b50\u5b57\u7b26\u4e32\uff0c\u6a21\u5f0f<code>\\d+<\/code>\u8868\u793a\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\u5b57\u7b26\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5c06\u8fd9\u4e9b\u5339\u914d\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528<code>eval()<\/code>\u51fd\u6570<\/p>\n<p><code>eval()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u8868\u8fbe\u5f0f\u6c42\u503c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u7684\u6574\u6570\u4ee5\u8868\u8fbe\u5f0f\u7684\u5f62\u5f0f\u5b58\u5728\uff0c<code>eval()<\/code>\u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_str = &quot;100 + 20&quot;<\/p>\n<p>num = eval(num_str)<\/p>\n<p>print(num)  # \u8f93\u51fa\uff1a120<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u867d\u7136<code>eval()<\/code>\u51fd\u6570\u5f88\u5f3a\u5927\uff0c\u4f46\u5728\u5904\u7406\u4e0d\u53d7\u4fe1\u4efb\u7684\u8f93\u5165\u65f6\u9700\u8981\u8c28\u614e\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u4f1a\u6267\u884c\u5b57\u7b26\u4e32\u4e2d\u7684\u4efb\u4f55\u8868\u8fbe\u5f0f\uff0c\u8fd9\u53ef\u80fd\u4f1a\u5e26\u6765\u5b89\u5168\u98ce\u9669\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5904\u7406\u5e26\u6709\u7279\u6b8a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32<\/p>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u5b57\u7b26\u4e32\u4e2d\u53ef\u80fd\u5305\u542b\u7279\u6b8a\u5b57\u7b26\uff0c\u5982\u9017\u53f7\u3001\u7a7a\u683c\u6216\u8d27\u5e01\u7b26\u53f7\u3002\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6216<code>re<\/code>\u6a21\u5757\u6765\u53bb\u9664\u8fd9\u4e9b\u7279\u6b8a\u5b57\u7b26\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_str = &quot;$1,000.50&quot;<\/p>\n<p>num_str_clean = num_str.replace(&quot;$&quot;, &quot;&quot;).replace(&quot;,&quot;, &quot;&quot;).split(&quot;.&quot;)[0]<\/p>\n<p>num = int(num_str_clean)<\/p>\n<p>print(num)  # \u8f93\u51fa\uff1a1000<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u53bb\u9664\u7f8e\u5143\u7b26\u53f7\u548c\u9017\u53f7\uff0c\u5e76\u4f7f\u7528<code>split()<\/code>\u65b9\u6cd5\u53bb\u9664\u5c0f\u6570\u90e8\u5206\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4ece\u6587\u4ef6\u6216\u7528\u6237\u8f93\u5165\u4e2d\u8bfb\u53d6\u6574\u6570<\/p>\n<p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6574\u6570\u53ef\u80fd\u5b58\u50a8\u5728\u6587\u4ef6\u4e2d\u6216\u901a\u8fc7\u7528\u6237\u8f93\u5165\u83b7\u53d6\u3002\u53ef\u4ee5\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u6253\u5f00\u6587\u4ef6\u5e76\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u6216\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u6574\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&quot;numbers.txt&quot;, &quot;r&quot;) as file:<\/p>\n<p>    for line in file:<\/p>\n<p>        num = int(line.strip())<\/p>\n<p>        print(num)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u6253\u5f00\u6587\u4ef6\u5e76\u9010\u884c\u8bfb\u53d6\u5176\u5185\u5bb9\uff0c\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u884c\u672b\u7684\u6362\u884c\u7b26\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4ece\u7528\u6237\u8f93\u5165\u8bfb\u53d6\u6574\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570\uff1a&quot;)<\/p>\n<p>num = int(user_input)<\/p>\n<p>print(num)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5904\u7406\u591a\u79cd\u683c\u5f0f\u7684\u6574\u6570\u5b57\u7b26\u4e32<\/p>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6574\u6570\u53ef\u80fd\u4ee5\u591a\u79cd\u683c\u5f0f\u5b58\u50a8\u5728\u5b57\u7b26\u4e32\u4e2d\uff0c\u5982\u4e8c\u8fdb\u5236\u3001\u516b\u8fdb\u5236\u6216\u5341\u516d\u8fdb\u5236\u3002<code>int()<\/code>\u51fd\u6570\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u989d\u5916\u7684\u53c2\u6570\u6765\u6307\u5b9a\u5b57\u7b26\u4e32\u7684\u8fdb\u5236\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">bin_str = &quot;0b1010&quot;<\/p>\n<p>oct_str = &quot;0o12&quot;<\/p>\n<p>hex_str = &quot;0xA&quot;<\/p>\n<p>bin_num = int(bin_str, 2)<\/p>\n<p>oct_num = int(oct_str, 8)<\/p>\n<p>hex_num = int(hex_str, 16)<\/p>\n<p>print(bin_num)  # \u8f93\u51fa\uff1a10<\/p>\n<p>print(oct_num)  # \u8f93\u51fa\uff1a10<\/p>\n<p>print(hex_num)  # \u8f93\u51fa\uff1a10<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\u6765\u6307\u5b9a\u5b57\u7b26\u4e32\u7684\u8fdb\u5236\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<p>\u5728Python\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6574\u6570\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u3001<code>re<\/code>\u6a21\u5757\u548c<code>eval()<\/code>\u51fd\u6570\u7b49\u3002\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u6574\u6570\u7684\u8bfb\u53d6\u548c\u8f6c\u6362\u3002\u65e0\u8bba\u662f\u5904\u7406\u7b80\u5355\u7684\u6574\u6570\u5b57\u7b26\u4e32\uff0c\u8fd8\u662f\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u6216\u591a\u79cd\u683c\u5f0f\u7684\u5b57\u7b26\u4e32\uff0cPython\u90fd\u63d0\u4f9b\u4e86\u7075\u6d3b\u4e14\u5f3a\u5927\u7684\u5de5\u5177\u6765\u6ee1\u8db3\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>int()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32<code>&quot;123&quot;<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7<code>int(&quot;123&quot;)<\/code>\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570<code>123<\/code>\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b57\u7b26\u4e32\u4e2d\u5fc5\u987b\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\uff0c\u5176\u4ed6\u5b57\u7b26\u5c06\u5bfc\u81f4\u8f6c\u6362\u5931\u8d25\u5e76\u629b\u51fa\u5f02\u5e38\u3002<\/p>\n<p><strong>\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u7a7a\u683c\u6216\u5176\u4ed6\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u5e94\u8be5\u600e\u4e48\u5904\u7406\uff1f<\/strong><br \/>\u5728\u8f6c\u6362\u4e4b\u524d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u524d\u540e\u7a7a\u683c\u3002\u5982\u679c\u5b57\u7b26\u4e32\u5305\u542b\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u6765\u6355\u83b7\u8f6c\u6362\u5931\u8d25\u7684\u60c5\u51b5\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python\">string_value = &quot;  123  &quot;\ntry:\n    integer_value = int(string_value.strip())\nexcept ValueError:\n    print(&quot;\u5b57\u7b26\u4e32\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6574\u6570&quot;)\n<\/code><\/pre>\n<p><strong>\u5728\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u8f93\u5165\u662f\u6709\u6548\u7684\u6574\u6570\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5faa\u73af\u548c\u5f02\u5e38\u5904\u7406\u6765\u786e\u4fdd\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u662f\u6709\u6548\u7684\u6574\u6570\u3002\u53ef\u4ee5\u63d0\u793a\u7528\u6237\u8f93\u5165\uff0c\u76f4\u5230\u4ed6\u4eec\u63d0\u4f9b\u6709\u6548\u7684\u6574\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">while True:\n    user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570: &quot;)\n    try:\n        integer_value = int(user_input)\n        break  # \u6210\u529f\u8f6c\u6362\u540e\u8df3\u51fa\u5faa\u73af\n    except ValueError:\n        print(&quot;\u8f93\u5165\u65e0\u6548\uff0c\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570\u3002&quot;)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u8bfb\u53d6\u548c\u9a8c\u8bc1\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8bfb\u53d6\u5b57\u7b26\u4e32\u7684\u6574\u6570\uff1a\u4f7f\u7528int()\u51fd\u6570\u3001\u4f7f\u7528re\u6a21\u5757\u3001\u4f7f\u7528eval()\u51fd\u6570\u3002\u4f7f\u7528int()\u51fd\u6570\u662f\u6700\u5e38 [&hellip;]","protected":false},"author":3,"featured_media":1114898,"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\/1114892"}],"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=1114892"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114892\/revisions"}],"predecessor-version":[{"id":1114899,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1114892\/revisions\/1114899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1114898"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1114892"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1114892"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1114892"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}