{"id":1070872,"date":"2025-01-08T11:02:12","date_gmt":"2025-01-08T03:02:12","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1070872.html"},"modified":"2025-01-08T11:02:15","modified_gmt":"2025-01-08T03:02:15","slug":"python-%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e6%95%b0%e6%8d%ae%e7%b1%bb%e5%9e%8b%e6%98%af%e5%90%a6%e4%b8%ba-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1070872.html","title":{"rendered":"python \u5982\u4f55\u5224\u65ad\u6570\u636e\u7c7b\u578b\u662f\u5426\u4e3a"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101510\/b80ad7da-62bf-4364-9983-9f0247aadf0e.webp\" alt=\"python \u5982\u4f55\u5224\u65ad\u6570\u636e\u7c7b\u578b\u662f\u5426\u4e3a\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5224\u65ad\u6570\u636e\u7c7b\u578b\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5982\u4f7f\u7528type()\u51fd\u6570\u3001isinstance()\u51fd\u6570\u7b49\u3002\u4f7f\u7528type()\u51fd\u6570\u3001\u4f7f\u7528isinstance()\u51fd\u6570\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u7c7b\u578b\u68c0\u67e5\u51fd\u6570\u3002<\/strong> \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u9009\u62e9\u4f7f\u7528isinstance()\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u662f\u5426\u5c5e\u4e8e\u67d0\u4e2a\u7c7b\u7684\u5b50\u7c7b\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u5e76\u4e3e\u4f8b\u8bf4\u660e\u3002<\/p>\n<\/p>\n<h2><strong>\u4e00\u3001\u4f7f\u7528type()\u51fd\u6570<\/strong><\/h2>\n<p><p>type()\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u8fd4\u56de\u5bf9\u8c61\u7684\u7c7b\u578b\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83type()\u51fd\u6570\u7684\u8fd4\u56de\u503c\u6765\u5224\u65ad\u6570\u636e\u7c7b\u578b\u662f\u5426\u4e3a\u6307\u5b9a\u7c7b\u578b\u3002<\/p>\n<\/p>\n<p><h2>1.1 \u4f7f\u7528type()\u51fd\u6570\u5224\u65ad\u6570\u636e\u7c7b\u578b<\/h2>\n<\/p>\n<p><p>type()\u51fd\u6570\u53ef\u4ee5\u7528\u6765\u68c0\u67e5\u4e00\u4e2a\u53d8\u91cf\u6216\u5bf9\u8c61\u7684\u7c7b\u578b\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u7c7b\u578b\u5bf9\u8c61\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5176\u4e0e\u6307\u5b9a\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>if type(x) == int:<\/p>\n<p>    print(&quot;x is an integer&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0ctype(x)\u8fd4\u56de\u7684\u662fint\u7c7b\u578b\u5bf9\u8c61\uff0c\u7136\u540e\u6211\u4eec\u5c06\u5176\u4e0eint\u7c7b\u578b\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u76f8\u7b49\uff0c\u5219\u8bf4\u660ex\u662f\u4e00\u4e2a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h2>1.2 \u4f7f\u7528type()\u51fd\u6570\u5224\u65ad\u591a\u4e2a\u6570\u636e\u7c7b\u578b<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528type()\u51fd\u6570\u6765\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u5c5e\u4e8e\u591a\u4e2a\u6570\u636e\u7c7b\u578b\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>if type(x) in (int, float):<\/p>\n<p>    print(&quot;x is either an integer or a float&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u7c7b\u578b\u5bf9\u8c61\u7684\u5143\u7ec4\uff0c\u7136\u540e\u4f7f\u7528in\u5173\u952e\u5b57\u68c0\u67e5type(x)\u662f\u5426\u5728\u8fd9\u4e2a\u5143\u7ec4\u4e2d\u3002<\/p>\n<\/p>\n<p><h2>1.3 type()\u51fd\u6570\u7684\u5c40\u9650\u6027<\/h2>\n<\/p>\n<p><p>\u5c3d\u7ba1type()\u51fd\u6570\u5728\u5224\u65ad\u6570\u636e\u7c7b\u578b\u65f6\u975e\u5e38\u65b9\u4fbf\uff0c\u4f46\u662f\u5b83\u6709\u4e00\u4e9b\u5c40\u9650\u6027\u3002\u5b83\u4e0d\u80fd\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u662f\u67d0\u4e2a\u7c7b\u7684\u5b50\u7c7b\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Animal:<\/p>\n<p>    pass<\/p>\n<p>class Dog(Animal):<\/p>\n<p>    pass<\/p>\n<p>d = Dog()<\/p>\n<p>print(type(d) == Animal)  # False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u867d\u7136Dog\u7c7b\u662fAnimal\u7c7b\u7684\u5b50\u7c7b\uff0c\u4f46\u662ftype(d) == Animal\u7684\u7ed3\u679c\u662fFalse\u3002<\/p>\n<\/p>\n<h2><strong>\u4e8c\u3001\u4f7f\u7528isinstance()\u51fd\u6570<\/strong><\/h2>\n<p><p>isinstance()\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u53e6\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u662f\u67d0\u4e2a\u7c7b\u6216\u5176\u5b50\u7c7b\u7684\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><h2>2.1 \u4f7f\u7528isinstance()\u51fd\u6570\u5224\u65ad\u6570\u636e\u7c7b\u578b<\/h2>\n<\/p>\n<p><p>isinstance()\u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff0c\u7b2c\u4e00\u4e2a\u53c2\u6570\u662f\u8981\u68c0\u67e5\u7684\u5bf9\u8c61\uff0c\u7b2c\u4e8c\u4e2a\u53c2\u6570\u662f\u7c7b\u578b\u6216\u7c7b\u578b\u7684\u5143\u7ec4\u3002\u5982\u679c\u5bf9\u8c61\u662f\u8fd9\u4e9b\u7c7b\u578b\u4e2d\u7684\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u5219\u8fd4\u56deTrue\uff1b\u5426\u5219\uff0c\u8fd4\u56deFalse\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>if isinstance(x, int):<\/p>\n<p>    print(&quot;x is an integer&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cisinstance(x, int)\u8fd4\u56deTrue\uff0c\u8bf4\u660ex\u662f\u4e00\u4e2a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><h2>2.2 \u4f7f\u7528isinstance()\u51fd\u6570\u5224\u65ad\u591a\u4e2a\u6570\u636e\u7c7b\u578b<\/h2>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u7c7b\u578b\u7684\u5143\u7ec4\u4f5c\u4e3aisinstance()\u51fd\u6570\u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570\uff0c\u6765\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u5c5e\u4e8e\u8fd9\u4e9b\u7c7b\u578b\u4e4b\u4e00\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">x = 10<\/p>\n<p>if isinstance(x, (int, float)):<\/p>\n<p>    print(&quot;x is either an integer or a float&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cisinstance(x, (int, float))\u8fd4\u56deTrue\uff0c\u8bf4\u660ex\u662f\u4e00\u4e2a\u6574\u6570\u6216\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<p><h2>2.3 isinstance()\u51fd\u6570\u7684\u4f18\u52bf<\/h2>\n<\/p>\n<p><p>isinstance()\u51fd\u6570\u7684\u4e00\u4e2a\u91cd\u8981\u4f18\u52bf\u662f\u5b83\u53ef\u4ee5\u6b63\u786e\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u662f\u67d0\u4e2a\u7c7b\u7684\u5b50\u7c7b\u7684\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Animal:<\/p>\n<p>    pass<\/p>\n<p>class Dog(Animal):<\/p>\n<p>    pass<\/p>\n<p>d = Dog()<\/p>\n<p>print(isinstance(d, Animal))  # True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cisinstance(d, Animal)\u8fd4\u56deTrue\uff0c\u8bf4\u660ed\u662fAnimal\u7c7b\u7684\u5b9e\u4f8b\u6216\u5176\u5b50\u7c7b\u7684\u5b9e\u4f8b\u3002<\/p>\n<\/p>\n<h2><strong>\u4e09\u3001\u4f7f\u7528\u7279\u5b9a\u7684\u7c7b\u578b\u68c0\u67e5\u51fd\u6570<\/strong><\/h2>\n<p><p>Python\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e9b\u7279\u5b9a\u7684\u7c7b\u578b\u68c0\u67e5\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u5224\u65ad\u5bf9\u8c61\u662f\u5426\u662f\u67d0\u79cd\u7c7b\u578b\u3002\u8fd9\u4e9b\u51fd\u6570\u5305\u62ec\uff1aisnumeric()\u3001isalpha()\u3001isdigit()\u7b49\u3002<\/p>\n<\/p>\n<p><h2>3.1 \u4f7f\u7528isnumeric()\u51fd\u6570<\/h2>\n<\/p>\n<p><p>isnumeric()\u51fd\u6570\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;12345&quot;<\/p>\n<p>if s.isnumeric():<\/p>\n<p>    print(&quot;s is numeric&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cs.isnumeric()\u8fd4\u56deTrue\uff0c\u8bf4\u660es\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h2>3.2 \u4f7f\u7528isalpha()\u51fd\u6570<\/h2>\n<\/p>\n<p><p>isalpha()\u51fd\u6570\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u5b57\u6bcd\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello&quot;<\/p>\n<p>if s.isalpha():<\/p>\n<p>    print(&quot;s is alphabetic&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cs.isalpha()\u8fd4\u56deTrue\uff0c\u8bf4\u660es\u53ea\u5305\u542b\u5b57\u6bcd\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h2>3.3 \u4f7f\u7528isdigit()\u51fd\u6570<\/h2>\n<\/p>\n<p><p>isdigit()\u51fd\u6570\u7528\u4e8e\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u53ea\u5305\u542b\u6570\u5b57\u5b57\u7b26\u3002\u4e0eisnumeric()\u51fd\u6570\u4e0d\u540c\u7684\u662f\uff0cisdigit()\u51fd\u6570\u53ea\u5224\u65ad\u963f\u62c9\u4f2f\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;12345&quot;<\/p>\n<p>if s.isdigit():<\/p>\n<p>    print(&quot;s is digit&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cs.isdigit()\u8fd4\u56deTrue\uff0c\u8bf4\u660es\u53ea\u5305\u542b\u963f\u62c9\u4f2f\u6570\u5b57\u5b57\u7b26\u3002<\/p>\n<\/p>\n<h2><strong>\u56db\u3001\u603b\u7ed3<\/strong><\/h2>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Python\u4e2d\u5224\u65ad\u6570\u636e\u7c7b\u578b\u662f\u5426\u4e3a\u6307\u5b9a\u7c7b\u578b\u3002<strong>\u4f7f\u7528type()\u51fd\u6570\u53ef\u4ee5\u76f4\u63a5\u6bd4\u8f83\u6570\u636e\u7c7b\u578b\uff0c\u4f7f\u7528isinstance()\u51fd\u6570\u53ef\u4ee5\u5224\u65ad\u6570\u636e\u662f\u5426\u5c5e\u4e8e\u67d0\u4e2a\u7c7b\u6216\u5176\u5b50\u7c7b\u7684\u5b9e\u4f8b\uff0c\u4f7f\u7528\u7279\u5b9a\u7684\u7c7b\u578b\u68c0\u67e5\u51fd\u6570\u53ef\u4ee5\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u7b26\u5408\u7279\u5b9a\u7c7b\u578b\u7684\u6761\u4ef6\u3002<\/strong> \u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u901a\u5e38\u4f1a\u9009\u62e9\u4f7f\u7528isinstance()\u51fd\u6570\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u68c0\u67e5\u6570\u636e\u662f\u5426\u5c5e\u4e8e\u67d0\u4e2a\u7c7b\u7684\u5b50\u7c7b\u3002\u6839\u636e\u5177\u4f53\u60c5\u51b5\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u51c6\u786e\u5730\u5224\u65ad\u6570\u636e\u7c7b\u578b\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\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\u7684\u6570\u636e\u7c7b\u578b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>type()<\/code>\u51fd\u6570\u6765\u786e\u5b9a\u4e00\u4e2a\u53d8\u91cf\u7684\u6570\u636e\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7<code>type(variable_name)<\/code>\u6765\u83b7\u53d6\u53d8\u91cf\u7684\u7c7b\u578b\u3002\u5982\u679c\u60f3\u8981\u5224\u65ad\u53d8\u91cf\u662f\u5426\u662f\u7279\u5b9a\u7c7b\u578b\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u68c0\u67e5\u53d8\u91cf\u662f\u5426\u5c5e\u4e8e\u67d0\u4e2a\u7279\u5b9a\u7684\u7c7b\u6216\u6570\u636e\u7c7b\u578b\uff0c\u4f7f\u7528\u65b9\u6cd5\u4e3a<code>isinstance(variable_name, type)<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u7c7b\u578b\uff1f<\/strong><br \/>\u8981\u68c0\u67e5\u5217\u8868\u4e2d\u5143\u7d20\u7684\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408<code>type()<\/code>\u6216<code>isinstance()<\/code>\u51fd\u6570\u3002\u901a\u8fc7\u904d\u5386\u5217\u8868\uff0c\u53ef\u4ee5\u5f97\u5230\u6bcf\u4e2a\u5143\u7d20\u7684\u7c7b\u578b\uff0c\u4f8b\u5982\uff1a<code>[type(item) for item in my_list]<\/code>\u5c06\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6240\u6709\u5143\u7d20\u7c7b\u578b\u7684\u5217\u8868\u3002\u5982\u679c\u9700\u8981\u68c0\u67e5\u6240\u6709\u5143\u7d20\u662f\u5426\u4e3a\u540c\u4e00\u79cd\u7c7b\u578b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>all(isinstance(item, type) for item in my_list)<\/code>\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u5904\u7406\u52a8\u6001\u7c7b\u578b\uff1f<\/strong><br \/>Python\u662f\u4e00\u79cd\u52a8\u6001\u7c7b\u578b\u8bed\u8a00\uff0c\u8fd9\u610f\u5473\u7740\u53d8\u91cf\u5728\u8fd0\u884c\u65f6\u53ef\u4ee5\u6539\u53d8\u7c7b\u578b\u3002\u4e3a\u4e86\u786e\u4fdd\u5728\u4f7f\u7528\u53d8\u91cf\u65f6\u80fd\u591f\u907f\u514d\u7c7b\u578b\u9519\u8bef\uff0c\u5efa\u8bae\u5728\u7f16\u5199\u4ee3\u7801\u65f6\u8fdb\u884c\u5fc5\u8981\u7684\u7c7b\u578b\u68c0\u67e5\u3002\u53ef\u4ee5\u901a\u8fc7<code>isinstance()<\/code>\u6765\u8fdb\u884c\u6761\u4ef6\u5224\u65ad\uff0c\u786e\u4fdd\u53d8\u91cf\u5728\u88ab\u4f7f\u7528\u4e4b\u524d\u662f\u671f\u671b\u7684\u6570\u636e\u7c7b\u578b\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u7c7b\u578b\u63d0\u793a\uff08type hints\uff09\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u8ba9\u4f7f\u7528\u8005\u66f4\u6e05\u695a\u53d8\u91cf\u7684\u9884\u671f\u7c7b\u578b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5224\u65ad\u6570\u636e\u7c7b\u578b\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5982\u4f7f\u7528type()\u51fd\u6570\u3001isinstance()\u51fd\u6570\u7b49\u3002\u4f7f\u7528type [&hellip;]","protected":false},"author":3,"featured_media":1070887,"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\/1070872"}],"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=1070872"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070872\/revisions"}],"predecessor-version":[{"id":1070892,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070872\/revisions\/1070892"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1070887"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1070872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1070872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1070872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}