{"id":1159541,"date":"2025-01-13T18:54:04","date_gmt":"2025-01-13T10:54:04","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1159541.html"},"modified":"2025-01-13T18:54:08","modified_gmt":"2025-01-13T10:54:08","slug":"matlab%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8python%e7%9a%84%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1159541.html","title":{"rendered":"matlab\u5982\u4f55\u8c03\u7528python\u7684\u7248\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25201245\/1080c0fb-3c3e-407d-b8d4-787c35596997.webp\" alt=\"matlab\u5982\u4f55\u8c03\u7528python\u7684\u7248\u672c\" \/><\/p>\n<p><p> <strong>MATLAB\u8c03\u7528Python\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u3001\u521b\u5efaPython\u51fd\u6570\u53e5\u67c4\u3001\u4f7f\u7528Python\u6a21\u5757\u548c\u5305\u3002<\/strong> \u5728\u8fd9\u51e0\u4e2a\u65b9\u6cd5\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u662f\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>py<\/code>\u547d\u4ee4<\/p>\n<\/p>\n<p><p><code>py<\/code>\u547d\u4ee4\u662fMATLAB\u63d0\u4f9b\u7684\u4e00\u4e2a\u63a5\u53e3\uff0c\u7528\u4e8e\u76f4\u63a5\u8c03\u7528Python\u51fd\u6570\u548c\u6a21\u5757\u3002\u901a\u8fc7<code>py<\/code>\u547d\u4ee4\uff0cMATLAB\u53ef\u4ee5\u8c03\u7528Python\u7684\u51fd\u6570\u3001\u7c7b\u3001\u6a21\u5757\u4ee5\u53ca\u5305\uff0c\u5e76\u5c06\u8fd4\u56de\u503c\u8f6c\u6362\u4e3a\u9002\u5f53\u7684MATLAB\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u914d\u7f6ePython\u73af\u5883<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u786e\u4fddMATLAB\u5df2\u7ecf\u6b63\u786e\u914d\u7f6e\u4e86Python\u73af\u5883\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770bMATLAB\u5f53\u524d\u4f7f\u7528\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">pyversion<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u66f4\u6539Python\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6307\u5b9aPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">pyversion(&#39;path_to_python_executable&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u8c03\u7528Python\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>example.py<\/code>\u7684Python\u811a\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(a, b):<\/p>\n<p>    return a + b<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u8c03\u7528\u8be5\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">result = py.example.add(3, 5);<\/p>\n<p>disp(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u8c03\u7528Python\u7c7b<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>example.py<\/code>\u7684Python\u811a\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    def __init__(self, value):<\/p>\n<p>        self.value = value<\/p>\n<p>    def get_value(self):<\/p>\n<p>        return self.value<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>py<\/code>\u547d\u4ee4\u5b9e\u4f8b\u5316\u8be5\u7c7b\u5e76\u8c03\u7528\u5176\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">obj = py.example.MyClass(10);<\/p>\n<p>value = obj.get_value();<\/p>\n<p>disp(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u521b\u5efaPython\u51fd\u6570\u53e5\u67c4<\/p>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efaPython\u51fd\u6570\u53e5\u67c4\u6765\u8c03\u7528Python\u51fd\u6570\u3002Python\u51fd\u6570\u53e5\u67c4\u662f\u4e00\u4e2aMATLAB\u5bf9\u8c61\uff0c\u8868\u793aPython\u51fd\u6570\u7684\u5f15\u7528\u3002\u53ef\u4ee5\u4f7f\u7528<code>@<\/code>\u7b26\u53f7\u521b\u5efaPython\u51fd\u6570\u53e5\u67c4\u3002<\/p>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u540d\u4e3a<code>example.py<\/code>\u7684Python\u811a\u672c\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def multiply(a, b):<\/p>\n<p>    return a * b<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u521b\u5efa\u8be5\u51fd\u6570\u7684\u53e5\u67c4\u5e76\u8c03\u7528\u5b83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">multiply_handle = @py.example.multiply;<\/p>\n<p>result = multiply_handle(3, 5);<\/p>\n<p>disp(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528Python\u6a21\u5757\u548c\u5305<\/p>\n<\/p>\n<p><p>MATLAB\u8fd8\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528Python\u7684\u6a21\u5757\u548c\u5305\u3002\u5047\u8bbe\u6211\u4eec\u8981\u4f7f\u7528Python\u7684<code>math<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8c03\u7528\u5176\u51fd\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">result = py.math.sqrt(16);<\/p>\n<p>disp(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u5904\u7406Python\u8fd4\u56de\u503c<\/p>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\u8c03\u7528Python\u51fd\u6570\u65f6\uff0c\u8fd4\u56de\u503c\u901a\u5e38\u662f\u4e00\u4e2aPython\u5bf9\u8c61\u3002\u53ef\u4ee5\u4f7f\u7528MATLAB\u63d0\u4f9b\u7684\u51fd\u6570\u5c06Python\u5bf9\u8c61\u8f6c\u6362\u4e3aMATLAB\u6570\u636e\u7c7b\u578b\u3002\u5e38\u7528\u7684\u8f6c\u6362\u51fd\u6570\u5305\u62ec<code>double<\/code>\u3001<code>char<\/code>\u3001<code>cell<\/code>\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">result = py.math.sqrt(16);<\/p>\n<p>matlab_result = double(result);<\/p>\n<p>disp(matlab_result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u9519\u8bef\u5904\u7406<\/p>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\u8c03\u7528Python\u51fd\u6570\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u9519\u8bef\u3002\u53ef\u4ee5\u4f7f\u7528<code>try-catch<\/code>\u7ed3\u6784\u6355\u83b7\u5e76\u5904\u7406\u8fd9\u4e9b\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">try<\/p>\n<p>    result = py.example.add(3, &#39;a&#39;);<\/p>\n<p>catch ME<\/p>\n<p>    disp(&#39;An error occurred:&#39;);<\/p>\n<p>    disp(ME.message);<\/p>\n<p>end<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/p>\n<\/p>\n<ol>\n<li><strong>MATLAB\u65e0\u6cd5\u627e\u5230Python\u89e3\u91ca\u5668<\/strong><\/li>\n<\/ol>\n<p><p>\u786e\u4fddPython\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u5e76\u5728\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002\u4f7f\u7528<code>pyversion<\/code>\u547d\u4ee4\u6307\u5b9aPython\u89e3\u91ca\u5668\u7684\u8def\u5f84\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>MATLAB\u65e0\u6cd5\u627e\u5230Python\u6a21\u5757<\/strong><\/li>\n<\/ol>\n<p><p>\u786e\u4fddPython\u6a21\u5757\u5df2\u6b63\u786e\u5b89\u88c5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u6a21\u5757\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-sh\">pip install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>MATLAB\u548cPython\u7248\u672c\u4e0d\u517c\u5bb9<\/strong><\/li>\n<\/ol>\n<p><p>\u786e\u4fddMATLAB\u652f\u6301\u7684Python\u7248\u672c\u4e0e\u5b89\u88c5\u7684Python\u7248\u672c\u4e00\u81f4\u3002\u53ef\u4ee5\u5728MATLAB\u5b98\u65b9\u7f51\u7ad9\u4e0a\u67e5\u627e\u652f\u6301\u7684Python\u7248\u672c\u5217\u8868\u3002<\/p>\n<\/p>\n<ol start=\"4\">\n<li><strong>Python\u8fd4\u56de\u503c\u7c7b\u578b\u4e0d\u5339\u914d<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u8c03\u7528Python\u51fd\u6570\u65f6\uff0c\u6ce8\u610f\u8fd4\u56de\u503c\u7684\u7c7b\u578b\uff0c\u5e76\u4f7f\u7528\u9002\u5f53\u7684MATLAB\u51fd\u6570\u8fdb\u884c\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u793a\u4f8b<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2aPython\u811a\u672c<code>data_processing.py<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>def process_data(data):<\/p>\n<p>    return np.mean(data), np.std(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u8c03\u7528\u8be5\u51fd\u6570\u5904\u7406\u6570\u636e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">data = [1, 2, 3, 4, 5];<\/p>\n<p>py_data = py.numpy.array(data);<\/p>\n<p>mean_std = py.data_processing.process_data(py_data);<\/p>\n<p>mean_value = double(mean_std{1});<\/p>\n<p>std_value = double(mean_std{2});<\/p>\n<p>disp([&#39;Mean: &#39;, num2str(mean_value)]);<\/p>\n<p>disp([&#39;Std: &#39;, num2str(std_value)]);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u56fe\u50cf\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2aPython\u811a\u672c<code>image_processing.py<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from PIL import Image<\/p>\n<p>def resize_image(image_path, size):<\/p>\n<p>    img = Image.open(image_path)<\/p>\n<p>    img = img.resize(size)<\/p>\n<p>    return img<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u8c03\u7528\u8be5\u51fd\u6570\u5904\u7406\u56fe\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">image_path = &#39;path_to_image.jpg&#39;;<\/p>\n<p>size = py.tuple({100, 100});<\/p>\n<p>resized_image = py.image_processing.resize_image(image_path, size);<\/p>\n<p>resized_image.show();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong><a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a><\/strong><\/li>\n<\/ol>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2aPython\u811a\u672c<code>machine_learning.py<\/code>\uff0c\u5176\u4e2d\u5305\u542b\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from sklearn.linear_model import LinearRegression<\/p>\n<p>import numpy as np<\/p>\n<p>def tr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n_model(x, y):<\/p>\n<p>    model = LinearRegression()<\/p>\n<p>    model.fit(x, y)<\/p>\n<p>    return model<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MATLAB\u4e2d\uff0c\u53ef\u4ee5\u8c03\u7528\u8be5\u51fd\u6570\u8bad\u7ec3\u6a21\u578b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-matlab\">x = [1, 2, 3, 4, 5]&#39;;<\/p>\n<p>y = [2, 4, 6, 8, 10]&#39;;<\/p>\n<p>py_x = py.numpy.array(x);<\/p>\n<p>py_y = py.numpy.array(y);<\/p>\n<p>model = py.machine_learning.train_model(py_x, py_y);<\/p>\n<p>coefficients = double(model.coef_);<\/p>\n<p>disp(&#39;Model coefficients:&#39;);<\/p>\n<p>disp(coefficients);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728MATLAB\u4e2d\u7075\u6d3b\u5730\u8c03\u7528Python\u51fd\u6570\u548c\u6a21\u5757\uff0c\u4ece\u800c\u5145\u5206\u5229\u7528Python\u7684\u5f3a\u5927\u529f\u80fd\u8fdb\u884c\u6570\u636e\u5904\u7406\u3001\u56fe\u50cf\u5904\u7406\u548c\u673a\u5668\u5b66\u4e60\u7b49\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u7684MATLAB\u7248\u672c\u662f\u5426\u652f\u6301Python\u8c03\u7528\uff1f<\/strong><br \/>\u8981\u786e\u8ba4\u60a8\u7684MATLAB\u7248\u672c\u662f\u5426\u652f\u6301Python\u8c03\u7528\uff0c\u60a8\u53ef\u4ee5\u5728MATLAB\u547d\u4ee4\u7a97\u53e3\u4e2d\u8f93\u5165 <code>version<\/code> \u547d\u4ee4\uff0c\u67e5\u770b\u5f53\u524d\u7684MATLAB\u7248\u672c\u3002\u901a\u5e38\uff0cMATLAB R2014b\u53ca\u4ee5\u4e0a\u7248\u672c\u5747\u652f\u6301\u4e0ePython\u7684\u63a5\u53e3\u3002\u5982\u679c\u60a8\u7684\u7248\u672c\u8f83\u65e7\uff0c\u5efa\u8bae\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u517c\u5bb9\u6027\u548c\u529f\u80fd\u3002<\/p>\n<p><strong>\u8c03\u7528Python\u51fd\u6570\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u8c03\u7528Python\u51fd\u6570\u4e4b\u524d\uff0c\u786e\u4fdd\u60a8\u5df2\u7ecf\u6b63\u786e\u5b89\u88c5\u4e86Python\uff0c\u5e76\u4e14\u5728MATLAB\u4e2d\u8bbe\u7f6e\u4e86Python\u7684\u8def\u5f84\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528 <code>pyenv<\/code> \u547d\u4ee4\u6765\u67e5\u770b\u548c\u8bbe\u7f6ePython\u73af\u5883\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u6240\u8c03\u7528\u7684Python\u5e93\u5df2\u5b89\u88c5\uff0c\u5e76\u4e14\u4e0eMATLAB\u7684\u7248\u672c\u517c\u5bb9\u3002\u82e5\u9047\u5230\u95ee\u9898\uff0c\u53ef\u4ee5\u53c2\u8003MATLAB\u7684\u5b98\u65b9\u6587\u6863\uff0c\u4e86\u89e3\u5982\u4f55\u89e3\u51b3\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\u3002<\/p>\n<p><strong>MATLAB\u4e0ePython\u7684\u4ea4\u4e92\u53ef\u4ee5\u5b9e\u73b0\u54ea\u4e9b\u529f\u80fd\uff1f<\/strong><br \/>\u901a\u8fc7MATLAB\u4e0ePython\u7684\u4ea4\u4e92\uff0c\u7528\u6237\u53ef\u4ee5\u5229\u7528Python\u7684\u5f3a\u5927\u5e93\u548c\u529f\u80fd\uff0c\u4f8b\u5982NumPy\u3001Pandas\u548cTensorFlow\u7b49\u3002\u8fd9\u79cd\u96c6\u6210\u4f7f\u5f97\u7528\u6237\u80fd\u591f\u5728MATLAB\u4e2d\u6267\u884cPython\u4ee3\u7801\uff0c\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u3001\u673a\u5668\u5b66\u4e60\u4efb\u52a1\uff0c\u751a\u81f3\u8fdb\u884c\u56fe\u50cf\u5904\u7406\u7b49\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u5145\u5206\u5229\u7528\u4e24\u79cd\u8bed\u8a00\u7684\u4f18\u70b9\uff0c\u589e\u5f3a\u60a8\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"MATLAB\u8c03\u7528Python\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528py\u547d\u4ee4\u3001\u521b\u5efaPython\u51fd\u6570\u53e5\u67c4\u3001\u4f7f\u7528Python\u6a21\u5757\u548c\u5305\u3002 \u5728 [&hellip;]","protected":false},"author":3,"featured_media":1159546,"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\/1159541"}],"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=1159541"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1159541\/revisions"}],"predecessor-version":[{"id":1159549,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1159541\/revisions\/1159549"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1159546"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1159541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1159541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1159541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}