{"id":1095471,"date":"2025-01-08T14:51:27","date_gmt":"2025-01-08T06:51:27","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1095471.html"},"modified":"2025-01-08T14:51:30","modified_gmt":"2025-01-08T06:51:30","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9a%e4%b9%89%e4%b8%80%e7%a7%8d%e8%bf%90%e7%ae%97%e6%a8%a1%e5%bc%8f-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1095471.html","title":{"rendered":"python\u5982\u4f55\u5b9a\u4e49\u4e00\u79cd\u8fd0\u7b97\u6a21\u5f0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24211112\/a0c37398-64d8-442c-b8d9-183eb34bd38c.webp\" alt=\"python\u5982\u4f55\u5b9a\u4e49\u4e00\u79cd\u8fd0\u7b97\u6a21\u5f0f\" \/><\/p>\n<p><p> <strong>Python\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528\u8fd0\u7b97\u7b26\u91cd\u8f7d\u3001\u5b9a\u4e49\u51fd\u6570\u548c\u65b9\u6cd5\u3001\u5229\u7528\u7c7b\u548c\u5bf9\u8c61\u3002<\/strong> \u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4e0d\u540c\u7684\u65b9\u5f0f\u6765\u5b9a\u4e49\u548c\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u8fd0\u7b97\u6a21\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u89e3\u91ca\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u5b9a\u4e49\u4e00\u79cd\u8fd0\u7b97\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8fd0\u7b97\u7b26\u91cd\u8f7d<\/h3>\n<\/p>\n<p><p>\u8fd0\u7b97\u7b26\u91cd\u8f7d\u662f\u6307\u901a\u8fc7\u5b9a\u4e49\u7279\u6b8a\u65b9\u6cd5\uff0c\u4f7f\u5f97\u81ea\u5b9a\u4e49\u7684\u7c7b\u5bf9\u8c61\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u8fd0\u7b97\u7b26\uff08\u5982+\u3001-\u3001*\u3001\/\u7b49\uff09\u3002\u8fd9\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u4e3a\u81ea\u5b9a\u4e49\u7c7b\u578b\u8d4b\u4e88\u65b0\u7684\u8fd0\u7b97\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h4>1.1\u3001\u5b9a\u4e49\u81ea\u5b9a\u4e49\u7c7b<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5b9a\u4e49\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7c7b\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u5b9a\u4e49\u4e00\u4e2a\u540d\u4e3a<code>Vector<\/code>\u7684\u7c7b\uff0c\u7528\u4e8e\u8868\u793a\u4e8c\u7ef4\u5411\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Vector:<\/p>\n<p>    def __init__(self, x, y):<\/p>\n<p>        self.x = x<\/p>\n<p>        self.y = y<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.2\u3001\u91cd\u8f7d\u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u7279\u6b8a\u65b9\u6cd5\u6765\u91cd\u8f7d\u8fd0\u7b97\u7b26\u3002\u4f8b\u5982\uff0c\u4e3a\u4e86\u91cd\u8f7d\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff0c\u6211\u4eec\u9700\u8981\u5b9a\u4e49<code>__add__<\/code>\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">    def __add__(self, other):<\/p>\n<p>        return Vector(self.x + other.x, self.y + other.y)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u540c\u6837\u5730\uff0c\u53ef\u4ee5\u91cd\u8f7d\u5176\u4ed6\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">    def __sub__(self, other):<\/p>\n<p>        return Vector(self.x - other.x, self.y - other.y)<\/p>\n<p>    def __mul__(self, scalar):<\/p>\n<p>        return Vector(self.x * scalar, self.y * scalar)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>1.3\u3001\u4f7f\u7528\u91cd\u8f7d\u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><p>\u73b0\u5728\uff0c\u6211\u4eec\u53ef\u4ee5\u50cf\u4f7f\u7528\u5185\u7f6e\u7c7b\u578b\u4e00\u6837\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">v1 = Vector(1, 2)<\/p>\n<p>v2 = Vector(3, 4)<\/p>\n<p>v3 = v1 + v2  # Vector(4, 6)<\/p>\n<p>v4 = v1 - v2  # Vector(-2, -2)<\/p>\n<p>v5 = v1 * 2   # Vector(2, 4)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b9a\u4e49\u51fd\u6570\u548c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u8fd0\u7b97\u7b26\u91cd\u8f7d\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u51fd\u6570\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7684\u8fd0\u7b97\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>2.1\u3001\u5b9a\u4e49\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u5b9e\u73b0\u7279\u5b9a\u7684\u8fd0\u7b97\u903b\u8f91\u3002\u4f8b\u5982\uff0c\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u8ba1\u7b97\u4e24\u4e2a\u5411\u91cf\u7684\u70b9\u79ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def dot_product(v1, v2):<\/p>\n<p>    return v1.x * v2.x + v1.y * v2.y<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2.2\u3001\u5b9a\u4e49\u7c7b\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u540c\u6837\uff0c\u53ef\u4ee5\u5728\u7c7b\u4e2d\u5b9a\u4e49\u65b9\u6cd5\u6765\u5b9e\u73b0\u7279\u5b9a\u7684\u8fd0\u7b97\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Vector:<\/p>\n<p>    # \u7701\u7565\u4e4b\u524d\u7684\u4ee3\u7801<\/p>\n<p>    def dot(self, other):<\/p>\n<p>        return self.x * other.x + self.y * other.y<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528\u7c7b\u548c\u5bf9\u8c61<\/h3>\n<\/p>\n<p><p>\u7c7b\u548c\u5bf9\u8c61\u662fPython\u4e2d\u5b9e\u73b0\u81ea\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u7684\u57fa\u7840\u3002\u901a\u8fc7\u5b9a\u4e49\u7c7b\u548c\u5bf9\u8c61\uff0c\u53ef\u4ee5\u521b\u5efa\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5e76\u4e3a\u5176\u5b9e\u73b0\u5404\u79cd\u8fd0\u7b97\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u5b9a\u4e49\u7c7b\u548c\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u7c7b\u6765\u8868\u793a\u77e9\u9635\uff0c\u5e76\u5b9e\u73b0\u77e9\u9635\u7684\u52a0\u6cd5\u3001\u4e58\u6cd5\u7b49\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Matrix:<\/p>\n<p>    def __init__(self, data):<\/p>\n<p>        self.data = data<\/p>\n<p>    def __add__(self, other):<\/p>\n<p>        result = []<\/p>\n<p>        for row1, row2 in zip(self.data, other.data):<\/p>\n<p>            result.append([a + b for a, b in zip(row1, row2)])<\/p>\n<p>        return Matrix(result)<\/p>\n<p>    def __mul__(self, other):<\/p>\n<p>        result = []<\/p>\n<p>        for row in self.data:<\/p>\n<p>            new_row = []<\/p>\n<p>            for i in range(len(other.data[0])):<\/p>\n<p>                new_row.append(sum(row[j] * other.data[j][i] for j in range(len(other.data))))<\/p>\n<p>            result.append(new_row)<\/p>\n<p>        return Matrix(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3.2\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u548c\u5bf9\u8c61<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u50cf\u4f7f\u7528\u5185\u7f6e\u7c7b\u578b\u4e00\u6837\u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u7c7b\u548c\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">m1 = Matrix([[1, 2], [3, 4]])<\/p>\n<p>m2 = Matrix([[5, 6], [7, 8]])<\/p>\n<p>m3 = m1 + m2  # Matrix([[6, 8], [10, 12]])<\/p>\n<p>m4 = m1 * m2  # Matrix([[19, 22], [43, 50]])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7ed3\u5408\u8fd0\u7b97\u7b26\u91cd\u8f7d\u548c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u7ed3\u5408\u8fd0\u7b97\u7b26\u91cd\u8f7d\u548c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5b9e\u73b0\u66f4\u52a0\u590d\u6742\u548c\u7075\u6d3b\u7684\u8fd0\u7b97\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>4.1\u3001\u5b9a\u4e49\u7c7b\u548c\u8fd0\u7b97\u7b26\u91cd\u8f7d<\/h4>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u5b9a\u4e49\u4e00\u4e2a\u590d\u6570\u7c7b\uff0c\u5e76\u91cd\u8f7d\u52a0\u6cd5\u3001\u51cf\u6cd5\u548c\u4e58\u6cd5\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Complex:<\/p>\n<p>    def __init__(self, real, imag):<\/p>\n<p>        self.real = real<\/p>\n<p>        self.imag = imag<\/p>\n<p>    def __add__(self, other):<\/p>\n<p>        return Complex(self.real + other.real, self.imag + other.imag)<\/p>\n<p>    def __sub__(self, other):<\/p>\n<p>        return Complex(self.real - other.real, self.imag - other.imag)<\/p>\n<p>    def __mul__(self, other):<\/p>\n<p>        real = self.real * other.real - self.imag * other.imag<\/p>\n<p>        imag = self.real * other.imag + self.imag * other.real<\/p>\n<p>        return Complex(real, imag)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2\u3001\u5b9a\u4e49\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u4e3a\u590d\u6570\u7c7b\u5b9a\u4e49\u65b9\u6cd5\uff0c\u4f8b\u5982\u8ba1\u7b97\u6a21\u548c\u76f8\u4f4d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>class Complex:<\/p>\n<p>    # \u7701\u7565\u4e4b\u524d\u7684\u4ee3\u7801<\/p>\n<p>    def magnitude(self):<\/p>\n<p>        return math.sqrt(self.real &lt;strong&gt; 2 + self.imag &lt;\/strong&gt; 2)<\/p>\n<p>    def phase(self):<\/p>\n<p>        return math.atan2(self.imag, self.real)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.3\u3001\u4f7f\u7528\u7c7b\u548c\u65b9\u6cd5<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u5b9a\u4e49\u7684\u590d\u6570\u7c7b\u53ca\u5176\u8fd0\u7b97\u7b26\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">c1 = Complex(3, 4)<\/p>\n<p>c2 = Complex(1, 2)<\/p>\n<p>c3 = c1 + c2  # Complex(4, 6)<\/p>\n<p>c4 = c1 - c2  # Complex(2, 2)<\/p>\n<p>c5 = c1 * c2  # Complex(-5, 10)<\/p>\n<p>magnitude = c1.magnitude()  # 5.0<\/p>\n<p>phase = c1.phase()          # 0.9272952180016122 (radians)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd0\u7b97\u7b26\u91cd\u8f7d\u3001\u5b9a\u4e49\u51fd\u6570\u548c\u65b9\u6cd5\u3001\u5229\u7528\u7c7b\u548c\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u5b9a\u4e49\u548c\u5b9e\u73b0\u5404\u79cd\u81ea\u5b9a\u4e49\u7684\u8fd0\u7b97\u6a21\u5f0f\u3002\u8fd9\u4e9b\u6280\u672f\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\uff0c\u4f7f\u5f97\u6211\u4eec\u53ef\u4ee5\u4e3a\u81ea\u5b9a\u4e49\u7c7b\u578b\u8d4b\u4e88\u4e0e\u5185\u7f6e\u7c7b\u578b\u7c7b\u4f3c\u7684\u64cd\u4f5c\u80fd\u529b\uff0c\u4ece\u800c\u5b9e\u73b0\u590d\u6742\u7684\u6570\u636e\u5904\u7406\u548c\u8ba1\u7b97\u903b\u8f91\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u548c\u6280\u672f\uff0c\u80fd\u591f\u6709\u6548\u5730\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\u521b\u5efa\u81ea\u5b9a\u4e49\u8fd0\u7b97\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u7279\u6b8a\u65b9\u6cd5\u6765\u521b\u5efa\u81ea\u5b9a\u4e49\u8fd0\u7b97\u7b26\u3002\u8fd9\u4e9b\u65b9\u6cd5\u4ee5\u53cc\u4e0b\u5212\u7ebf\u5f00\u5934\u548c\u7ed3\u5c3e\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u91cd\u8f7d\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff08+\uff09\u7684\u884c\u4e3a\uff0c\u901a\u8fc7\u5728\u7c7b\u4e2d\u5b9a\u4e49<code>__add__<\/code>\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">class MyNumber:\n    def __init__(self, value):\n        self.value = value\n    \n    def __add__(self, other):\n        return MyNumber(self.value + other.value)\n\nnum1 = MyNumber(10)\nnum2 = MyNumber(20)\nresult = num1 + num2  # \u4f7f\u7528\u81ea\u5b9a\u4e49\u7684\u52a0\u6cd5\u8fd0\u7b97\nprint(result.value)  # \u8f93\u51fa30\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u5b9a\u4e49\u591a\u79cd\u8fd0\u7b97\u6a21\u5f0f\uff0c\u4f7f\u60a8\u7684\u7c7b\u80fd\u591f\u4ee5\u66f4\u52a0\u76f4\u89c2\u7684\u65b9\u5f0f\u8fdb\u884c\u8fd0\u7b97\u3002<\/p>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u8fd0\u7b97\u7b26\u91cd\u8f7d\u529f\u80fd\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u8fd0\u7b97\u7b26\u7684\u91cd\u8f7d\uff0c\u5141\u8bb8\u60a8\u4e3a\u81ea\u5b9a\u4e49\u7c7b\u5b9a\u4e49\u7279\u5b9a\u7684\u884c\u4e3a\u3002\u5e38\u7528\u7684\u8fd0\u7b97\u7b26\u5305\u62ec\u52a0\u6cd5\uff08<code>__add__<\/code>\uff09\u3001\u51cf\u6cd5\uff08<code>__sub__<\/code>\uff09\u3001\u4e58\u6cd5\uff08<code>__mul__<\/code>\uff09\u3001\u9664\u6cd5\uff08<code>__truediv__<\/code>\uff09\u7b49\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u91cd\u8f7d\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff0c\u5982\u7b49\u4e8e\uff08<code>__eq__<\/code>\uff09\u3001\u4e0d\u7b49\u4e8e\uff08<code>__ne__<\/code>\uff09\u7b49\u3002\u901a\u8fc7\u91cd\u8f7d\u8fd9\u4e9b\u8fd0\u7b97\u7b26\uff0c\u60a8\u53ef\u4ee5\u8ba9\u81ea\u5b9a\u4e49\u5bf9\u8c61\u53c2\u4e0e\u66f4\u590d\u6742\u7684\u8fd0\u7b97\u548c\u6bd4\u8f83\u3002<\/p>\n<p><strong>\u81ea\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u4f1a\u5f71\u54cd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u5417\uff1f<\/strong><br \/>\u5b9a\u4e49\u81ea\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u786e\u5b9e\u53ef\u80fd\u5f71\u54cd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u867d\u7136\u8fd0\u7b97\u7b26\u91cd\u8f7d\u53ef\u4ee5\u8ba9\u4ee3\u7801\u66f4\u7b80\u6d01\u3001\u66f4\u76f4\u89c2\uff0c\u4f46\u8fc7\u5ea6\u4f7f\u7528\u53ef\u80fd\u5bfc\u81f4\u4ee3\u7801\u96be\u4ee5\u7406\u89e3\u3002\u5efa\u8bae\u5728\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u65f6\u4fdd\u6301\u7b80\u5355\u660e\u4e86\uff0c\u786e\u4fdd\u7528\u6237\u80fd\u591f\u8f7b\u677e\u7406\u89e3\u5bf9\u8c61\u7684\u884c\u4e3a\u3002\u5728\u6587\u6863\u4e2d\u6e05\u6670\u8bf4\u660e\u6bcf\u4e2a\u81ea\u5b9a\u4e49\u8fd0\u7b97\u7b26\u7684\u610f\u56fe\u548c\u4f7f\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5176\u4ed6\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u4f7f\u7528\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b9a\u4e49\u8fd0\u7b97\u6a21\u5f0f\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528\u8fd0\u7b97\u7b26\u91cd\u8f7d\u3001\u5b9a\u4e49\u51fd\u6570\u548c\u65b9\u6cd5\u3001\u5229\u7528\u7c7b\u548c\u5bf9\u8c61\u3002 \u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7 [&hellip;]","protected":false},"author":3,"featured_media":1095482,"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\/1095471"}],"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=1095471"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1095471\/revisions"}],"predecessor-version":[{"id":1095483,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1095471\/revisions\/1095483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1095482"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1095471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1095471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1095471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}