{"id":1157840,"date":"2025-01-13T18:33:28","date_gmt":"2025-01-13T10:33:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1157840.html"},"modified":"2025-01-13T18:33:31","modified_gmt":"2025-01-13T10:33:31","slug":"python%e5%a6%82%e4%bd%95%e8%8e%b7%e5%be%97mac%e5%9c%b0%e5%9d%80","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1157840.html","title":{"rendered":"python\u5982\u4f55\u83b7\u5f97mac\u5730\u5740"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25195940\/11ff2326-691e-49c5-83c6-cd05af627682.webp\" alt=\"python\u5982\u4f55\u83b7\u5f97mac\u5730\u5740\" \/><\/p>\n<p><p> <strong>Python \u83b7\u53d6 MAC \u5730\u5740\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528 <code>uuid<\/code> \u6a21\u5757\u3001<code>getmac<\/code> \u5e93\u3001<code>netifaces<\/code> \u5e93\u548c <code>subprocess<\/code> \u6a21\u5757\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528 <code>uuid<\/code> \u6a21\u5757\u662f\u6700\u4e3a\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\u83b7\u53d6 MAC \u5730\u5740\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528 <code>uuid<\/code> \u6a21\u5757\u83b7\u53d6 MAC \u5730\u5740<\/p>\n<p><code>uuid<\/code> \u6a21\u5757\u662f Python \u6807\u51c6\u5e93\u7684\u4e00\u90e8\u5206\uff0c\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u83b7\u53d6\u5f53\u524d\u8bbe\u5907\u7684 MAC \u5730\u5740\u3002\u4f7f\u7528 <code>uuid<\/code> \u6a21\u5757\u83b7\u53d6 MAC \u5730\u5740\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import uuid<\/p>\n<p>def get_mac_address():<\/p>\n<p>    mac = uuid.UUID(int=uuid.getnode()).hex[-12:]<\/p>\n<p>    return &#39;:&#39;.join([mac[e:e+2] for e in range(0, 12, 2)])<\/p>\n<p>print(get_mac_address())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>uuid.getnode()<\/code> \u8fd4\u56de\u7684\u662f\u4e00\u4e2a 48 \u4f4d\u7684\u6574\u6570\uff0c\u8868\u793a MAC \u5730\u5740\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u5176\u8f6c\u6362\u4e3a\u4e00\u4e2a\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32\uff0c\u5e76\u901a\u8fc7\u5faa\u73af\u5c06\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u4e3a\u5e38\u89c1\u7684 MAC \u5730\u5740\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 getmac \u5e93<\/h3>\n<\/p>\n<p><p><code>getmac<\/code> \u5e93\u662f\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u83b7\u53d6\u8bbe\u5907\u7684 MAC \u5730\u5740\u3002\u5b83\u53ef\u4ee5\u8de8\u5e73\u53f0\u4f7f\u7528\uff0c\u5e76\u652f\u6301 Windows\u3001Linux\u3001macOS \u7b49\u64cd\u4f5c\u7cfb\u7edf\u3002\u4f7f\u7528\u8be5\u5e93\u975e\u5e38\u7b80\u5355\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install getmac<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u83b7\u53d6 MAC \u5730\u5740\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from getmac import get_mac_address<\/p>\n<p>def get_mac():<\/p>\n<p>    mac = get_mac_address()<\/p>\n<p>    return mac<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u5e93\u975e\u5e38\u76f4\u89c2\uff0c\u8c03\u7528 <code>get_mac_address()<\/code> \u51fd\u6570\u5373\u53ef\u8fd4\u56de\u5f53\u524d\u8bbe\u5907\u7684 MAC \u5730\u5740\u3002\u5982\u679c\u9700\u8981\u83b7\u53d6\u7279\u5b9a\u7f51\u7edc\u63a5\u53e3\u7684 MAC \u5730\u5740\uff0c\u53ef\u4ee5\u5728 <code>get_mac_address()<\/code> \u51fd\u6570\u4e2d\u4f20\u5165\u63a5\u53e3\u540d\u79f0\uff0c\u5982 <code>get_mac_address(interface=&quot;eth0&quot;)<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 netifaces \u5e93<\/h3>\n<\/p>\n<p><p><code>netifaces<\/code> \u5e93\u662f\u53e6\u4e00\u4e2a\u7b2c\u4e09\u65b9\u5e93\uff0c\u63d0\u4f9b\u4e86\u83b7\u53d6\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f\u7684\u529f\u80fd\uff0c\u5305\u62ec MAC \u5730\u5740\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install netifaces<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u83b7\u53d6 MAC \u5730\u5740\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import netifaces<\/p>\n<p>def get_mac():<\/p>\n<p>    interfaces = netifaces.interfaces()<\/p>\n<p>    for interface in interfaces:<\/p>\n<p>        addrs = netifaces.ifaddresses(interface)<\/p>\n<p>        if netifaces.AF_LINK in addrs:<\/p>\n<p>            return addrs[netifaces.AF_LINK][0][&#39;addr&#39;]<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u9996\u5148\u83b7\u53d6\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5217\u8868\uff0c\u7136\u540e\u904d\u5386\u6bcf\u4e2a\u63a5\u53e3\uff0c\u83b7\u53d6\u5176\u5730\u5740\u4fe1\u606f\u3002\u5982\u679c\u63a5\u53e3\u7684\u5730\u5740\u4fe1\u606f\u4e2d\u5305\u542b\u94fe\u8def\u5c42\u5730\u5740\uff08\u5373 MAC \u5730\u5740\uff09\uff0c\u5219\u8fd4\u56de\u8be5\u5730\u5740\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528 subprocess \u6a21\u5757<\/h3>\n<\/p>\n<p><p><code>subprocess<\/code> \u6a21\u5757\u5141\u8bb8\u6211\u4eec\u5728 Python \u4e2d\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\uff0c\u56e0\u6b64\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u6765\u83b7\u53d6 MAC \u5730\u5740\u3002\u8fd9\u4e2a\u65b9\u6cd5\u9002\u7528\u4e8e\u6240\u6709\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4f46\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u547d\u4ee4\u3002<\/p>\n<\/p>\n<p><h4>\u5728 Windows \u7cfb\u7edf\u4e0a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>def get_mac():<\/p>\n<p>    result = subprocess.run([&quot;getmac&quot;], capture_output=True, text=True)<\/p>\n<p>    return result.stdout.split()[0]<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728 Windows \u4e0a\uff0c<code>getmac<\/code> \u547d\u4ee4\u53ef\u4ee5\u5217\u51fa\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684 MAC \u5730\u5740\u3002\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6267\u884c <code>getmac<\/code> \u547d\u4ee4\uff0c\u5e76\u89e3\u6790\u5176\u8f93\u51fa\uff0c\u8fd4\u56de\u7b2c\u4e00\u4e2a MAC \u5730\u5740\u3002<\/p>\n<\/p>\n<p><h4>\u5728 Linux \u548c macOS \u7cfb\u7edf\u4e0a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<p>def get_mac():<\/p>\n<p>    result = subprocess.run([&quot;ifconfig&quot;], capture_output=True, text=True)<\/p>\n<p>    for line in result.stdout.split(&#39;\\n&#39;):<\/p>\n<p>        if &#39;ether&#39; in line:<\/p>\n<p>            return line.split()[1]<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728 Linux \u548c macOS \u4e0a\uff0c<code>ifconfig<\/code> \u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u7f51\u7edc\u63a5\u53e3\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec MAC \u5730\u5740\u3002\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u6267\u884c <code>ifconfig<\/code> \u547d\u4ee4\uff0c\u5e76\u89e3\u6790\u5176\u8f93\u51fa\uff0c\u8fd4\u56de\u7b2c\u4e00\u4e2a\u5305\u542b <code>ether<\/code> \u5b57\u6bb5\u7684\u884c\u4e2d\u7684 MAC \u5730\u5740\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528 psutil \u5e93<\/h3>\n<\/p>\n<p><p><code>psutil<\/code> \u5e93\u662f\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u7cfb\u7edf\u548c\u8fdb\u7a0b\u7ba1\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u83b7\u53d6\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f\u7684\u529f\u80fd\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install psutil<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u83b7\u53d6 MAC \u5730\u5740\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import psutil<\/p>\n<p>def get_mac():<\/p>\n<p>    addrs = psutil.net_if_addrs()<\/p>\n<p>    for interface, addr_list in addrs.items():<\/p>\n<p>        for addr in addr_list:<\/p>\n<p>            if addr.family == psutil.AF_LINK:<\/p>\n<p>                return addr.address<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528 <code>psutil.net_if_addrs()<\/code> \u51fd\u6570\u83b7\u53d6\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5730\u5740\u4fe1\u606f\uff0c\u7136\u540e\u904d\u5386\u6bcf\u4e2a\u63a5\u53e3\u7684\u5730\u5740\u5217\u8868\uff0c\u8fd4\u56de\u7b2c\u4e00\u4e2a\u94fe\u8def\u5c42\u5730\u5740\uff08\u5373 MAC \u5730\u5740\uff09\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528 scapy \u5e93<\/h3>\n<\/p>\n<p><p><code>scapy<\/code> \u5e93\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u7f51\u7edc\u5de5\u5177\u5305\uff0c\u63d0\u4f9b\u4e86\u83b7\u53d6\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f\u7684\u529f\u80fd\u3002\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install scapy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u83b7\u53d6 MAC \u5730\u5740\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from scapy.all import get_if_hwaddr, get_if_list<\/p>\n<p>def get_mac():<\/p>\n<p>    interfaces = get_if_list()<\/p>\n<p>    for interface in interfaces:<\/p>\n<p>        return get_if_hwaddr(interface)<\/p>\n<p>print(get_mac())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528 <code>get_if_list()<\/code> \u51fd\u6570\u83b7\u53d6\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5217\u8868\uff0c\u7136\u540e\u904d\u5386\u6bcf\u4e2a\u63a5\u53e3\uff0c\u4f7f\u7528 <code>get_if_hwaddr()<\/code> \u51fd\u6570\u83b7\u53d6\u5176 MAC \u5730\u5740\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4ee5\u4e0a\u4ecb\u7ecd\u4e86\u591a\u79cd\u83b7\u53d6 MAC \u5730\u5740\u7684\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\u3002\u4f7f\u7528 <code>uuid<\/code> \u6a21\u5757\u548c <code>getmac<\/code> \u5e93\u662f\u6700\u4e3a\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u9002\u5408\u5927\u591a\u6570\u573a\u666f\u3002\u5bf9\u4e8e\u9700\u8981\u66f4\u591a\u7f51\u7edc\u63a5\u53e3\u4fe1\u606f\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 <code>netifaces<\/code>\u3001<code>psutil<\/code> \u6216 <code>scapy<\/code> \u5e93\u3002\u901a\u8fc7 <code>subprocess<\/code> \u6a21\u5757\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u662f\u6700\u901a\u7528\u7684\u65b9\u6cd5\uff0c\u4f46\u9700\u8981\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u7684\u4e0d\u540c\uff0c\u4f7f\u7528\u4e0d\u540c\u7684\u547d\u4ee4\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u548c\u73af\u5883\u6765\u51b3\u5b9a\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u83b7\u53d6\u8bbe\u5907\u7684MAC\u5730\u5740\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>uuid<\/code>\u6a21\u5757\u6765\u83b7\u53d6\u8bbe\u5907\u7684MAC\u5730\u5740\u3002\u5177\u4f53\u65b9\u6cd5\u662f\u8c03\u7528<code>uuid.getnode()<\/code>\uff0c\u5b83\u4f1a\u8fd4\u56de\u4e00\u4e2a\u552f\u4e00\u7684\u8282\u70b9\u6807\u8bc6\u7b26\uff0c\u901a\u5e38\u4ee3\u8868\u8bbe\u5907\u7684MAC\u5730\u5740\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import uuid\n\nmac_address = &#39;:&#39;.join([&#39;{:02x}&#39;.format((uuid.getnode() &gt;&gt; elements) &amp; 0xff) for elements in range(0, 2*6, 2)][::-1])\nprint(&quot;MAC Address:&quot;, mac_address)\n<\/code><\/pre>\n<p><strong>\u5728\u83b7\u53d6MAC\u5730\u5740\u65f6\uff0c\u662f\u5426\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\uff1f<\/strong><br \/>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u83b7\u53d6MAC\u5730\u5740\u4e0d\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\uff0c\u56e0\u4e3a\u5b83\u662f\u7531\u64cd\u4f5c\u7cfb\u7edf\u63d0\u4f9b\u7684\u516c\u5171\u4fe1\u606f\u3002\u7136\u800c\uff0c\u5728\u67d0\u4e9b\u7279\u5b9a\u7684\u73af\u5883\u6216\u914d\u7f6e\u4e2d\uff0c\u8bbf\u95ee\u7f51\u7edc\u63a5\u53e3\u7684\u8be6\u7ec6\u4fe1\u606f\u53ef\u80fd\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u83b7\u53d6MAC\u5730\u5740\uff1f<\/strong><br \/>\u5728Linux\u548cMacOS\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>ifconfig<\/code>\u547d\u4ee4\uff0c\u800c\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>ipconfig<\/code>\u547d\u4ee4\u6765\u67e5\u770bMAC\u5730\u5740\u3002\u5982\u679c\u5e0c\u671b\u5728Python\u4e2d\u8de8\u5e73\u53f0\u83b7\u53d6MAC\u5730\u5740\uff0c\u5efa\u8bae\u4f7f\u7528<code>getmac<\/code>\u5e93\uff0c\u5b83\u80fd\u81ea\u52a8\u68c0\u6d4b\u64cd\u4f5c\u7cfb\u7edf\u5e76\u8fd4\u56deMAC\u5730\u5740\u3002\u5b89\u88c5\u65b9\u6cd5\u662f\u4f7f\u7528<code>pip install getmac<\/code>\uff0c\u4f7f\u7528\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">from getmac import get_mac_address\n\nmac_address = get_mac_address()\nprint(&quot;MAC Address:&quot;, mac_address)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"Python \u83b7\u53d6 MAC \u5730\u5740\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5e38\u7528\u7684\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528 uuid \u6a21\u5757\u3001getmac \u5e93\u3001netif [&hellip;]","protected":false},"author":3,"featured_media":1157845,"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\/1157840"}],"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=1157840"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1157840\/revisions"}],"predecessor-version":[{"id":1157848,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1157840\/revisions\/1157848"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1157845"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1157840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1157840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1157840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}