{"id":999022,"date":"2024-12-27T09:37:54","date_gmt":"2024-12-27T01:37:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/999022.html"},"modified":"2024-12-27T09:37:56","modified_gmt":"2024-12-27T01:37:56","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e5%a4%8d%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/999022.html","title":{"rendered":"Python\u4e2d\u5982\u4f55\u5224\u65ad\u590d\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074218\/0f0f5ff1-67f1-47c7-bc2b-fc341ca427c6.webp\" alt=\"Python\u4e2d\u5982\u4f55\u5224\u65ad\u590d\u6570\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u590d\u6570\uff1a\u4f7f\u7528\u5185\u7f6e<code>complex<\/code>\u7c7b\u578b\u3001\u901a\u8fc7<code>isinstance()<\/code>\u51fd\u6570\u3001\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027\u662f\u5426\u4e3a\u96f6<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u80fd\u591f\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u590d\u6570\uff0c\u8fd8\u53ef\u4ee5\u5224\u65ad\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e<code>complex<\/code>\u7c7b\u578b<\/p>\n<\/p>\n<p><p>Python\u5185\u7f6e\u4e86\u4e00\u79cd<code>complex<\/code>\u7c7b\u578b\u7528\u4e8e\u8868\u793a\u590d\u6570\u3002\u590d\u6570\u7531\u4e00\u4e2a\u5b9e\u90e8\u548c\u4e00\u4e2a\u865a\u90e8\u7ec4\u6210\uff0c\u53ef\u4ee5\u7528<code>a + bj<\/code>\u7684\u5f62\u5f0f\u8868\u793a\uff0c\u5176\u4e2d<code>a<\/code>\u662f\u5b9e\u90e8\uff0c<code>b<\/code>\u662f\u865a\u90e8\uff0c<code>j<\/code>\u662f\u865a\u6570\u5355\u4f4d\u3002\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u590d\u6570\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>complex<\/code>\u7c7b\u578b\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u590d\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>complex()<\/code>\u51fd\u6570\u6765\u521b\u5efa\u590d\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z = complex(2, 3)<\/p>\n<p>print(z)  # \u8f93\u51fa: (2+3j)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>a + bj<\/code>\u7684\u5f62\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z = 2 + 3j<\/p>\n<p>print(z)  # \u8f93\u51fa: (2+3j)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5224\u65ad\u590d\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>type()<\/code>\u51fd\u6570\u6765\u5224\u65ad\u4e00\u4e2a\u6570\u7684\u7c7b\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z = 2 + 3j<\/p>\n<p>if type(z) == complex:<\/p>\n<p>    print(&quot;z\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;z\u4e0d\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\uff0c\u4f46\u4e0d\u591f\u7075\u6d3b\uff0c\u56e0\u4e3a\u5b83\u4e0d\u80fd\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u662f\u590d\u6570\u7684\u5b50\u7c7b\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>isinstance()<\/code>\u51fd\u6570\u662f\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u67d0\u4e2a\u7c7b\u578b\u6216\u67d0\u4e9b\u7c7b\u578b\u4e4b\u4e00\u7684\u5e38\u7528\u65b9\u6cd5\u3002\u5bf9\u4e8e\u590d\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570\u8fdb\u884c\u5224\u65ad\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528<code>isinstance()<\/code>\u5224\u65ad<\/strong><\/p>\n<\/p>\n<p><p><code>isinstance()<\/code>\u51fd\u6570\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u590d\u6570\u6216\u590d\u6570\u7684\u5b50\u7c7b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z = 2 + 3j<\/p>\n<p>if isinstance(z, complex):<\/p>\n<p>    print(&quot;z\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;z\u4e0d\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6b64\u65b9\u6cd5\u76f8\u6bd4\u4e8e<code>type()<\/code>\u51fd\u6570\u66f4\u4e3a\u7075\u6d3b\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u53d8\u91cf\u662f\u5426\u4e3a\u590d\u6570\u7684\u5b50\u7c7b\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5224\u65ad\u5b50\u7c7b<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u5b9a\u4e49\u4e86\u590d\u6570\u7684\u5b50\u7c7b\uff0c<code>isinstance()<\/code>\u51fd\u6570\u4ecd\u7136\u53ef\u4ee5\u6b63\u786e\u5224\u65ad\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyComplex(complex):<\/p>\n<p>    pass<\/p>\n<p>z = MyComplex(2, 3)<\/p>\n<p>if isinstance(z, complex):<\/p>\n<p>    print(&quot;z\u662f\u4e00\u4e2a\u590d\u6570\u6216\u590d\u6570\u7684\u5b50\u7c7b&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;z\u4e0d\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027<\/p>\n<\/p>\n<p><p>\u590d\u6570\u5728Python\u4e2d\u6709\u4e24\u4e2a\u5c5e\u6027\uff1a<code>real<\/code>\u548c<code>imag<\/code>\uff0c\u5206\u522b\u8868\u793a\u5b9e\u90e8\u548c\u865a\u90e8\u3002\u53ef\u4ee5\u901a\u8fc7\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027\u662f\u5426\u4e3a\u96f6\u6765\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u590d\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5982\u679c\u4e00\u4e2a\u6570\u7684<code>imag<\/code>\u5c5e\u6027\u4e0d\u4e3a\u96f6\uff0c\u5219\u53ef\u4ee5\u8ba4\u4e3a\u5b83\u662f\u4e00\u4e2a\u590d\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z = 2 + 3j<\/p>\n<p>if z.imag != 0:<\/p>\n<p>    print(&quot;z\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;z\u4e0d\u662f\u4e00\u4e2a\u590d\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u975e\u96f6\u865a\u90e8\u7684\u590d\u6570\uff0c\u4f46\u4e0d\u80fd\u5224\u65ad\u7eaf\u5b9e\u6570\u662f\u5426\u4e3a\u590d\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u533a\u5206\u7eaf\u5b9e\u6570\u548c\u590d\u6570\u3002\u901a\u8fc7\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">z1 = 2 + 0j<\/p>\n<p>z2 = 2 + 3j<\/p>\n<p>print(&quot;z1\u662f\u590d\u6570&quot; if z1.imag != 0 else &quot;z1\u662f\u5b9e\u6570&quot;)<\/p>\n<p>print(&quot;z2\u662f\u590d\u6570&quot; if z2.imag != 0 else &quot;z2\u662f\u5b9e\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5b9e\u8df5\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u8df5\u4e2d\uff0c\u5224\u65ad\u590d\u6570\u7684\u5e94\u7528\u573a\u666f\u5f88\u591a\uff0c\u4f8b\u5982\u5728\u79d1\u5b66\u8ba1\u7b97\u3001\u4fe1\u53f7\u5904\u7406\u548c\u56fe\u50cf\u5904\u7406\u4e2d\uff0c\u590d\u6570\u5e38\u7528\u4e8e\u8868\u793a\u76f8\u4f4d\u548c\u5e45\u5ea6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u79d1\u5b66\u8ba1\u7b97<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\uff0c\u590d\u6570\u7528\u4e8e\u63cf\u8ff0\u7269\u7406\u73b0\u8c61\uff0c\u4f8b\u5982\u4ea4\u6d41\u7535\u7684\u7535\u538b\u548c\u7535\u6d41\u3002\u901a\u8fc7\u5224\u65ad\u590d\u6570\uff0c\u53ef\u4ee5\u786e\u5b9a\u8ba1\u7b97\u7684\u6b63\u786e\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import cmath<\/p>\n<p>def calculate_impedance(voltage, current):<\/p>\n<p>    if isinstance(voltage, complex) and isinstance(current, complex):<\/p>\n<p>        return voltage \/ current<\/p>\n<p>    else:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;\u7535\u538b\u548c\u7535\u6d41\u5fc5\u987b\u662f\u590d\u6570&quot;)<\/p>\n<p>voltage = 120 + 30j<\/p>\n<p>current = 5 + 1j<\/p>\n<p>impedance = calculate_impedance(voltage, current)<\/p>\n<p>print(&quot;\u963b\u6297:&quot;, impedance)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fe1\u53f7\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4fe1\u53f7\u5904\u7406\u4e2d\uff0c\u590d\u6570\u7528\u4e8e\u8868\u793a\u4fe1\u53f7\u7684\u9891\u7387\u7279\u6027\u3002\u5224\u65ad\u590d\u6570\u53ef\u4ee5\u5e2e\u52a9\u786e\u5b9a\u4fe1\u53f7\u5904\u7406\u7684\u8f93\u5165\u548c\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def process_signal(signal):<\/p>\n<p>    if all(isinstance(s, complex) for s in signal):<\/p>\n<p>        return np.fft.fft(signal)<\/p>\n<p>    else:<\/p>\n<p>        raise ValueError(&quot;\u4fe1\u53f7\u5fc5\u987b\u662f\u590d\u6570\u5e8f\u5217&quot;)<\/p>\n<p>signal = [1+2j, 2+3j, 3+4j]<\/p>\n<p>transformed_signal = process_signal(signal)<\/p>\n<p>print(&quot;\u53d8\u6362\u540e\u7684\u4fe1\u53f7:&quot;, transformed_signal)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u56fe\u50cf\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u56fe\u50cf\u5904\u7406\u4e2d\uff0c\u590d\u6570\u7528\u4e8e\u8868\u793a\u56fe\u50cf\u7684\u76f8\u4f4d\u4fe1\u606f\u3002\u901a\u8fc7\u5224\u65ad\u590d\u6570\uff0c\u53ef\u4ee5\u786e\u4fdd\u56fe\u50cf\u5904\u7406\u7b97\u6cd5\u7684\u8f93\u5165\u683c\u5f0f\u6b63\u786e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def process_image(image):<\/p>\n<p>    if isinstance(image, np.ndarray) and image.dtype == np.complex:<\/p>\n<p>        return np.abs(image)<\/p>\n<p>    else:<\/p>\n<p>        raise ValueError(&quot;\u56fe\u50cf\u5fc5\u987b\u662f\u590d\u6570\u6570\u7ec4&quot;)<\/p>\n<p>image = np.array([[1+1j, 2+2j], [3+3j, 4+4j]])<\/p>\n<p>processed_image = process_image(image)<\/p>\n<p>print(&quot;\u5904\u7406\u540e\u7684\u56fe\u50cf:&quot;, processed_image)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5224\u65ad\u590d\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e<code>complex<\/code>\u7c7b\u578b\u3001<code>isinstance()<\/code>\u51fd\u6570\u548c\u68c0\u67e5<code>imag<\/code>\u5c5e\u6027\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u65e0\u8bba\u662f\u79d1\u5b66\u8ba1\u7b97\u3001\u4fe1\u53f7\u5904\u7406\u8fd8\u662f\u56fe\u50cf\u5904\u7406\uff0c\u590d\u6570\u7684\u5224\u65ad\u90fd\u662f\u786e\u4fdd\u6570\u636e\u683c\u5f0f\u6b63\u786e\u548c\u7b97\u6cd5\u6709\u6548\u7684\u91cd\u8981\u6b65\u9aa4\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\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>\u5728Python\u4e2d\uff0c\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u590d\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>complex()<\/code>\u51fd\u6570\u6216\u76f4\u63a5\u4f7f\u7528<code>j<\/code>\u7b26\u53f7\u6765\u521b\u5efa\u590d\u6570\u3002\u4f7f\u7528<code>complex(real, imag)<\/code>\u51fd\u6570\u65f6\uff0c<code>real<\/code>\u662f\u5b9e\u90e8\uff0c<code>imag<\/code>\u662f\u865a\u90e8\u3002\u4f8b\u5982\uff0c<code>z = complex(2, 3)<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u590d\u65702 + 3j\u3002\u53e6\u4e00\u79cd\u65b9\u5f0f\u662f\u76f4\u63a5\u5199\u6210<code>z = 2 + 3j<\/code>\uff0c\u8fd9\u4e5f\u4f1a\u751f\u6210\u76f8\u540c\u7684\u590d\u6570\u3002<\/p>\n<p><strong>\u5982\u4f55\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u662f\u590d\u6570\uff1f<\/strong><br \/>\u8981\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u662f\u590d\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528<code>isinstance()<\/code>\u51fd\u6570\u3002\u5bf9\u4e8e\u4e00\u4e2a\u53d8\u91cf<code>x<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7<code>isinstance(x, complex)<\/code>\u6765\u68c0\u67e5\u5b83\u662f\u5426\u662f\u590d\u6570\u7c7b\u578b\u3002\u5982\u679c<code>x<\/code>\u662f\u590d\u6570\uff0c\u8fd4\u56de\u503c\u4e3a<code>True<\/code>\uff0c\u5426\u5219\u8fd4\u56de<code>False<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u590d\u6570\u7684\u57fa\u672c\u8fd0\u7b97\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>Python\u652f\u6301\u590d\u6570\u7684\u57fa\u672c\u8fd0\u7b97\uff0c\u5305\u62ec\u52a0\u6cd5\u3001\u51cf\u6cd5\u3001\u4e58\u6cd5\u548c\u9664\u6cd5\u3002\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u8fd0\u7b97\u7b26\u8fdb\u884c\u8fd9\u4e9b\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u4e24\u4e2a\u590d\u6570\u76f8\u52a0\u53ef\u4ee5\u5199\u4f5c<code>z1 + z2<\/code>\uff0c\u5176\u4e2d<code>z1<\/code>\u548c<code>z2<\/code>\u90fd\u662f\u590d\u6570\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>abs(z)<\/code>\u6765\u83b7\u5f97\u590d\u6570\u7684\u6a21\uff0c<code>z.real<\/code>\u548c<code>z.imag<\/code>\u53ef\u4ee5\u5206\u522b\u83b7\u53d6\u590d\u6570\u7684\u5b9e\u90e8\u548c\u865a\u90e8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\u5224\u65ad\u4e00\u4e2a\u6570\u662f\u5426\u4e3a\u590d\u6570\uff1a\u4f7f\u7528\u5185\u7f6ecomplex\u7c7b\u578b\u3001\u901a\u8fc7isinstanc [&hellip;]","protected":false},"author":3,"featured_media":999031,"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\/999022"}],"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=999022"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999022\/revisions"}],"predecessor-version":[{"id":999033,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/999022\/revisions\/999033"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/999031"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=999022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=999022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=999022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}