{"id":935101,"date":"2024-12-26T18:46:42","date_gmt":"2024-12-26T10:46:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/935101.html"},"modified":"2024-12-26T18:46:43","modified_gmt":"2024-12-26T10:46:43","slug":"python%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cmatlab","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/935101.html","title":{"rendered":"python\u5982\u4f55\u8fd0\u884cmatlab"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071845\/0095be7c-ca13-4ffe-aa9b-08b5d0d946e2.webp\" alt=\"python\u5982\u4f55\u8fd0\u884cmatlab\" \/><\/p>\n<p><p> <strong>Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fd0\u884cMATLAB\u4ee3\u7801\uff0c\u5305\u62ec\u4f7f\u7528MATLAB Engine API\u3001\u8c03\u7528MATLAB\u547d\u4ee4\u884c\u3001\u6216\u901a\u8fc7\u6587\u4ef6\u4ea4\u6362\u6570\u636e\u7b49\u65b9\u6cd5\u3002<\/strong> \u5176\u4e2d\uff0c<strong>MATLAB Engine API for Python<\/strong> \u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u5b83\u5141\u8bb8Python\u8c03\u7528MATLAB\u51fd\u6570\u5e76\u5728Python\u73af\u5883\u4e2d\u83b7\u53d6\u7ed3\u679c\u3002\u8981\u4f7f\u7528\u8fd9\u79cd\u65b9\u6cd5\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5MATLAB\u548cPython\uff0c\u786e\u4fdd\u4e24\u8005\u517c\u5bb9\uff0c\u7136\u540e\u901a\u8fc7\u914d\u7f6eMATLAB Engine API\u4f7fPython\u80fd\u591f\u4e0eMATLAB\u901a\u4fe1\u3002\u63a5\u4e0b\u6765\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528MATLAB Engine API\u8fd0\u884cMATLAB\u4ee3\u7801\uff0c\u4ee5\u53ca\u5176\u4ed6\u53ef\u7528\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5\u548c\u914d\u7f6eMATLAB Engine API<\/p>\n<\/p>\n<p><p>MATLAB Engine API for Python\u662f\u4e00\u4e2aMATLAB\u5e93\uff0c\u5141\u8bb8Python\u8c03\u7528MATLAB\u7684\u529f\u80fd\u3002\u5728\u4f7f\u7528\u4e4b\u524d\uff0c\u9700\u8981\u786e\u4fddMATLAB\u548cPython\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\uff0c\u5e76\u4e14\u7248\u672c\u517c\u5bb9\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5MATLAB\u548cPython<\/strong><\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86MATLAB\u548cPython\u3002MATLAB\u901a\u5e38\u662f\u5546\u4e1a\u8f6f\u4ef6\uff0c\u9700\u8981\u6709\u6548\u7684\u8bb8\u53ef\u8bc1\u624d\u80fd\u4f7f\u7528\u3002Python\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u514d\u8d39\u4e0b\u8f7d\u548c\u5b89\u88c5\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6eMATLAB Engine API<\/strong><\/p>\n<\/p>\n<p><p>\u5728MATLAB\u547d\u4ee4\u7a97\u53e3\u4e2d\uff0c\u5bfc\u822a\u5230<code>matlabroot\/extern\/engines\/python<\/code>\u76ee\u5f55\uff0c\u5e76\u8fd0\u884c\u5b89\u88c5\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">python setup.py install<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u5c06MATLAB Engine API\u5b89\u88c5\u5230\u4f60\u7684Python\u73af\u5883\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528MATLAB Engine API\u8fd0\u884cMATLAB\u4ee3\u7801<\/p>\n<\/p>\n<p><p>MATLAB Engine API\u5141\u8bb8Python\u8c03\u7528MATLAB\u4ee3\u7801\u5e76\u83b7\u53d6\u7ed3\u679c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u542f\u52a8MATLAB\u5f15\u64ce<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u811a\u672c\u4e2d\uff0c\u9996\u5148\u9700\u8981\u5bfc\u5165<code>matlab.engine<\/code>\u6a21\u5757\uff0c\u5e76\u542f\u52a8MATLAB\u5f15\u64ce\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matlab.engine<\/p>\n<p>eng = matlab.engine.start_matlab()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u542f\u52a8\u4e86\u4e00\u4e2aMATLAB\u4f1a\u8bdd\uff0c\u53ef\u4ee5\u7528\u4e8e\u6267\u884cMATLAB\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528MATLAB\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u542f\u52a8MATLAB\u5f15\u64ce\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>eng<\/code>\u5bf9\u8c61\u8c03\u7528MATLAB\u51fd\u6570\u3002\u4f8b\u5982\uff0c\u8ba1\u7b97\u4e00\u4e2a\u7b80\u5355\u7684\u6570\u5b66\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">result = eng.sqrt(16.0)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a4.0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u8c03\u7528\u4e86MATLAB\u7684<code>sqrt<\/code>\u51fd\u6570\u6765\u8ba1\u7b9716\u7684\u5e73\u65b9\u6839\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd0\u884cMATLAB\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u4f60\u4e5f\u53ef\u4ee5\u8fd0\u884c\u5b8c\u6574\u7684MATLAB\u811a\u672c\u6587\u4ef6\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u540d\u4e3a<code>example.m<\/code>\u7684MATLAB\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u8fd0\u884c\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">eng.run(&#39;example&#39;, nargout=0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u4f7f\u7528<code>run<\/code>\u51fd\u6570\u6267\u884cMATLAB\u811a\u672c\uff0c\u5e76\u6307\u5b9a<code>nargout=0<\/code>\u8868\u793a\u4e0d\u9700\u8981\u8fd4\u56de\u503c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8c03\u7528MATLAB<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528MATLAB Engine API\uff0c\u4f60\u8fd8\u53ef\u4ee5\u901a\u8fc7Python\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u884c\u6765\u8fd0\u884cMATLAB\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199Python\u811a\u672c<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684<code>subprocess<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cMATLAB\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import subprocess<\/p>\n<h2><strong>\u4f7f\u7528MATLAB\u547d\u4ee4\u884c\u8fd0\u884c\u811a\u672c<\/strong><\/h2>\n<p>subprocess.call([&#39;matlab&#39;, &#39;-batch&#39;, &#39;example&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5728\u547d\u4ee4\u884c\u6a21\u5f0f\u4e0b\u8fd0\u884cMATLAB\u811a\u672c<code>example.m<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u8f93\u51fa<\/strong><\/p>\n<\/p>\n<p><p>\u901a\u8fc7<code>subprocess<\/code>\u6a21\u5757\u8fd0\u884cMATLAB\u65f6\uff0c\u53ef\u4ee5\u6355\u83b7\u8f93\u51fa\uff0c\u4ee5\u4fbf\u5728Python\u4e2d\u8fdb\u884c\u8fdb\u4e00\u6b65\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">process = subprocess.Popen([&#39;matlab&#39;, &#39;-batch&#39;, &#39;example&#39;], stdout=subprocess.PIPE)<\/p>\n<p>output, error = process.communicate()<\/p>\n<p>print(output.decode())  # \u6253\u5370\u8f93\u51fa\u7ed3\u679c<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u901a\u8fc7\u6587\u4ef6\u4ea4\u6362\u6570\u636e<\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5728Python\u548cMATLAB\u4e4b\u95f4\u4ea4\u6362\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6\u8fdb\u884c\u4e2d\u4ecb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Python\u7f16\u5199\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u5c06\u6570\u636e\u5199\u5165\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = np.array([1, 2, 3, 4, 5])<\/p>\n<p>np.savetxt(&#39;data.txt&#39;, data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u6570\u636e\u4fdd\u5b58\u5230\u6587\u672c\u6587\u4ef6<code>data.txt<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>MATLAB\u8bfb\u53d6\u548c\u5904\u7406\u6570\u636e<\/strong><\/p>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u8bfb\u53d6\u548c\u5904\u7406\u8fd9\u4e9b\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">data = load(&#39;data.txt&#39;);<\/p>\n<p>result = mean(data);  % \u8ba1\u7b97\u5e73\u5747\u503c<\/p>\n<p>disp(result);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u8bfb\u53d6\u6570\u636e\u5e76\u8ba1\u7b97\u5176\u5e73\u5747\u503c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd4\u56de\u7ed3\u679c\u5230Python<\/strong><\/p>\n<\/p>\n<p><p>MATLAB\u5904\u7406\u5b8c\u6570\u636e\u540e\uff0c\u53ef\u4ee5\u5c06\u7ed3\u679c\u5199\u56de\u6587\u4ef6\uff0cPython\u518d\u8bfb\u53d6\u8fd9\u4e9b\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">save(&#39;result.txt&#39;, &#39;result&#39;, &#39;-ascii&#39;);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5728Python\u4e2d\u8bfb\u53d6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">result = np.loadtxt(&#39;result.txt&#39;)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u901a\u8fc7Web\u670d\u52a1\u63a5\u53e3<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528Web\u670d\u52a1\u63a5\u53e3\uff0c\u5141\u8bb8Python\u901a\u8fc7HTTP\u8bf7\u6c42\u4e0eMATLAB\u901a\u4fe1\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u8fdc\u7a0b\u8c03\u7528MATLAB\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u642d\u5efaWeb\u670d\u52a1<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528MATLAB Compiler SDK\u6765\u521b\u5efa\u4e00\u4e2aMATLAB\u7ec4\u4ef6\uff0c\u5e76\u5c06\u5176\u90e8\u7f72\u4e3aWeb\u670d\u52a1\u3002\u7136\u540e\u53ef\u4ee5\u901a\u8fc7HTTP\u8bf7\u6c42\u8bbf\u95ee\u8fd9\u4e2a\u670d\u52a1\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u8c03\u7528Web\u670d\u52a1<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684<code>requests<\/code>\u5e93\uff0c\u53ef\u4ee5\u53d1\u9001HTTP\u8bf7\u6c42\u5230MATLAB Web\u670d\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<p>response = requests.get(&#39;http:\/\/matlab-server:8080\/your-service&#39;)<\/p>\n<p>print(response.json())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\u5047\u8bbeMATLAB Web\u670d\u52a1\u8fd4\u56deJSON\u683c\u5f0f\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\uff0cPython\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fd0\u884cMATLAB\u4ee3\u7801\uff0c\u5305\u62ec\u4f7f\u7528MATLAB Engine API\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8c03\u7528\u3001\u6587\u4ef6\u4ea4\u6362\u6570\u636e\u548cWeb\u670d\u52a1\u63a5\u53e3\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8c03\u7528MATLAB\u4ee3\u7801\uff1f<\/strong><br \/>\u5728Python\u4e2d\u8fd0\u884cMATLAB\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>MATLAB Engine API for Python<\/code>\u6765\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86MATLAB\u548cMATLAB Engine API\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7<code>import matlab.engine<\/code>\u6765\u5bfc\u5165\u8be5\u6a21\u5757\uff0c\u7136\u540e\u4f7f\u7528<code>eng = matlab.engine.start_matlab()<\/code>\u542f\u52a8MATLAB\u5f15\u64ce\u3002\u4f7f\u7528<code>eng.eval()<\/code>\u53ef\u4ee5\u6267\u884cMATLAB\u547d\u4ee4\uff0c\u6216\u8005\u4f7f\u7528<code>eng.function_name()<\/code>\u6765\u8c03\u7528\u81ea\u5b9a\u4e49\u7684MATLAB\u51fd\u6570\u3002<\/p>\n<p><strong>Python\u4e0eMATLAB\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u9012\u5982\u4f55\u5b9e\u73b0\uff1f<\/strong><br \/>\u5728\u4f7f\u7528MATLAB Engine API\u65f6\uff0cPython\u4e0eMATLAB\u4e4b\u95f4\u7684\u6570\u636e\u4f20\u9012\u76f8\u5bf9\u7b80\u5355\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>matlab.double()<\/code>\u5c06Python\u6570\u636e\u8f6c\u6362\u4e3aMATLAB\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>eng.workspace[&#39;variable&#39;] = value<\/code>\u53ef\u4ee5\u5c06Python\u53d8\u91cf\u4f20\u9012\u5230MATLAB\u5de5\u4f5c\u7a7a\u95f4\u4e2d\uff0c\u800c<code>value = eng.workspace[&#39;variable&#39;]<\/code>\u5219\u53ef\u4ee5\u4eceMATLAB\u83b7\u53d6\u6570\u636e\u5230Python\u4e2d\u3002\u8fd9\u79cd\u65b9\u6cd5\u652f\u6301\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u6570\u7ec4\u548c\u5b57\u7b26\u4e32\u7b49\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u66ff\u4ee3MATLAB\u6709\u4ec0\u4e48\u4f18\u52bf\uff1f<\/strong><br \/>\u4f7f\u7528Python\u66ff\u4ee3MATLAB\u6709\u51e0\u4e2a\u660e\u663e\u7684\u4f18\u52bf\u3002\u9996\u5148\uff0cPython\u662f\u5f00\u6e90\u7684\uff0c\u7528\u6237\u4e0d\u9700\u8981\u652f\u4ed8\u9ad8\u6602\u7684\u8bb8\u53ef\u8bc1\u8d39\u7528\u3002\u5176\u6b21\uff0cPython\u62e5\u6709\u4e30\u5bcc\u7684\u5e93\u548c\u5de5\u5177\uff0c\u5982NumPy\u3001SciPy\u548cPandas\uff0c\u4f7f\u5f97\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u66f4\u52a0\u7075\u6d3b\u548c\u9ad8\u6548\u3002\u6700\u540e\uff0cPython\u793e\u533a\u6d3b\u8dc3\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u83b7\u53d6\u652f\u6301\u548c\u5206\u4eab\u8d44\u6e90\uff0c\u4ece\u800c\u52a0\u901f\u5f00\u53d1\u8fdb\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u8fd0\u884cMATLAB\u4ee3\u7801\uff0c\u5305\u62ec\u4f7f\u7528MATLAB Engine API\u3001\u8c03\u7528MATLAB [&hellip;]","protected":false},"author":3,"featured_media":935103,"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\/935101"}],"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=935101"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/935101\/revisions"}],"predecessor-version":[{"id":935105,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/935101\/revisions\/935105"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/935103"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=935101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=935101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=935101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}