{"id":976941,"date":"2024-12-27T06:25:35","date_gmt":"2024-12-26T22:25:35","guid":{"rendered":""},"modified":"2024-12-27T06:25:37","modified_gmt":"2024-12-26T22:25:37","slug":"python%e5%a6%82%e4%bd%95%e4%ba%92%e7%9b%b8%e8%b0%83%e7%94%a8%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/976941.html","title":{"rendered":"python\u5982\u4f55\u4e92\u76f8\u8c03\u7528\u65b9\u6cd5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24202425\/ca0426ca-c2a6-477a-86b2-b9ec0b93f49a.webp\" alt=\"python\u5982\u4f55\u4e92\u76f8\u8c03\u7528\u65b9\u6cd5\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u4e92\u76f8\u8c03\u7528\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u591a\u4e2a\u7c7b\u548c\u5b9e\u4f8b\u5bf9\u8c61\u3001\u4f7f\u7528\u7c7b\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\u3001\u4ee5\u53ca\u5728\u540c\u4e00\u4e2a\u7c7b\u4e2d\u5b9a\u4e49\u65b9\u6cd5\u5e76\u901a\u8fc7\u5b9e\u4f8b\u8fdb\u884c\u8c03\u7528\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u5305\u62ec\u4f7f\u7528\u5b9e\u4f8b\u65b9\u6cd5\u3001\u7c7b\u65b9\u6cd5\u4ee5\u53ca\u6a21\u5757\u4e4b\u95f4\u7684\u5bfc\u5165\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5b9e\u73b0\u65b9\u5f0f\uff0c\u4ee5\u53ca\u5b83\u4eec\u5728\u4e0d\u540c\u573a\u666f\u4e2d\u7684\u5e94\u7528\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b9e\u4f8b\u65b9\u6cd5\u7684\u4e92\u76f8\u8c03\u7528<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b9e\u4f8b\u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u4e92\u76f8\u8c03\u7528\u65b9\u5f0f\u3002\u5f53\u4e24\u4e2a\u65b9\u6cd5\u5c5e\u4e8e\u540c\u4e00\u4e2a\u7c7b\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b9e\u4f8b\u5bf9\u8c61\u5728\u7c7b\u5185\u90e8\u76f4\u63a5\u8c03\u7528\u53e6\u4e00\u4e2a\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b9e\u4f8b\u65b9\u6cd5\u57fa\u7840<\/strong><\/li>\n<\/ol>\n<p><p>\u5b9e\u4f8b\u65b9\u6cd5\u662f\u7c7b\u7684\u5b9e\u4f8b\u5316\u5bf9\u8c61\u53ef\u4ee5\u8c03\u7528\u7684\u65b9\u6cd5\u3002\u6bcf\u4e2a\u5b9e\u4f8b\u65b9\u6cd5\u81f3\u5c11\u6709\u4e00\u4e2a\u53c2\u6570\u2014\u2014\u901a\u5e38\u88ab\u547d\u540d\u4e3a<code>self<\/code>\u3002\u8fd9\u662f\u4e00\u4e2a\u5bf9\u5b9e\u4f8b\u672c\u8eab\u7684\u5f15\u7528\uff0c\u5b83\u5141\u8bb8\u65b9\u6cd5\u8bbf\u95ee\u7c7b\u4e2d\u7684\u5176\u4ed6\u5c5e\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    def method_one(self):<\/p>\n<p>        print(&quot;Method One is called&quot;)<\/p>\n<p>        self.method_two()<\/p>\n<p>    def method_two(self):<\/p>\n<p>        print(&quot;Method Two is called&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>method_one<\/code>\u8c03\u7528\u4e86<code>method_two<\/code>\uff0c\u8fd9\u5c31\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u4f8b\u65b9\u6cd5\u4e92\u76f8\u8c03\u7528\u7684\u4f8b\u5b50\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u5b9e\u4f8b\u65b9\u6cd5\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u4f7f\u7528<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5b9e\u4f8b\u65b9\u6cd5\u7684\u4e92\u76f8\u8c03\u7528\u901a\u5e38\u7528\u4e8e\u5728\u4e0d\u540c\u7684\u529f\u80fd\u5757\u4e4b\u95f4\u4f20\u9012\u63a7\u5236\uff0c\u6216\u8005\u5728\u4e00\u4e2a\u529f\u80fd\u5757\u4e2d\u7ec4\u5408\u591a\u4e2a\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\u7c7b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Calculator:<\/p>\n<p>    def add(self, a, b):<\/p>\n<p>        return a + b<\/p>\n<p>    def subtract(self, a, b):<\/p>\n<p>        return a - b<\/p>\n<p>    def calculate(self, a, b):<\/p>\n<p>        sum_result = self.add(a, b)<\/p>\n<p>        subtract_result = self.subtract(a, b)<\/p>\n<p>        return sum_result, subtract_result<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>calculate<\/code>\u65b9\u6cd5\u901a\u8fc7\u8c03\u7528<code>add<\/code>\u548c<code>subtract<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u5bf9\u4e24\u4e2a\u6570\u7684\u52a0\u51cf\u8fd0\u7b97\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u7c7b\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\u7684\u4e92\u76f8\u8c03\u7528<\/p>\n<\/p>\n<p><p>\u7c7b\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\u662fPython\u4e2d\u4e24\u79cd\u7279\u6b8a\u7c7b\u578b\u7684\u65b9\u6cd5\uff0c\u5b83\u4eec\u4e0d\u4f9d\u8d56\u4e8e\u7c7b\u7684\u5b9e\u4f8b\u5316\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7c7b\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p>\u7c7b\u65b9\u6cd5\u662f\u4f7f\u7528<code>@classmethod<\/code>\u88c5\u9970\u5668\u5b9a\u4e49\u7684\u65b9\u6cd5\u3002\u5b83\u63a5\u6536\u7c7b\u4f5c\u4e3a\u9690\u5f0f\u7684\u7b2c\u4e00\u4e2a\u53c2\u6570\uff0c\u901a\u5e38\u88ab\u547d\u540d\u4e3a<code>cls<\/code>\uff0c\u5141\u8bb8\u8bbf\u95ee\u7c7b\u7684\u5c5e\u6027\u548c\u5176\u4ed6\u7c7b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    class_variable = &quot;Hello&quot;<\/p>\n<p>    @classmethod<\/p>\n<p>    def class_method(cls):<\/p>\n<p>        print(cls.class_variable)<\/p>\n<p>        cls.other_class_method()<\/p>\n<p>    @classmethod<\/p>\n<p>    def other_class_method(cls):<\/p>\n<p>        print(&quot;This is another class method.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>class_method<\/code>\u8c03\u7528\u4e86<code>other_class_method<\/code>\uff0c\u5e76\u4e14\u8bbf\u95ee\u4e86\u7c7b\u53d8\u91cf<code>class_variable<\/code>\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9759\u6001\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p>\u9759\u6001\u65b9\u6cd5\u662f\u4f7f\u7528<code>@staticmethod<\/code>\u88c5\u9970\u5668\u5b9a\u4e49\u7684\u65b9\u6cd5\u3002\u5b83\u4e0d\u63a5\u6536\u7c7b\u6216\u5b9e\u4f8b\u4f5c\u4e3a\u53c2\u6570\uff0c\u56e0\u6b64\u4e0d\u80fd\u8bbf\u95ee\u6216\u4fee\u6539\u7c7b\u7684\u72b6\u6001\u3002\u5b83\u4eec\u7c7b\u4f3c\u4e8e\u666e\u901a\u51fd\u6570\uff0c\u53ea\u662f\u5b83\u4eec\u5728\u7c7b\u7684\u547d\u540d\u7a7a\u95f4\u5185\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    @staticmethod<\/p>\n<p>    def static_method():<\/p>\n<p>        print(&quot;This is a static method.&quot;)<\/p>\n<p>        MyClass.other_static_method()<\/p>\n<p>    @staticmethod<\/p>\n<p>    def other_static_method():<\/p>\n<p>        print(&quot;This is another static method.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>static_method<\/code>\u8c03\u7528\u4e86<code>other_static_method<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6a21\u5757\u4e4b\u95f4\u7684\u65b9\u6cd5\u4e92\u76f8\u8c03\u7528<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u7c7b\u5185\u90e8\u7684\u65b9\u6cd5\u8c03\u7528\uff0cPython\u8fd8\u5141\u8bb8\u5728\u4e0d\u540c\u7684\u6a21\u5757\u4e4b\u95f4\u4e92\u76f8\u8c03\u7528\u65b9\u6cd5\u3002\u8fd9\u901a\u5e38\u901a\u8fc7\u5bfc\u5165\u6a21\u5757\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5bfc\u5165\u6a21\u5757<\/strong><\/li>\n<\/ol>\n<p><p>Python\u5141\u8bb8\u5728\u4e00\u4e2a\u6a21\u5757\u4e2d\u5bfc\u5165\u53e6\u4e00\u4e2a\u6a21\u5757\uff0c\u4ee5\u8bbf\u95ee\u5176\u65b9\u6cd5\u548c\u7c7b\u3002\u5047\u8bbe\u6211\u4eec\u6709\u4e24\u4e2a\u6a21\u5757\uff0c<code>module_one.py<\/code>\u548c<code>module_two.py<\/code>\u3002<\/p>\n<\/p>\n<p><p><code>module_one.py<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def greet():<\/p>\n<p>    print(&quot;Hello from module one!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>module_two.py<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import module_one<\/p>\n<p>def call_greet():<\/p>\n<p>    module_one.greet()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>module_two.py<\/code>\u901a\u8fc7\u5bfc\u5165<code>module_one<\/code>\u6a21\u5757\u5e76\u8c03\u7528<code>greet<\/code>\u65b9\u6cd5\uff0c\u5b9e\u73b0\u4e86\u6a21\u5757\u95f4\u7684\u65b9\u6cd5\u8c03\u7528\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6a21\u5757\u5bfc\u5165\u7684\u5b9e\u9645\u5e94\u7528<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5927\u578b\u9879\u76ee\u4e2d\uff0c\u4ee3\u7801\u901a\u5e38\u88ab\u5206\u5272\u6210\u591a\u4e2a\u6a21\u5757\u4ee5\u63d0\u9ad8\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u91cd\u7528\u6027\u3002\u901a\u8fc7\u6a21\u5757\u95f4\u7684\u5bfc\u5165\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u4e0d\u540c\u6a21\u5757\u95f4\u7684\u529f\u80fd\u8c03\u7528\u3002\u4f8b\u5982\uff0c\u5728Web\u5e94\u7528\u7a0b\u5e8f\u4e2d\uff0c\u4e00\u4e2a\u6a21\u5757\u53ef\u80fd\u8d1f\u8d23\u5904\u7406\u7528\u6237\u8bf7\u6c42\uff0c\u53e6\u4e00\u4e2a\u6a21\u5757\u53ef\u80fd\u8d1f\u8d23\u5904\u7406\u6570\u636e\u5e93\u64cd\u4f5c\uff0c\u901a\u8fc7\u76f8\u4e92\u8c03\u7528\uff0c\u5b9e\u73b0\u5b8c\u6574\u7684\u529f\u80fd\u94fe\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u6700\u4f73\u5b9e\u8df5<\/p>\n<\/p>\n<ol>\n<li><strong>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u7c7b\u578b<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u9009\u62e9\u65b9\u6cd5\u7c7b\u578b\u65f6\uff0c\u5e94\u6839\u636e\u9700\u8981\u8bbf\u95ee\u6216\u4fee\u6539\u7c7b\u72b6\u6001\u7684\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002\u5982\u679c\u9700\u8981\u8bbf\u95ee\u6216\u4fee\u6539\u7c7b\u5c5e\u6027\uff0c\u4f7f\u7528\u7c7b\u65b9\u6cd5\uff1b\u5982\u679c\u4e0d\u9700\u8981\uff0c\u4f7f\u7528\u9759\u6001\u65b9\u6cd5\u6216\u5b9e\u4f8b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u907f\u514d\u5faa\u73af\u8c03\u7528<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u8bbe\u8ba1\u65b9\u6cd5\u4e92\u76f8\u8c03\u7528\u65f6\uff0c\u9700\u5c0f\u5fc3\u907f\u514d\u5faa\u73af\u8c03\u7528\uff0c\u8fd9\u4f1a\u5bfc\u81f4\u65e0\u9650\u9012\u5f52\u548c\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6a21\u5757\u5316\u8bbe\u8ba1<\/strong><\/li>\n<\/ol>\n<p><p>\u5408\u7406\u7684\u6a21\u5757\u5316\u8bbe\u8ba1\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u8bfb\u6027\u3002\u901a\u8fc7\u6a21\u5757\u95f4\u7684\u4e92\u76f8\u8c03\u7528\uff0c\u53ef\u4ee5\u5b9e\u73b0\u590d\u6742\u7684\u529f\u80fd\u7ec4\u5408\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u6709\u6548\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u4ee3\u7801\uff0c\u4f7f\u5176\u66f4\u52a0\u7b80\u6d01\u548c\u9ad8\u6548\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\u65b9\u6cd5\u95f4\u7684\u4e92\u76f8\u8c03\u7528\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u5f0f\u662f\u5173\u952e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u65b9\u6cd5\u4e4b\u95f4\u7684\u8c03\u7528\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u65b9\u6cd5\u4e4b\u95f4\u7684\u8c03\u7528\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u5f15\u7528\u65b9\u6cd5\u540d\u5b9e\u73b0\u3002\u65e0\u8bba\u662f\u540c\u4e00\u4e2a\u7c7b\u4e2d\u7684\u65b9\u6cd5\u8fd8\u662f\u4e0d\u540c\u7c7b\u4e2d\u7684\u65b9\u6cd5\uff0c\u53ea\u9700\u786e\u4fdd\u8c03\u7528\u65f6\u4f20\u9012\u6b63\u786e\u7684\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u5728\u4e00\u4e2a\u7c7b\u4e2d\u5b9a\u4e49\u4e24\u4e2a\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728\u4e00\u4e2a\u65b9\u6cd5\u5185\u90e8\u76f4\u63a5\u8c03\u7528\u53e6\u4e00\u4e2a\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u7c7b\u4e0e\u5bf9\u8c61\u5982\u4f55\u5f71\u54cd\u65b9\u6cd5\u8c03\u7528\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u65b9\u6cd5\u8c03\u7528\u901a\u5e38\u4e0e\u7c7b\u548c\u5bf9\u8c61\u7684\u5173\u7cfb\u5bc6\u5207\u76f8\u5173\u3002\u5f53\u60a8\u521b\u5efa\u4e00\u4e2a\u5bf9\u8c61\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u8be5\u5bf9\u8c61\u8c03\u7528\u7c7b\u4e2d\u7684\u65b9\u6cd5\u3002\u5982\u679c\u65b9\u6cd5\u662f\u5b9e\u4f8b\u65b9\u6cd5\uff0c\u9700\u8981\u4f7f\u7528\u5bf9\u8c61\u6765\u8c03\u7528\uff1b\u5982\u679c\u662f\u7c7b\u65b9\u6cd5\u6216\u9759\u6001\u65b9\u6cd5\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u7c7b\u540d\u76f4\u63a5\u8c03\u7528\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u5728\u4e00\u4e2a\u65b9\u6cd5\u4e2d\u8c03\u7528\u81ea\u8eab\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u65b9\u6cd5\u53ef\u4ee5\u9012\u5f52\u8c03\u7528\u81ea\u8eab\uff0c\u8fd9\u5728\u5904\u7406\u67d0\u4e9b\u7b97\u6cd5\uff08\u5982\u9636\u4e58\u8ba1\u7b97\u6216\u6590\u6ce2\u90a3\u5951\u6570\u5217\uff09\u65f6\u975e\u5e38\u6709\u7528\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u4f7f\u7528\u9012\u5f52\u65f6\uff0c\u786e\u4fdd\u8bbe\u5b9a\u597d\u7ec8\u6b62\u6761\u4ef6\uff0c\u4ee5\u907f\u514d\u65e0\u9650\u9012\u5f52\u5bfc\u81f4\u7a0b\u5e8f\u5d29\u6e83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u4e92\u76f8\u8c03\u7528\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u591a\u4e2a\u7c7b\u548c\u5b9e\u4f8b\u5bf9\u8c61\u3001\u4f7f\u7528\u7c7b\u65b9\u6cd5\u548c\u9759\u6001\u65b9\u6cd5\u3001\u4ee5\u53ca\u5728\u540c\u4e00\u4e2a\u7c7b\u4e2d\u5b9a\u4e49\u65b9\u6cd5\u5e76\u901a [&hellip;]","protected":false},"author":3,"featured_media":976954,"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\/976941"}],"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=976941"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976941\/revisions"}],"predecessor-version":[{"id":976957,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976941\/revisions\/976957"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/976954"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=976941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=976941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=976941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}