{"id":1060206,"date":"2024-12-31T15:31:57","date_gmt":"2024-12-31T07:31:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1060206.html"},"modified":"2024-12-31T15:31:59","modified_gmt":"2024-12-31T07:31:59","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%9c%a8%e5%87%bd%e6%95%b0%e9%87%8c%e8%b0%83%e7%94%a8%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1060206.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5728\u51fd\u6570\u91cc\u8c03\u7528\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/da9b5017-8fae-4a28-8b46-9fd0d0246340.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u4e2d\u5982\u4f55\u5728\u51fd\u6570\u91cc\u8c03\u7528\u51fd\u6570\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\u5728\u51fd\u6570\u5185\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\uff1a\u76f4\u63a5\u8c03\u7528\u3001\u5d4c\u5957\u51fd\u6570\u3001\u901a\u8fc7\u53c2\u6570\u4f20\u9012\u51fd\u6570\u3001\u4f7f\u7528\u95ed\u5305\u548c\u88c5\u9970\u5668\u7b49\u3002<strong>\u76f4\u63a5\u8c03\u7528\u3001\u5d4c\u5957\u51fd\u6570\u3001\u901a\u8fc7\u53c2\u6570\u4f20\u9012\u51fd\u6570<\/strong>\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u76f4\u63a5\u8c03\u7528\u662f\u6307\u5728\u4e00\u4e2a\u51fd\u6570\u5185\u90e8\u76f4\u63a5\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u548c\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u63d0\u4f9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u76f4\u63a5\u8c03\u7528<\/h3>\n<\/p>\n<p><p>\u76f4\u63a5\u8c03\u7528\u662f\u6307\u5728\u4e00\u4e2a\u51fd\u6570\u5185\u90e8\u76f4\u63a5\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u548c\u7b80\u5355\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def outer_function():<\/p>\n<p>    print(&quot;This is the outer function&quot;)<\/p>\n<p>    def inner_function():<\/p>\n<p>        print(&quot;This is the inner function&quot;)<\/p>\n<p>    inner_function()<\/p>\n<p>outer_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>inner_function<\/code> \u88ab\u76f4\u63a5\u5728 <code>outer_function<\/code> \u5185\u90e8\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5d4c\u5957\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u5d4c\u5957\u51fd\u6570\u662f\u6307\u5728\u4e00\u4e2a\u51fd\u6570\u5185\u90e8\u5b9a\u4e49\u53e6\u4e00\u4e2a\u51fd\u6570\u3002\u5d4c\u5957\u51fd\u6570\u53ef\u4ee5\u8bbf\u95ee\u5176\u5916\u90e8\u51fd\u6570\u7684\u53d8\u91cf\u548c\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def outer_function(x):<\/p>\n<p>    def inner_function(y):<\/p>\n<p>        return x + y<\/p>\n<p>    result = inner_function(5)<\/p>\n<p>    print(result)<\/p>\n<p>outer_function(10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>inner_function<\/code> \u662f <code>outer_function<\/code> \u7684\u5d4c\u5957\u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u8bbf\u95ee <code>outer_function<\/code> \u7684\u53c2\u6570 <code>x<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u53c2\u6570\u4f20\u9012\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u5c06\u4e00\u4e2a\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9\u53e6\u4e00\u4e2a\u51fd\u6570\uff0c\u5e76\u5728\u88ab\u8c03\u7528\u7684\u51fd\u6570\u4e2d\u6267\u884c\u5b83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(x, y):<\/p>\n<p>    return x + y<\/p>\n<p>def operate(func, x, y):<\/p>\n<p>    return func(x, y)<\/p>\n<p>result = operate(add, 10, 5)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>add<\/code> \u51fd\u6570\u88ab\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9 <code>operate<\/code> \u51fd\u6570\uff0c\u5e76\u5728 <code>operate<\/code> \u51fd\u6570\u4e2d\u88ab\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u95ed\u5305<\/h3>\n<\/p>\n<p><p>\u95ed\u5305\u662f\u6307\u4e00\u4e2a\u51fd\u6570\u5bf9\u8c61\uff0c\u5373\u4f7f\u5728\u5176\u8bcd\u6cd5\u4f5c\u7528\u57df\u5916\u88ab\u8c03\u7528\u65f6\uff0c\u4ecd\u7136\u80fd\u591f\u8bbf\u95ee\u5176\u8bcd\u6cd5\u4f5c\u7528\u57df\u5185\u7684\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def outer_function(x):<\/p>\n<p>    def inner_function(y):<\/p>\n<p>        return x + y<\/p>\n<p>    return inner_function<\/p>\n<p>closure = outer_function(10)<\/p>\n<p>result = closure(5)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>outer_function<\/code> \u8fd4\u56de <code>inner_function<\/code>\uff0c\u5e76\u4e14 <code>inner_function<\/code> \u4fdd\u7559\u4e86\u5bf9 <code>x<\/code> \u7684\u8bbf\u95ee\u6743\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u88c5\u9970\u5668<\/h3>\n<\/p>\n<p><p>\u88c5\u9970\u5668\u662f\u4e00\u4e2a\u51fd\u6570\uff0c\u5b83\u63a5\u6536\u53e6\u4e00\u4e2a\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u51fd\u6570\u3002\u88c5\u9970\u5668\u5e38\u7528\u4e8e\u5728\u4e0d\u4fee\u6539\u539f\u51fd\u6570\u4ee3\u7801\u7684\u60c5\u51b5\u4e0b\uff0c\u589e\u52a0\u989d\u5916\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def my_decorator(func):<\/p>\n<p>    def wrapper():<\/p>\n<p>        print(&quot;Something is happening before the function is called.&quot;)<\/p>\n<p>        func()<\/p>\n<p>        print(&quot;Something is happening after the function is called.&quot;)<\/p>\n<p>    return wrapper<\/p>\n<p>@my_decorator<\/p>\n<p>def say_hello():<\/p>\n<p>    print(&quot;Hello!&quot;)<\/p>\n<p>say_hello()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>my_decorator<\/code> \u662f\u4e00\u4e2a\u88c5\u9970\u5668\uff0c\u5b83\u5728 <code>say_hello<\/code> \u51fd\u6570\u7684\u524d\u540e\u6dfb\u52a0\u4e86\u989d\u5916\u7684\u6253\u5370\u8bed\u53e5\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u9012\u5f52\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u9012\u5f52\u51fd\u6570\u662f\u6307\u4e00\u4e2a\u51fd\u6570\u5728\u5176\u5185\u90e8\u8c03\u7528\u81ea\u5df1\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u89e3\u51b3\u5206\u6cbb\u95ee\u9898\uff0c\u5982\u8ba1\u7b97\u9636\u4e58\u3001\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def factorial(n):<\/p>\n<p>    if n == 1:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return n * factorial(n-1)<\/p>\n<p>result = factorial(5)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>factorial<\/code> \u51fd\u6570\u901a\u8fc7\u9012\u5f52\u7684\u65b9\u5f0f\u8ba1\u7b97\u9636\u4e58\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528\u7c7b\u548c\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u5728\u4e00\u4e2a\u65b9\u6cd5\u4e2d\u8c03\u7528\u540c\u4e00\u4e2a\u7c7b\u4e2d\u7684\u53e6\u4e00\u4e2a\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    def method1(self):<\/p>\n<p>        print(&quot;This is method1&quot;)<\/p>\n<p>    def method2(self):<\/p>\n<p>        print(&quot;This is method2&quot;)<\/p>\n<p>        self.method1()<\/p>\n<p>obj = MyClass()<\/p>\n<p>obj.method2()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>method2<\/code> \u8c03\u7528\u4e86 <code>method1<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u533f\u540d\u51fd\u6570\uff08Lambda\uff09<\/h3>\n<\/p>\n<p><p>\u533f\u540d\u51fd\u6570\u662f\u4e00\u79cd\u6ca1\u6709\u540d\u5b57\u7684\u51fd\u6570\uff0c\u901a\u5e38\u7528\u4e8e\u77ed\u5c0f\u7684\u51fd\u6570\u3002\u53ef\u4ee5\u5728\u51fd\u6570\u5185\u90e8\u5b9a\u4e49\u5e76\u8c03\u7528\u533f\u540d\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def outer_function(x):<\/p>\n<p>    inner_function = lambda y: x + y<\/p>\n<p>    result = inner_function(5)<\/p>\n<p>    print(result)<\/p>\n<p>outer_function(10)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>inner_function<\/code> \u662f\u4e00\u4e2a\u533f\u540d\u51fd\u6570\uff0c\u901a\u8fc7 <code>lambda<\/code> \u5173\u952e\u5b57\u5b9a\u4e49\uff0c\u5e76\u5728 <code>outer_function<\/code> \u5185\u90e8\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u751f\u6210\u5668\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u5668\u51fd\u6570\u662f\u4f7f\u7528 <code>yield<\/code> \u5173\u952e\u5b57\u7684\u51fd\u6570\uff0c\u5b83\u8fd4\u56de\u4e00\u4e2a\u751f\u6210\u5668\u5bf9\u8c61\uff0c\u53ef\u4ee5\u5728\u51fd\u6570\u5185\u90e8\u8c03\u7528\u751f\u6210\u5668\u51fd\u6570\u6765\u751f\u6210\u4e00\u7cfb\u5217\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def generator_function():<\/p>\n<p>    for i in range(5):<\/p>\n<p>        yield i<\/p>\n<p>def caller_function():<\/p>\n<p>    for value in generator_function():<\/p>\n<p>        print(value)<\/p>\n<p>caller_function()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>generator_function<\/code> \u662f\u4e00\u4e2a\u751f\u6210\u5668\u51fd\u6570\uff0c\u901a\u8fc7 <code>yield<\/code> \u5173\u952e\u5b57\u751f\u6210\u4e00\u7cfb\u5217\u503c\uff0c\u5e76\u5728 <code>caller_function<\/code> \u4e2d\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u52a8\u6001\u51fd\u6570\u8c03\u7528<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u8fd0\u884c\u65f6\u6761\u4ef6\u52a8\u6001\u8c03\u7528\u4e0d\u540c\u7684\u51fd\u6570\u3002\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u51fd\u6570 <code>getattr<\/code> \u52a8\u6001\u8c03\u7528\u51fd\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class MyClass:<\/p>\n<p>    def method1(self):<\/p>\n<p>        print(&quot;This is method1&quot;)<\/p>\n<p>    def method2(self):<\/p>\n<p>        print(&quot;This is method2&quot;)<\/p>\n<p>    def call_method(self, method_name):<\/p>\n<p>        method = getattr(self, method_name)<\/p>\n<p>        method()<\/p>\n<p>obj = MyClass()<\/p>\n<p>obj.call_method(&#39;method1&#39;)<\/p>\n<p>obj.call_method(&#39;method2&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>call_method<\/code> \u65b9\u6cd5\u6839\u636e\u4f20\u5165\u7684 <code>method_name<\/code> \u52a8\u6001\u8c03\u7528\u76f8\u5e94\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u7075\u6d3b\u5730\u5728\u51fd\u6570\u5185\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\u3002\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\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>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5728\u4e00\u4e2a\u51fd\u6570\u5185\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u4e00\u4e2a\u51fd\u6570\u5185\u90e8\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\uff0c\u53ea\u9700\u4f7f\u7528\u88ab\u8c03\u7528\u51fd\u6570\u7684\u540d\u79f0\u5e76\u4f20\u9012\u5fc5\u8981\u7684\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e24\u4e2a\u51fd\u6570<code>func_a<\/code>\u548c<code>func_b<\/code>\uff0c\u53ef\u4ee5\u5728<code>func_a<\/code>\u4e2d\u8c03\u7528<code>func_b<\/code>\u3002\u786e\u4fdd\u5728\u8c03\u7528\u4e4b\u524d\u5b9a\u4e49\u4e86\u8fd9\u4e24\u4e2a\u51fd\u6570\uff0c\u4ee5\u907f\u514d\u51fa\u73b0\u672a\u5b9a\u4e49\u7684\u9519\u8bef\u3002<\/p>\n<p><strong>\u8c03\u7528\u51fd\u6570\u65f6\u9700\u8981\u6ce8\u610f\u4ec0\u4e48\uff1f<\/strong><br \/>\u8c03\u7528\u51fd\u6570\u65f6\u8981\u786e\u4fdd\u53c2\u6570\u7c7b\u578b\u548c\u6570\u91cf\u6b63\u786e\u3002\u5982\u679c\u88ab\u8c03\u7528\u51fd\u6570\u671f\u671b\u63a5\u6536\u53c2\u6570\uff0c\u800c\u8c03\u7528\u65f6\u6ca1\u6709\u63d0\u4f9b\u6216\u8005\u63d0\u4f9b\u4e86\u9519\u8bef\u7c7b\u578b\u7684\u53c2\u6570\uff0c\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u6b64\u5916\uff0c\u4e5f\u9700\u8981\u6ce8\u610f\u5c40\u90e8\u548c\u5168\u5c40\u53d8\u91cf\u7684\u4f5c\u7528\u57df\uff0c\u786e\u4fdd\u5728\u51fd\u6570\u5185\u90e8\u8bbf\u95ee\u5230\u6240\u9700\u7684\u6570\u636e\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u51fd\u6570\u8c03\u7528\u4e2d\u7684\u8fd4\u56de\u503c\uff1f<\/strong><br \/>\u5728\u51fd\u6570\u8c03\u7528\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd4\u56de\u503c\u6765\u83b7\u53d6\u88ab\u8c03\u7528\u51fd\u6570\u7684\u8f93\u51fa\u3002\u5982\u679c\u88ab\u8c03\u7528\u51fd\u6570\u6709\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u5c06\u5176\u8d4b\u503c\u7ed9\u4e00\u4e2a\u53d8\u91cf\uff0c\u65b9\u4fbf\u540e\u7eed\u64cd\u4f5c\u3002\u5728\u7f16\u5199\u51fd\u6570\u65f6\uff0c\u5408\u7406\u8bbe\u8ba1\u8fd4\u56de\u503c\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\u5728\u51fd\u6570\u5185\u8c03\u7528\u53e6\u4e00\u4e2a\u51fd\u6570\uff1a\u76f4\u63a5\u8c03\u7528\u3001\u5d4c\u5957\u51fd\u6570\u3001\u901a\u8fc7\u53c2\u6570\u4f20\u9012\u51fd\u6570\u3001\u4f7f\u7528\u95ed\u5305\u548c [&hellip;]","protected":false},"author":3,"featured_media":1060212,"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\/1060206"}],"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=1060206"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1060206\/revisions"}],"predecessor-version":[{"id":1060213,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1060206\/revisions\/1060213"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1060212"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1060206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1060206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1060206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}