{"id":1062184,"date":"2024-12-31T15:49:30","date_gmt":"2024-12-31T07:49:30","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1062184.html"},"modified":"2024-12-31T15:49:33","modified_gmt":"2024-12-31T07:49:33","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e6%98%af%e5%90%a6%e4%b8%ba%e6%95%b0%e5%ad%97%e7%b1%bb%e5%9e%8b-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1062184.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5224\u65ad\u662f\u5426\u4e3a\u6570\u5b57\u7c7b\u578b"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/c3aec55b-6eb3-4e56-94c6-5fcbb692a4a5.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u5982\u4f55\u5224\u65ad\u662f\u5426\u4e3a\u6570\u5b57\u7c7b\u578b\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u6570\u5b57\u7c7b\u578b\u3002<\/strong> \u8fd9\u4e9b\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684<code>isinstance<\/code>\u51fd\u6570\u3001<code>type<\/code>\u51fd\u6570\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u5bf9\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\u8fdb\u884c\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528<code>isinstance<\/code>\u51fd\u6570\u5224\u65ad<\/h3>\n<\/p>\n<p><p><code>isinstance<\/code>\u51fd\u6570\u662fPython\u4e2d\u5185\u7f6e\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u662f\u67d0\u4e2a\u7279\u5b9a\u7c7b\u578b\u3002\u901a\u8fc7<code>isinstance<\/code>\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u662f\u6570\u5b57\u7c7b\u578b\u3002Python\u4e2d\u7684\u6570\u5b57\u7c7b\u578b\u5305\u62ec\u6574\u6570\uff08int\uff09\u3001\u6d6e\u70b9\u6570\uff08float\uff09\u548c\u590d\u6570\uff08complex\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_number(value):<\/p>\n<p>    return isinstance(value, (int, float, complex))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u4f7f\u7528\u4e86<code>isinstance<\/code>\u51fd\u6570\u6765\u5224\u65ad\u4f20\u5165\u7684\u503c\u662f\u5426\u662fint\u3001float\u6216complex\u7c7b\u578b\u3002\u5982\u679c\u662f\uff0c\u5219\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56deFalse\u3002<\/p>\n<\/p>\n<p><p>\u8be6\u7ec6\u63cf\u8ff0\uff1a<strong>\u4f7f\u7528<code>isinstance<\/code>\u51fd\u6570\u7684\u4f18\u70b9\u662f\u5b83\u53ef\u4ee5\u540c\u65f6\u68c0\u67e5\u591a\u4e2a\u7c7b\u578b\uff0c\u5e76\u4e14\u652f\u6301\u591a\u6001\u6027\u3002<\/strong> \u4f8b\u5982\uff0c\u67d0\u4e9b\u81ea\u5b9a\u4e49\u7c7b\u53ef\u80fd\u4f1a\u7ee7\u627f\u81ea\u5185\u7f6e\u7684\u6570\u503c\u7c7b\u578b\uff0c<code>isinstance<\/code>\u53ef\u4ee5\u6b63\u786e\u5730\u8bc6\u522b\u8fd9\u4e9b\u7c7b\u7684\u5b9e\u4f8b\u3002\u6b64\u5916\uff0c<code>isinstance<\/code>\u51fd\u6570\u8fd8\u53ef\u4ee5\u63a5\u53d7\u4e00\u4e2a\u5143\u7ec4\u4f5c\u4e3a\u7c7b\u578b\u53c2\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u5bf9\u591a\u4e2a\u7c7b\u578b\u7684\u68c0\u67e5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528<code>type<\/code>\u51fd\u6570\u5224\u65ad<\/h3>\n<\/p>\n<p><p><code>type<\/code>\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u5bf9\u8c61\u7684\u7c7b\u578b\uff0c\u901a\u8fc7\u6bd4\u8f83\u8fd4\u56de\u7684\u7c7b\u578b\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u662f\u6570\u5b57\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_number(value):<\/p>\n<p>    return type(value) in (int, float, complex)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u4f7f\u7528\u4e86<code>type<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u503c\u7684\u7c7b\u578b\uff0c\u5e76\u68c0\u67e5\u8be5\u7c7b\u578b\u662f\u5426\u5728(int, float, complex)\u5143\u7ec4\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5224\u65ad<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u6587\u672c\u5339\u914d\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u7b26\u5408\u7279\u5b9a\u7684\u6a21\u5f0f\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u662f\u6709\u6548\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_number(value):<\/p>\n<p>    if isinstance(value, str):<\/p>\n<p>        return bool(re.match(r&#39;^-?\\d+(\\.\\d+)?$&#39;, value))<\/p>\n<p>    return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u9996\u5148\u68c0\u67e5\u503c\u662f\u5426\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u7136\u540e\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u5b57\u7b26\u4e32\u662f\u5426\u662f\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\u3002\u6b63\u5219\u8868\u8fbe\u5f0f<code>r&#39;^-?\\d+(\\.\\d+)?$&#39;<\/code>\u7528\u4e8e\u5339\u914d\u6574\u6570\u548c\u5c0f\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528<code>str.isdigit<\/code>\u65b9\u6cd5\u5224\u65ad<\/h3>\n<\/p>\n<p><p><code>str.isdigit<\/code>\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002\u867d\u7136\u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u80fd\u76f4\u63a5\u5224\u65ad\u6d6e\u70b9\u6570\u548c\u8d1f\u6570\uff0c\u4f46\u5b83\u53ef\u4ee5\u7528\u4f5c\u57fa\u672c\u7684\u6574\u6570\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_number(value):<\/p>\n<p>    if isinstance(value, str):<\/p>\n<p>        return value.isdigit()<\/p>\n<p>    return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u68c0\u67e5\u503c\u662f\u5426\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u5982\u679c\u662f\uff0c\u5219\u4f7f\u7528<code>str.isdigit<\/code>\u65b9\u6cd5\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7ed3\u5408\u591a\u79cd\u65b9\u6cd5\u5224\u65ad<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u5168\u9762\u5730\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u662f\u6570\u5b57\u7c7b\u578b\uff0c\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408\u4e0a\u8ff0\u591a\u79cd\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5148\u4f7f\u7528<code>isinstance<\/code>\u51fd\u6570\u5224\u65ad\u6570\u503c\u7c7b\u578b\uff0c\u518d\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6216<code>str.isdigit<\/code>\u65b9\u6cd5\u5904\u7406\u5b57\u7b26\u4e32\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_number(value):<\/p>\n<p>    if isinstance(value, (int, float, complex)):<\/p>\n<p>        return True<\/p>\n<p>    if isinstance(value, str):<\/p>\n<p>        return bool(re.match(r&#39;^-?\\d+(\\.\\d+)?$&#39;, value))<\/p>\n<p>    return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u9996\u5148\u4f7f\u7528<code>isinstance<\/code>\u51fd\u6570\u5224\u65ad\u503c\u662f\u5426\u662fint\u3001float\u6216complex\u7c7b\u578b\uff0c\u5982\u679c\u662f\uff0c\u5219\u8fd4\u56deTrue\u3002\u63a5\u7740\u68c0\u67e5\u503c\u662f\u5426\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\uff0c\u5982\u679c\u662f\uff0c\u5219\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u5b57\u7b26\u4e32\u662f\u5426\u662f\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5904\u7406\u7279\u6b8a\u60c5\u51b5<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u7279\u6b8a\u60c5\u51b5\uff0c\u4f8b\u5982\u7a7a\u5b57\u7b26\u4e32\u3001None\u503c\u7b49\u3002\u6211\u4eec\u9700\u8981\u5728\u5224\u65ad\u524d\u5148\u5904\u7406\u8fd9\u4e9b\u7279\u6b8a\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_number(value):<\/p>\n<p>    if value is None:<\/p>\n<p>        return False<\/p>\n<p>    if isinstance(value, (int, float, complex)):<\/p>\n<p>        return True<\/p>\n<p>    if isinstance(value, str):<\/p>\n<p>        if value.strip() == &quot;&quot;:<\/p>\n<p>            return False<\/p>\n<p>        return bool(re.match(r&#39;^-?\\d+(\\.\\d+)?$&#39;, value))<\/p>\n<p>    return False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>is_number<\/code>\u51fd\u6570\u9996\u5148\u68c0\u67e5\u503c\u662f\u5426\u4e3aNone\uff0c\u5982\u679c\u662f\uff0c\u5219\u8fd4\u56deFalse\u3002\u63a5\u7740\u4f7f\u7528<code>isinstance<\/code>\u51fd\u6570\u5224\u65ad\u6570\u503c\u7c7b\u578b\uff0c\u7136\u540e\u5904\u7406\u5b57\u7b26\u4e32\u7c7b\u578b\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e3a\u7a7a\u6216\u53ea\u5305\u542b\u7a7a\u767d\u5b57\u7b26\uff0c\u5219\u8fd4\u56deFalse\uff0c\u5426\u5219\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u5b57\u7b26\u4e32\u662f\u5426\u662f\u6709\u6548\u7684\u6570\u5b57\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u662f\u6570\u5b57\u7c7b\u578b\u3002<strong><code>isinstance<\/code>\u51fd\u6570\u662f\u6700\u5e38\u7528\u4e14\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u540c\u65f6\u68c0\u67e5\u591a\u4e2a\u7c7b\u578b\uff0c\u5e76\u4e14\u652f\u6301\u591a\u6001\u6027\u3002<\/strong> \u5f53\u7136\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u6839\u636e\u5b9e\u9645\u9700\u6c42\uff0c\u7ed3\u5408\u5176\u4ed6\u65b9\u6cd5\u6765\u5b9e\u73b0\u66f4\u5168\u9762\u7684\u5224\u65ad\u3002\u5728\u5904\u7406\u5b57\u7b26\u4e32\u7c7b\u578b\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6216<code>str.isdigit<\/code>\u65b9\u6cd5\uff0c\u800c\u5728\u5904\u7406\u7279\u6b8a\u60c5\u51b5\u65f6\uff0c\u9700\u8981\u5148\u8fdb\u884c\u5fc5\u8981\u7684\u9884\u5904\u7406\u3002\u901a\u8fc7\u5408\u7406\u5730\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u66f4\u51c6\u786e\u5730\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u662f\u6570\u5b57\u7c7b\u578b\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u5065\u58ee\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\u68c0\u67e5\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u662f\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>isinstance()<\/code>\u51fd\u6570\u6765\u68c0\u67e5\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u6570\u5b57\u7c7b\u578b\u3002\u53ef\u4ee5\u5c06\u53d8\u91cf\u4e0e<code>int<\/code>\u548c<code>float<\/code>\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">num = 10.5\nif isinstance(num, (int, float)):\n    print(&quot;\u662f\u6570\u5b57\u7c7b\u578b&quot;)\nelse:\n    print(&quot;\u4e0d\u662f\u6570\u5b57\u7c7b\u578b&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u786e\u8ba4\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u5c5e\u4e8e\u6570\u5b57\u7684\u8303\u7574\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u53ef\u4ee5\u8f6c\u6362\u4e3a\u6570\u5b57\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>str.isdigit()<\/code>\u65b9\u6cd5\u6765\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002\u7136\u800c\uff0c\u5bf9\u4e8e\u6d6e\u70b9\u6570\u548c\u8d1f\u6570\uff0c<code>isdigit()<\/code>\u5e76\u4e0d\u9002\u7528\u3002\u53ef\u4ee5\u4f7f\u7528<code>try<\/code>\u548c<code>except<\/code>\u5757\u6765\u6355\u6349\u8f6c\u6362\u9519\u8bef\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">str_num = &quot;10.5&quot;\ntry:\n    float_num = float(str_num)\n    print(&quot;\u53ef\u4ee5\u8f6c\u6362\u4e3a\u6570\u5b57&quot;)\nexcept ValueError:\n    print(&quot;\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6570\u5b57&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u80fd\u591f\u6709\u6548\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u80fd\u591f\u6210\u529f\u8f6c\u6362\u4e3a\u6570\u5b57\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u5e93\u53ef\u4ee5\u5e2e\u52a9\u5224\u65ad\u6570\u5b57\u7c7b\u578b\uff1f<\/strong><br \/>\u9664\u4e86Python\u5185\u7f6e\u7684\u529f\u80fd\uff0c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u5982NumPy\u4e5f\u53ef\u4ee5\u7b80\u5316\u6570\u5b57\u7c7b\u578b\u7684\u5224\u65ad\u3002NumPy\u63d0\u4f9b\u4e86<code>numpy.issubdtype()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u662f\u67d0\u79cd\u7c7b\u578b\u7684\u5b50\u7c7b\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import numpy as np\nvalue = np.array(10)\nif np.issubdtype(value.dtype, np.number):\n    print(&quot;\u662f\u6570\u5b57\u7c7b\u578b&quot;)\nelse:\n    print(&quot;\u4e0d\u662f\u6570\u5b57\u7c7b\u578b&quot;)\n<\/code><\/pre>\n<p>\u4f7f\u7528NumPy\u53ef\u4ee5\u4f7f\u6570\u636e\u5904\u7406\u66f4\u52a0\u9ad8\u6548\uff0c\u5c24\u5176\u662f\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5224\u65ad\u4e00\u4e2a\u503c\u662f\u5426\u4e3a\u6570\u5b57\u7c7b\u578b\u3002 \u8fd9\u4e9b\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u7684isinstance\u51fd\u6570\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1062197,"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\/1062184"}],"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=1062184"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062184\/revisions"}],"predecessor-version":[{"id":1062200,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1062184\/revisions\/1062200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1062197"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1062184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1062184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1062184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}