{"id":1105882,"date":"2025-01-08T16:35:05","date_gmt":"2025-01-08T08:35:05","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1105882.html"},"modified":"2025-01-08T16:35:07","modified_gmt":"2025-01-08T08:35:07","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e8%bd%ac%e4%b8%ba%e6%95%b4%e5%bd%a2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1105882.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u6574\u5f62"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070552\/5d6fdc24-5741-44c3-90a0-c1b90b6901e5.webp\" alt=\"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u6574\u5f62\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528int()\u51fd\u6570\u3001\u5f02\u5e38\u5904\u7406\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/strong> \u5728Python\u7f16\u7a0b\u4e2d\uff0c\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u6216\u8005\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u65f6\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u9644\u4e0a\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528int()\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570int()\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u8868\u793a\u6574\u6570\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u3002\u8fd9\u4e2a\u65b9\u6cd5\u662f\u6700\u7b80\u5355\u548c\u6700\u76f4\u63a5\u7684\u65b9\u5f0f\u3002\u4e0b\u9762\u662f\u4f7f\u7528int()\u51fd\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str_num = &quot;1234&quot;<\/p>\n<p>int_num = int(str_num)<\/p>\n<p>print(int_num)  # \u8f93\u51fa\uff1a1234<\/p>\n<p>print(type(int_num))  # \u8f93\u51fa\uff1a&lt;class &#39;int&#39;&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cint()\u51fd\u6570\u53ea\u80fd\u8f6c\u6362\u8868\u793a\u6574\u6570\u7684\u5b57\u7b26\u4e32\uff0c\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u975e\u6570\u5b57\u5b57\u7b26\uff08\u9664\u4e86\u8d1f\u53f7\u548c\u5c0f\u6570\u70b9\uff09\uff0c\u5c06\u4f1a\u5f15\u53d1ValueError\u5f02\u5e38\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str_num = &quot;12a34&quot;<\/p>\n<p>try:<\/p>\n<p>    int_num = int(str_num)<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u5b57\u7b26\u4e32\u5305\u542b\u975e\u6570\u5b57\u5b57\u7b26\uff0c\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6574\u5f62\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5f02\u5e38\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u5904\u7406\u53ef\u80fd\u51fa\u73b0\u7684\u5f02\u5e38\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528try-except\u7ed3\u6784\u6765\u6355\u83b7\u5e76\u5904\u7406\u5f02\u5e38\uff0c\u8fd9\u6837\u7a0b\u5e8f\u5728\u9047\u5230\u9519\u8bef\u8f93\u5165\u65f6\u4e0d\u4f1a\u5d29\u6e83\u3002\u4e0b\u9762\u662f\u4f7f\u7528\u5f02\u5e38\u5904\u7406\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str_num = &quot;12a34&quot;<\/p>\n<p>try:<\/p>\n<p>    int_num = int(str_num)<\/p>\n<p>    print(int_num)<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p><strong>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4ece\u5b57\u7b26\u4e32\u4e2d\u63d0\u53d6\u51fa\u6574\u6570\u90e8\u5206\u8fdb\u884c\u8f6c\u6362\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/strong> \u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u8fc7\u6ee4\u51fa\u5b57\u7b26\u4e32\u4e2d\u7684\u6570\u5b57\u90e8\u5206\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u5f62\u3002\u4e0b\u9762\u662f\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>str_num = &quot;abc123def&quot;<\/p>\n<p>match = re.search(r&#39;\\d+&#39;, str_num)<\/p>\n<p>if match:<\/p>\n<p>    int_num = int(match.group())<\/p>\n<p>    print(int_num)  # \u8f93\u51fa\uff1a123<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5b57\u7b26\u4e32\u4e2d\u6ca1\u6709\u627e\u5230\u6574\u6570\u90e8\u5206\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u5b57\u7b26\u4e32\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><strong>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u9884\u5904\u7406\uff0c\u6bd4\u5982\u53bb\u6389\u7a7a\u683c\u3001\u7279\u6b8a\u5b57\u7b26\u7b49\uff0c\u7136\u540e\u518d\u8fdb\u884c\u8f6c\u6362\u3002<\/strong> \u53ef\u4ee5\u7ed3\u5408\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u8fdb\u884c\u9884\u5904\u7406\uff0c\u786e\u4fdd\u5b57\u7b26\u4e32\u4e2d\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002\u4e0b\u9762\u662f\u7ed3\u5408\u5b57\u7b26\u4e32\u65b9\u6cd5\u8fdb\u884c\u9884\u5904\u7406\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str_num = &quot;   1234   &quot;<\/p>\n<p>str_num = str_num.strip()  # \u53bb\u6389\u5b57\u7b26\u4e32\u9996\u5c3e\u7684\u7a7a\u683c<\/p>\n<p>try:<\/p>\n<p>    int_num = int(str_num)<\/p>\n<p>    print(int_num)  # \u8f93\u51fa\uff1a1234<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u8d1f\u6570\u548c\u5c0f\u6570<\/h3>\n<\/p>\n<p><p><strong>int()\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u5904\u7406\u6b63\u6574\u6570\uff0c\u8fd8\u53ef\u4ee5\u5904\u7406\u8d1f\u6570\u548c\u5c0f\u6570\u3002<\/strong> \u5bf9\u4e8e\u8d1f\u6570\uff0c\u76f4\u63a5\u4f7f\u7528int()\u51fd\u6570\u5373\u53ef\uff1b\u5bf9\u4e8e\u5c0f\u6570\uff0c\u5148\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\uff0c\u518d\u8f6c\u6362\u4e3a\u6574\u5f62\u3002\u4e0b\u9762\u662f\u5904\u7406\u8d1f\u6570\u548c\u5c0f\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5904\u7406\u8d1f\u6570<\/p>\n<p>str_num = &quot;-1234&quot;<\/p>\n<p>try:<\/p>\n<p>    int_num = int(str_num)<\/p>\n<p>    print(int_num)  # \u8f93\u51fa\uff1a-1234<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<h2><strong>\u5904\u7406\u5c0f\u6570<\/strong><\/h2>\n<p>str_num = &quot;1234.56&quot;<\/p>\n<p>try:<\/p>\n<p>    float_num = float(str_num)<\/p>\n<p>    int_num = int(float_num)<\/p>\n<p>    print(int_num)  # \u8f93\u51fa\uff1a1234<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u6279\u91cf\u8f6c\u6362\u5b57\u7b26\u4e32\u5217\u8868<\/h3>\n<\/p>\n<p><p><strong>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u9700\u8981\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u5217\u8868\u4e2d\u7684\u6240\u6709\u5143\u7d20\u90fd\u8f6c\u6362\u4e3a\u6574\u5f62\u3002<\/strong> \u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u8005map()\u51fd\u6570\u6765\u5b9e\u73b0\u6279\u91cf\u8f6c\u6362\u3002\u4e0b\u9762\u662f\u6279\u91cf\u8f6c\u6362\u5b57\u7b26\u4e32\u5217\u8868\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str_list = [&quot;123&quot;, &quot;456&quot;, &quot;789&quot;]<\/p>\n<p>try:<\/p>\n<p>    int_list = [int(s) for s in str_list]<\/p>\n<p>    print(int_list)  # \u8f93\u51fa\uff1a[123, 456, 789]<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<h2><strong>\u4f7f\u7528map()\u51fd\u6570<\/strong><\/h2>\n<p>try:<\/p>\n<p>    int_list = list(map(int, str_list))<\/p>\n<p>    print(int_list)  # \u8f93\u51fa\uff1a[123, 456, 789]<\/p>\n<p>except ValueError as e:<\/p>\n<p>    print(f&quot;\u8f6c\u6362\u5931\u8d25\uff1a{e}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p><strong>\u4e3a\u4e86\u66f4\u65b9\u4fbf\u5730\u5904\u7406\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u5c01\u88c5\u8f6c\u6362\u903b\u8f91\u548c\u5f02\u5e38\u5904\u7406\u3002<\/strong> \u4e0b\u9762\u662f\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def str_to_int(s):<\/p>\n<p>    try:<\/p>\n<p>        return int(s)<\/p>\n<p>    except ValueError:<\/p>\n<p>        return None<\/p>\n<p>str_num = &quot;1234&quot;<\/p>\n<p>int_num = str_to_int(str_num)<\/p>\n<p>if int_num is not None:<\/p>\n<p>    print(int_num)  # \u8f93\u51fa\uff1a1234<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u8f6c\u6362\u5931\u8d25\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u662fPython\u7f16\u7a0b\u4e2d\u5e38\u89c1\u7684\u9700\u6c42\uff0c\u672c\u6587\u4ecb\u7ecd\u4e86\u51e0\u79cd\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528int()\u51fd\u6570\u3001\u5f02\u5e38\u5904\u7406\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u7ed3\u5408\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u5904\u7406\u8d1f\u6570\u548c\u5c0f\u6570\u3001\u6279\u91cf\u8f6c\u6362\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u4ee5\u53ca\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u573a\u666f\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5efa\u8bae\u7ed3\u5408\u5f02\u5e38\u5904\u7406\uff0c\u786e\u4fdd\u7a0b\u5e8f\u5728\u9047\u5230\u9519\u8bef\u8f93\u5165\u65f6\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u8fd9\u4e9b\u65b9\u6cd5\u4e0d\u4ec5\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\uff0c\u8fd8\u53ef\u4ee5\u5e94\u5bf9\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5904\u7406\u9700\u6c42\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u5065\u58ee\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u64cd\u4f5c\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\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\u53ea\u9700\u5c06\u5b57\u7b26\u4e32\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9<code>int()<\/code>\uff0c\u5b83\u5c31\u4f1a\u8fd4\u56de\u5bf9\u5e94\u7684\u6574\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">num_str = &quot;123&quot;\nnum_int = int(num_str)  # num_int \u5c06\u662f 123\n<\/code><\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b57\u7b26\u4e32\u5fc5\u987b\u662f\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\uff0c\u82e5\u5305\u542b\u65e0\u6548\u5b57\u7b26\uff0c\u5c06\u4f1a\u5f15\u53d1<code>ValueError<\/code>\u5f02\u5e38\u3002<\/p>\n<p><strong>\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u7a7a\u683c\uff0c\u5982\u4f55\u8f6c\u6362\u4e3a\u6574\u6570\uff1f<\/strong><br \/>\u5728\u8f6c\u6362\u5b57\u7b26\u4e32\u4e3a\u6574\u6570\u4e4b\u524d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u548c\u7ed3\u5c3e\u7684\u7a7a\u683c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">num_str = &quot;   456   &quot;\nnum_int = int(num_str.strip())  # num_int \u5c06\u662f 456\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5373\u4f7f\u5b57\u7b26\u4e32\u542b\u6709\u7a7a\u767d\u5b57\u7b26\uff0c\u8f6c\u6362\u4e5f\u80fd\u6b63\u5e38\u8fdb\u884c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u65e0\u6cd5\u8f6c\u6362\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728\u5c1d\u8bd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u65e0\u6cd5\u8f6c\u6362\u7684\u60c5\u51b5\u3002\u4f7f\u7528<code>try...except<\/code>\u8bed\u53e5\u53ef\u4ee5\u6355\u83b7\u5e76\u5904\u7406\u8fd9\u79cd\u5f02\u5e38\uff0c\u786e\u4fdd\u7a0b\u5e8f\u4e0d\u5d29\u6e83\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">num_str = &quot;abc&quot;\ntry:\n    num_int = int(num_str)\nexcept ValueError:\n    print(&quot;\u65e0\u6cd5\u5c06\u8be5\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97\u7a0b\u5e8f\u53ef\u4ee5\u4f18\u96c5\u5730\u5904\u7406\u9519\u8bef\uff0c\u63d0\u793a\u7528\u6237\u8f93\u5165\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u5f62\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528int()\u51fd\u6570\u3001\u5f02\u5e38\u5904\u7406\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3002 \u5728Pyt [&hellip;]","protected":false},"author":3,"featured_media":1105890,"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\/1105882"}],"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=1105882"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105882\/revisions"}],"predecessor-version":[{"id":1105897,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1105882\/revisions\/1105897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1105890"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1105882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1105882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1105882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}