{"id":960315,"date":"2024-12-27T03:48:41","date_gmt":"2024-12-26T19:48:41","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/960315.html"},"modified":"2024-12-27T03:48:43","modified_gmt":"2024-12-26T19:48:43","slug":"python%e8%b0%83%e7%94%a8%e5%87%bd%e6%95%b0%e5%a6%82%e4%bd%95%e8%bf%94%e5%9b%9e","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/960315.html","title":{"rendered":"python\u8c03\u7528\u51fd\u6570\u5982\u4f55\u8fd4\u56de"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102852\/e2c2a41b-774c-41cc-9b57-a8f7c30d130f.webp\" alt=\"python\u8c03\u7528\u51fd\u6570\u5982\u4f55\u8fd4\u56de\" \/><\/p>\n<p><p> <strong>Python\u8c03\u7528\u51fd\u6570\u8fd4\u56de\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528return\u8bed\u53e5\u3001\u8fd4\u56de\u591a\u4e2a\u503c\u3001\u8fd4\u56de\u5bf9\u8c61\u6216\u6570\u636e\u7ed3\u6784\u3001\u4f7f\u7528yield\u751f\u6210\u5668\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002\u5728Python\u4e2d\uff0c\u51fd\u6570\u901a\u8fc7return\u8bed\u53e5\u5c06\u503c\u8fd4\u56de\u7ed9\u8c03\u7528\u8005\uff0c\u82e5\u6ca1\u6709\u663e\u5f0f\u7684return\u8bed\u53e5\uff0c\u51fd\u6570\u4f1a\u9690\u5f0f\u8fd4\u56deNone\u3002\u5728\u51fd\u6570\u4e2d\u53ef\u4ee5\u901a\u8fc7\u9017\u53f7\u5206\u9694\u7684\u65b9\u5f0f\u8fd4\u56de\u591a\u4e2a\u503c\uff0c\u8fd9\u4e9b\u503c\u4f1a\u4f5c\u4e3a\u4e00\u4e2a\u5143\u7ec4\u8fd4\u56de\u7ed9\u8c03\u7528\u8005\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u51fd\u6570\u8fd4\u56de\u503c\u662f\u51fd\u6570\u7f16\u7a0b\u7684\u91cd\u8981\u7ec4\u6210\u90e8\u5206\u3002Python\u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u8fd4\u56de\u673a\u5236\uff0c\u5141\u8bb8\u7a0b\u5e8f\u5458\u6839\u636e\u9700\u6c42\u8fd4\u56de\u5355\u4e00\u503c\u3001\u591a\u4e2a\u503c\u751a\u81f3\u662f\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63a2\u8ba8Python\u4e2d\u51fd\u6570\u8fd4\u56de\u7684\u5404\u79cd\u65b9\u5f0f\u53ca\u5176\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001RETURN\u8bed\u53e5<\/p>\n<\/p>\n<p><p>Python\u4e2d\u6700\u5e38\u7528\u7684\u8fd4\u56de\u503c\u65b9\u6cd5\u662f\u901a\u8fc7return\u8bed\u53e5\u3002\u8fd9\u79cd\u65b9\u5f0f\u80fd\u8ba9\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u8ba1\u7b97\u7ed3\u679c\u6216\u7279\u5b9a\u503c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5355\u4e00\u8fd4\u56de\u503c<\/li>\n<\/ol>\n<p><p>\u5728\u51fd\u6570\u5185\u90e8\uff0c\u901a\u8fc7return\u8bed\u53e5\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u5355\u4e00\u7684\u503c\u3002\u8fd9\u4e2a\u503c\u53ef\u4ee5\u662f\u4efb\u4f55\u6570\u636e\u7c7b\u578b\uff0c\u4f8b\u5982\u6574\u6570\u3001\u5b57\u7b26\u4e32\u3001\u6d6e\u70b9\u6570\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def add(a, b):<\/p>\n<p>    return a + b<\/p>\n<p>result = add(5, 3)<\/p>\n<p>print(result)  # \u8f93\u51fa: 8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570add\u8fd4\u56de\u4e24\u4e2a\u53c2\u6570a\u548cb\u7684\u548c\u3002\u5f53\u51fd\u6570\u88ab\u8c03\u7528\u65f6\uff0c\u7ed3\u679c\u88ab\u8d4b\u503c\u7ed9\u53d8\u91cfresult\u5e76\u6253\u5370\u8f93\u51fa\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u8fd4\u56de\u591a\u4e2a\u503c<\/li>\n<\/ol>\n<p><p>Python\u652f\u6301\u8fd4\u56de\u591a\u4e2a\u503c\uff0c\u8fd9\u4e9b\u503c\u4f1a\u4f5c\u4e3a\u4e00\u4e2a\u5143\u7ec4\u8fd4\u56de\u7ed9\u8c03\u7528\u8005\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u89e3\u5305\u5c06\u8fd9\u4e9b\u503c\u5206\u522b\u8d4b\u7ed9\u4e0d\u540c\u7684\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def divide(a, b):<\/p>\n<p>    quotient = a \/\/ b<\/p>\n<p>    rem<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nder = a % b<\/p>\n<p>    return quotient, remainder<\/p>\n<p>q, r = divide(10, 3)<\/p>\n<p>print(&quot;\u5546:&quot;, q)  # \u8f93\u51fa: \u5546: 3<\/p>\n<p>print(&quot;\u4f59\u6570:&quot;, r)  # \u8f93\u51fa: \u4f59\u6570: 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570divide\u8fd4\u56de\u4e86\u4e24\u4e2a\u503c\uff1a\u5546\u548c\u4f59\u6570\u3002\u901a\u8fc7\u89e3\u5305\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u8fd9\u4e24\u4e2a\u503c\u5206\u522b\u8d4b\u7ed9\u53d8\u91cfq\u548cr\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8fd4\u56de\u5bf9\u8c61\u6216\u6570\u636e\u7ed3\u6784<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u5bf9\u8c61\u3001\u5217\u8868\u3001\u5b57\u5178\u7b49\u590d\u6742\u6570\u636e\u7ed3\u6784\u3002\u8fd9\u4f7f\u5f97\u51fd\u6570\u80fd\u591f\u8fd4\u56de\u66f4\u4e30\u5bcc\u7684\u4fe1\u606f\u548c\u66f4\u590d\u6742\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u8fd4\u56de\u5217\u8868<\/li>\n<\/ol>\n<p><p>\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\uff0c\u5217\u8868\u4e2d\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u5143\u7d20\uff0c\u7c7b\u578b\u53ef\u4ee5\u76f8\u540c\u4e5f\u53ef\u4ee5\u4e0d\u540c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def generate_squares(n):<\/p>\n<p>    squares = []<\/p>\n<p>    for i in range(n):<\/p>\n<p>        squares.append(i  2)<\/p>\n<p>    return squares<\/p>\n<p>square_list = generate_squares(5)<\/p>\n<p>print(square_list)  # \u8f93\u51fa: [0, 1, 4, 9, 16]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u8fd4\u56de\u5b57\u5178<\/li>\n<\/ol>\n<p><p>\u5b57\u5178\u662f\u4e00\u79cd\u952e\u503c\u5bf9\u7684\u6570\u636e\u7ed3\u6784\uff0c\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u5b57\u5178\u4ee5\u4fbf\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406\u8fd4\u56de\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def create_person(name, age):<\/p>\n<p>    return {&quot;name&quot;: name, &quot;age&quot;: age}<\/p>\n<p>person = create_person(&quot;Alice&quot;, 30)<\/p>\n<p>print(person)  # \u8f93\u51fa: {&#39;name&#39;: &#39;Alice&#39;, &#39;age&#39;: 30}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u8fd4\u56de\u5bf9\u8c61<\/li>\n<\/ol>\n<p><p>\u5728\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u4e2d\uff0c\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u7c7b\u7684\u5b9e\u4f8b\uff08\u5bf9\u8c61\uff09\uff0c\u4ece\u800c\u63d0\u4f9b\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Car:<\/p>\n<p>    def __init__(self, brand, model):<\/p>\n<p>        self.brand = brand<\/p>\n<p>        self.model = model<\/p>\n<p>def create_car(brand, model):<\/p>\n<p>    return Car(brand, model)<\/p>\n<p>my_car = create_car(&quot;Toyota&quot;, &quot;Camry&quot;)<\/p>\n<p>print(my_car.brand)  # \u8f93\u51fa: Toyota<\/p>\n<p>print(my_car.model)  # \u8f93\u51fa: Camry<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528YIELD\u751f\u6210\u5668<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u751f\u6210\u5668\u4f7f\u7528yield\u8bed\u53e5\u6765\u8fd4\u56de\u6570\u636e\u3002\u4e0ereturn\u4e0d\u540c\uff0cyield\u4e0d\u4f1a\u7ec8\u6b62\u51fd\u6570\u7684\u6267\u884c\uff0c\u800c\u662f\u201c\u6682\u505c\u201d\u51fd\u6570\u5e76\u4fdd\u5b58\u5176\u72b6\u6001\uff0c\u4ee5\u4fbf\u5728\u540e\u7eed\u8fed\u4ee3\u4e2d\u7ee7\u7eed\u6267\u884c\u3002\u8fd9\u79cd\u673a\u5236\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u91cf\u6570\u636e\u6216\u9700\u8981\u751f\u6210\u5e8f\u5217\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def fibonacci(n):<\/p>\n<p>    a, b = 0, 1<\/p>\n<p>    for _ in range(n):<\/p>\n<p>        yield a<\/p>\n<p>        a, b = b, a + b<\/p>\n<p>for num in fibonacci(5):<\/p>\n<p>    print(num)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u51fd\u6570fibonacci\u4f7f\u7528yield\u751f\u6210\u6590\u6ce2\u90a3\u5951\u6570\u5217\u3002\u5728\u6bcf\u6b21\u8fed\u4ee3\u4e2d\uff0cyield\u8fd4\u56de\u5f53\u524d\u7684\u6590\u6ce2\u90a3\u5951\u6570\uff0c\u540c\u65f6\u4fdd\u5b58\u51fd\u6570\u7684\u72b6\u6001\uff0c\u4ee5\u4fbf\u5728\u4e0b\u4e00\u6b21\u8c03\u7528\u65f6\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8fd4\u56de\u503c\u7684\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<ol>\n<li>\u8ba1\u7b97\u7ed3\u679c<\/li>\n<\/ol>\n<p><p>\u5728\u6570\u5b66\u8fd0\u7b97\u548c\u6570\u636e\u5904\u7406\u7b49\u573a\u666f\u4e2d\uff0c\u51fd\u6570\u901a\u5e38\u8fd4\u56de\u8ba1\u7b97\u7ed3\u679c\u3002\u4f8b\u5982\uff0c\u7edf\u8ba1\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u5e73\u5747\u503c\u3001\u65b9\u5dee\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def calculate_average(numbers):<\/p>\n<p>    return sum(numbers) \/ len(numbers)<\/p>\n<p>average = calculate_average([1, 2, 3, 4, 5])<\/p>\n<p>print(&quot;\u5e73\u5747\u503c:&quot;, average)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u6570\u636e\u5904\u7406<\/li>\n<\/ol>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\uff0c\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u5904\u7406\u540e\u7684\u6570\u636e\u3002\u8fd9\u53ef\u4ee5\u662f\u5217\u8868\u3001\u5b57\u5178\u3001\u6570\u636e\u6846\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def filter_even_numbers(numbers):<\/p>\n<p>    return [num for num in numbers if num % 2 == 0]<\/p>\n<p>even_numbers = filter_even_numbers([1, 2, 3, 4, 5, 6])<\/p>\n<p>print(&quot;\u5076\u6570:&quot;, even_numbers)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u4fe1\u606f\u5c01\u88c5<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8fd4\u56de\u5bf9\u8c61\uff0c\u51fd\u6570\u53ef\u4ee5\u5c01\u88c5\u4fe1\u606f\u548c\u64cd\u4f5c\uff0c\u4f7f\u5f97\u8c03\u7528\u8005\u80fd\u591f\u65b9\u4fbf\u5730\u8bbf\u95ee\u548c\u64cd\u4f5c\u8fd9\u4e9b\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Book:<\/p>\n<p>    def __init__(self, title, author):<\/p>\n<p>        self.title = title<\/p>\n<p>        self.author = author<\/p>\n<p>def create_book(title, author):<\/p>\n<p>    return Book(title, author)<\/p>\n<p>my_book = create_book(&quot;1984&quot;, &quot;George Orwell&quot;)<\/p>\n<p>print(&quot;\u4e66\u540d:&quot;, my_book.title)<\/p>\n<p>print(&quot;\u4f5c\u8005:&quot;, my_book.author)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>Python\u51fd\u6570\u7684\u8fd4\u56de\u503c\u673a\u5236\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u8fd4\u56de\u5355\u4e00\u503c\u3001\u591a\u4e2a\u503c\u3001\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u6216\u751f\u6210\u5668\u3002\u8fd9\u79cd\u7075\u6d3b\u6027\u4f7f\u5f97Python\u51fd\u6570\u80fd\u591f\u9002\u5e94\u5404\u79cd\u7f16\u7a0b\u9700\u6c42\uff0c\u4ece\u7b80\u5355\u7684\u8ba1\u7b97\u5230\u590d\u6742\u7684\u6570\u636e\u5904\u7406\u548c\u4fe1\u606f\u5c01\u88c5\u3002\u901a\u8fc7\u5408\u7406\u8bbe\u8ba1\u51fd\u6570\u7684\u8fd4\u56de\u503c\uff0c\u7a0b\u5e8f\u5458\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3001\u53ef\u7ef4\u62a4\u6027\u548c\u590d\u7528\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>Python\u4e2d\u5982\u4f55\u4f7f\u7528\u51fd\u6570\u8fd4\u56de\u503c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528<code>return<\/code>\u8bed\u53e5\u6765\u8fd4\u56de\u503c\u3002\u5f53\u51fd\u6570\u6267\u884c\u5230<code>return<\/code>\u8bed\u53e5\u65f6\uff0c\u5b83\u4f1a\u7ed3\u675f\u51fd\u6570\u7684\u6267\u884c\uff0c\u5e76\u5c06\u6307\u5b9a\u7684\u503c\u8fd4\u56de\u7ed9\u8c03\u7528\u8be5\u51fd\u6570\u7684\u5730\u65b9\u3002\u4f60\u53ef\u4ee5\u8fd4\u56de\u4efb\u4f55\u6570\u636e\u7c7b\u578b\uff0c\u4f8b\u5982\u5b57\u7b26\u4e32\u3001\u6574\u6570\u3001\u5217\u8868\u7b49\u3002\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u51fd\u6570\u6765\u8ba1\u7b97\u4e24\u4e2a\u6570\u5b57\u7684\u548c\u5e76\u8fd4\u56de\u7ed3\u679c\uff1a<\/p>\n<pre><code class=\"language-python\">def add_numbers(a, b):\n    return a + b\n\nresult = add_numbers(5, 3)\nprint(result)  # \u8f93\u51fa 8\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fd4\u56de\u591a\u4e2a\u503c\uff1f<\/strong><br \/>Python\u652f\u6301\u4ece\u51fd\u6570\u4e2d\u8fd4\u56de\u591a\u4e2a\u503c\uff0c\u4f7f\u7528\u9017\u53f7\u5206\u9694\u8fd4\u56de\u503c\u5373\u53ef\u3002\u8fd9\u4e9b\u8fd4\u56de\u503c\u4f1a\u88ab\u6253\u5305\u6210\u4e00\u4e2a\u5143\u7ec4\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">def get_coordinates():\n    return (10, 20)\n\nx, y = get_coordinates()\nprint(x, y)  # \u8f93\u51fa 10 20\n<\/code><\/pre>\n<p>\u5728\u8c03\u7528\u51fd\u6570\u65f6\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5c06\u8fd4\u56de\u7684\u5143\u7ec4\u62c6\u5305\u5230\u591a\u4e2a\u53d8\u91cf\u4e2d\uff0c\u65b9\u4fbf\u8fdb\u884c\u540e\u7eed\u5904\u7406\u3002<\/p>\n<p><strong>\u5982\u679c\u51fd\u6570\u6ca1\u6709\u8fd4\u56de\u503c\u4f1a\u600e\u6837\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5982\u679c\u51fd\u6570\u6ca1\u6709\u660e\u786e\u4f7f\u7528<code>return<\/code>\u8bed\u53e5\u8fd4\u56de\u503c\uff0cPython\u4f1a\u9ed8\u8ba4\u8fd4\u56de<code>None<\/code>\u3002\u8fd9\u610f\u5473\u7740\u8c03\u7528\u8be5\u51fd\u6570\u65f6\u4e0d\u4f1a\u83b7\u5f97\u4efb\u4f55\u6709\u6548\u6570\u636e\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">def do_nothing():\n    pass\n\nresult = do_nothing()\nprint(result)  # \u8f93\u51fa None\n<\/code><\/pre>\n<p>\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u7406\u89e3\u8fd9\u4e00\u70b9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5904\u7406\u51fd\u6570\u8fd4\u56de\u7684\u7ed3\u679c\uff0c\u907f\u514d\u56e0\u672a\u8fd4\u56de\u503c\u800c\u5bfc\u81f4\u7684\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8c03\u7528\u51fd\u6570\u8fd4\u56de\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528return\u8bed\u53e5\u3001\u8fd4\u56de\u591a\u4e2a\u503c\u3001\u8fd4\u56de\u5bf9\u8c61\u6216\u6570\u636e\u7ed3\u6784\u3001\u4f7f\u7528yield\u751f\u6210\u5668\u7b49\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":960325,"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\/960315"}],"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=960315"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/960315\/revisions"}],"predecessor-version":[{"id":960329,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/960315\/revisions\/960329"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/960325"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=960315"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=960315"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=960315"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}