{"id":2760,"date":"2025-03-14T22:45:50","date_gmt":"2025-03-14T14:45:50","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=2760"},"modified":"2025-03-14T22:45:50","modified_gmt":"2025-03-14T14:45:50","slug":"python3-%e5%87%bd%e6%95%b0%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/14\/python3-%e5%87%bd%e6%95%b0%e8%af%a6%e8%a7%a3\/","title":{"rendered":"Python3 \u51fd\u6570\u8be6\u89e3"},"content":{"rendered":"\n<p>\u51fd\u6570\u662f\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u57fa\u672c\u6784\u5efa\u5757\uff0c\u5728 Python \u4e2d\uff0c\u51fd\u6570\u7528\u4e8e\u7ec4\u7ec7\u53ef\u91cd\u7528\u7684\u4ee3\u7801\u7247\u6bb5\u3002Python \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b\u7684\u51fd\u6570\u5b9a\u4e49\u4e0e\u8c03\u7528\u65b9\u5f0f\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. \u51fd\u6570\u7684\u5b9a\u4e49\u4e0e\u8c03\u7528<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.1 \u5b9a\u4e49\u51fd\u6570<\/strong><\/h3>\n\n\n\n<p>\u4f7f\u7528 <code>def<\/code> \u5173\u952e\u5b57\u6765\u5b9a\u4e49\u51fd\u6570\uff0c\u540e\u8ddf\u51fd\u6570\u540d\u548c\u53c2\u6570\u5217\u8868\u3002\u51fd\u6570\u4f53\u5305\u542b\u5728\u7f29\u8fdb\u5757\u4e2d\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u57fa\u672c\u8bed\u6cd5<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>def function_name(parameters):\n    # \u51fd\u6570\u4f53\n    return value<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u793a\u4f8b 1\uff1a\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7684\u52a0\u6cd5\u51fd\u6570<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>def add(a, b):\n    return a + b\n\nresult = add(3, 5)\nprint(result)  # \u8f93\u51fa 8<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1.2 \u8c03\u7528\u51fd\u6570<\/strong><\/h3>\n\n\n\n<p>\u8c03\u7528\u51fd\u6570\u65f6\uff0c\u53ea\u9700\u4f7f\u7528\u51fd\u6570\u540d\u5e76\u4f20\u5165\u9002\u5f53\u7684\u53c2\u6570\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add(2, 4)  # \u8c03\u7528\u51fd\u6570\u5e76\u4f20\u5165\u53c2\u6570<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. \u51fd\u6570\u53c2\u6570<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.1 \u4f4d\u7f6e\u53c2\u6570\uff08Positional Arguments\uff09<\/strong><\/h3>\n\n\n\n<p>\u51fd\u6570\u7684\u53c2\u6570\u6309\u7167\u4f4d\u7f6e\u987a\u5e8f\u4f20\u9012\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def greet(name, age):\n    print(f\"Hello {name}, you are {age} years old.\")\n\ngreet(\"Alice\", 25)  # \u4f4d\u7f6e\u53c2\u6570<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.2 \u9ed8\u8ba4\u53c2\u6570\uff08Default Arguments\uff09<\/strong><\/h3>\n\n\n\n<p>\u5728\u5b9a\u4e49\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u4e3a\u53c2\u6570\u8bbe\u7f6e\u9ed8\u8ba4\u503c\u3002\u5982\u679c\u8c03\u7528\u65f6\u672a\u4f20\u5165\u5bf9\u5e94\u7684\u53c2\u6570\uff0c\u5c06\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def greet(name, age=30):\n    print(f\"Hello {name}, you are {age} years old.\")\n\ngreet(\"Bob\")  # \u4f7f\u7528\u9ed8\u8ba4\u503c age=30\ngreet(\"Charlie\", 40)  # \u4f7f\u7528\u4f20\u5165\u7684\u503c age=40<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.3 \u53ef\u53d8\u53c2\u6570\uff08Variable-Length Arguments\uff09<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>*args<\/code><\/strong>\uff1a\u7528\u4e8e\u63a5\u6536\u4efb\u610f\u6570\u91cf\u7684\u4f4d\u7f6e\u53c2\u6570\u3002<code>args<\/code> \u662f\u4e00\u4e2a\u5143\u7ec4\uff0c\u5305\u542b\u6240\u6709\u4f20\u9012\u7684\u4f4d\u7f6e\u53c2\u6570\u3002<\/li>\n\n\n\n<li><strong><code>**kwargs<\/code><\/strong>\uff1a\u7528\u4e8e\u63a5\u6536\u4efb\u610f\u6570\u91cf\u7684\u5173\u952e\u5b57\u53c2\u6570\u3002<code>kwargs<\/code> \u662f\u4e00\u4e2a\u5b57\u5178\uff0c\u5305\u542b\u6240\u6709\u4f20\u9012\u7684\u952e\u503c\u5bf9\u53c2\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u793a\u4f8b 1\uff1a\u4f7f\u7528 <code>*args<\/code><\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>def sum_all(*args):\n    return sum(args)\n\nprint(sum_all(1, 2, 3))  # \u8f93\u51fa 6\nprint(sum_all(5, 10, 15, 20))  # \u8f93\u51fa 50<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u793a\u4f8b 2\uff1a\u4f7f\u7528 <code>**kwargs<\/code><\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>def greet(**kwargs):\n    for key, value in kwargs.items():\n        print(f\"{key}: {value}\")\n\ngreet(name=\"Alice\", age=25, location=\"New York\")\n# \u8f93\u51fa:\n# name: Alice\n# age: 25\n# location: New York<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2.4 \u53c2\u6570\u4f20\u9012\u7684\u987a\u5e8f<\/strong><\/h3>\n\n\n\n<p>\u8c03\u7528\u51fd\u6570\u65f6\uff0c\u53c2\u6570\u7684\u4f20\u9012\u987a\u5e8f\u4e3a\uff1a<strong>\u4f4d\u7f6e\u53c2\u6570<\/strong> -&gt; <strong>\u9ed8\u8ba4\u53c2\u6570<\/strong> -&gt; <strong>\u53ef\u53d8\u53c2\u6570<\/strong>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def example(a, b=2, *args, c=3, **kwargs):\n    print(a, b, args, c, kwargs)\n\nexample(1, 4, 5, 6, c=10, d=20)\n# \u8f93\u51fa:\n# 1 4 (5, 6) 10 {'d': 20}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. \u8fd4\u56de\u503c\uff08Return Values\uff09<\/strong><\/h2>\n\n\n\n<p>\u51fd\u6570\u53ef\u4ee5\u4f7f\u7528 <code>return<\/code> \u8bed\u53e5\u8fd4\u56de\u4e00\u4e2a\u503c\uff0c\u4e5f\u53ef\u4ee5\u8fd4\u56de\u591a\u4e2a\u503c\u3002\u6ca1\u6709 <code>return<\/code> \u8bed\u53e5\u65f6\uff0c\u51fd\u6570\u9ed8\u8ba4\u8fd4\u56de <code>None<\/code>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.1 \u8fd4\u56de\u5355\u4e2a\u503c<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>def square(x):\n    return x * x\n\nresult = square(4)\nprint(result)  # \u8f93\u51fa 16<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3.2 \u8fd4\u56de\u591a\u4e2a\u503c<\/strong><\/h3>\n\n\n\n<p>\u8fd4\u56de\u591a\u4e2a\u503c\u65f6\uff0cPython \u4f1a\u5c06\u5b83\u4eec\u6253\u5305\u6210\u4e00\u4e2a\u5143\u7ec4\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def get_user_info():\n    return \"Alice\", 25  # \u8fd4\u56de\u4e00\u4e2a\u5143\u7ec4\n\nname, age = get_user_info()  # \u89e3\u5305\u5143\u7ec4\nprint(name, age)  # \u8f93\u51fa Alice 25<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. \u5c40\u90e8\u53d8\u91cf\u4e0e\u5168\u5c40\u53d8\u91cf<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.1 \u5c40\u90e8\u53d8\u91cf<\/strong><\/h3>\n\n\n\n<p>\u5728\u51fd\u6570\u5185\u5b9a\u4e49\u7684\u53d8\u91cf\u662f\u5c40\u90e8\u53d8\u91cf\uff0c\u4f5c\u7528\u8303\u56f4\u4ec5\u9650\u4e8e\u51fd\u6570\u5185\u90e8\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def local_variable():\n    x = 10  # \u5c40\u90e8\u53d8\u91cf\n    print(x)\n\nlocal_variable()  # \u8f93\u51fa 10\n# print(x)  # \u4f1a\u62a5\u9519\uff0c\u56e0\u4e3a x \u662f\u5c40\u90e8\u53d8\u91cf\uff0c\u51fd\u6570\u5916\u4e0d\u53ef\u8bbf\u95ee<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4.2 \u5168\u5c40\u53d8\u91cf<\/strong><\/h3>\n\n\n\n<p>\u5728\u51fd\u6570\u5916\u5b9a\u4e49\u7684\u53d8\u91cf\u662f\u5168\u5c40\u53d8\u91cf\uff0c\u4f5c\u7528\u8303\u56f4\u4e3a\u6574\u4e2a\u7a0b\u5e8f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>x = 20  # \u5168\u5c40\u53d8\u91cf\n\ndef global_variable():\n    print(x)\n\nglobal_variable()  # \u8f93\u51fa 20<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u4fee\u6539\u5168\u5c40\u53d8\u91cf<\/strong><\/h4>\n\n\n\n<p>\u5982\u679c\u5728\u51fd\u6570\u5185\u60f3\u8981\u4fee\u6539\u5168\u5c40\u53d8\u91cf\uff0c\u9700\u8981\u4f7f\u7528 <code>global<\/code> \u5173\u952e\u5b57\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>x = 10\n\ndef modify_global():\n    global x\n    x = 20\n\nmodify_global()\nprint(x)  # \u8f93\u51fa 20<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. \u533f\u540d\u51fd\u6570\uff08Lambda \u51fd\u6570\uff09<\/strong><\/h2>\n\n\n\n<p><strong>Lambda \u51fd\u6570<\/strong> \u662f\u4e00\u79cd\u5feb\u901f\u5b9a\u4e49\u5c0f\u51fd\u6570\u7684\u65b9\u5f0f\uff0c\u901a\u5e38\u7528\u4e8e\u51fd\u6570\u5f0f\u7f16\u7a0b\u4e2d\u3002\u5b83\u4f7f\u7528 <code>lambda<\/code> \u5173\u952e\u5b57\uff0c\u901a\u5e38\u7528\u4e8e\u7b80\u5355\u7684\u3001\u4e00\u6b21\u6027\u7684\u51fd\u6570\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5.1 \u57fa\u672c\u8bed\u6cd5<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>lambda \u53c2\u6570: \u8868\u8fbe\u5f0f<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u793a\u4f8b 1\uff1aLambda \u51fd\u6570\u52a0\u6cd5<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>add = lambda x, y: x + y\nprint(add(3, 5))  # \u8f93\u51fa 8<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u793a\u4f8b 2\uff1a\u6392\u5e8f\u4e2d\u7684 lambda \u51fd\u6570<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>pairs = &#91;(1, 2), (3, 1), (5, 4)]\npairs.sort(key=lambda x: x&#91;1])\nprint(pairs)  # \u8f93\u51fa &#91;(3, 1), (1, 2), (5, 4)]<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. \u9ad8\u9636\u51fd\u6570<\/strong><\/h2>\n\n\n\n<p>\u9ad8\u9636\u51fd\u6570\u662f\u63a5\u53d7\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u6216\u8fd4\u56de\u51fd\u6570\u7684\u51fd\u6570\u3002\u5728 Python \u4e2d\uff0c<strong>map()<\/strong>\u3001<strong>filter()<\/strong> \u548c <strong>reduce()<\/strong> \u662f\u5e38\u89c1\u7684\u9ad8\u9636\u51fd\u6570\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6.1 <code>map()<\/code> \u51fd\u6570<\/strong><\/h3>\n\n\n\n<p><code>map()<\/code> \u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u51fd\u6570\u548c\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff0c\u5c06\u51fd\u6570\u5e94\u7528\u5230\u53ef\u8fed\u4ee3\u5bf9\u8c61\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers = &#91;1, 2, 3, 4]\nsquared = map(lambda x: x ** 2, numbers)\nprint(list(squared))  # \u8f93\u51fa &#91;1, 4, 9, 16]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6.2 <code>filter()<\/code> \u51fd\u6570<\/strong><\/h3>\n\n\n\n<p><code>filter()<\/code> \u51fd\u6570\u6839\u636e\u7ed9\u5b9a\u7684\u51fd\u6570\u548c\u53ef\u8fed\u4ee3\u5bf9\u8c61\uff0c\u8fc7\u6ee4\u51fa\u8fd4\u56de\u503c\u4e3a <code>True<\/code> \u7684\u5143\u7d20\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>numbers = &#91;1, 2, 3, 4, 5, 6]\neven_numbers = filter(lambda x: x % 2 == 0, numbers)\nprint(list(even_numbers))  # \u8f93\u51fa &#91;2, 4, 6]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6.3 <code>reduce()<\/code> \u51fd\u6570<\/strong><\/h3>\n\n\n\n<p><code>reduce()<\/code> \u51fd\u6570\u5c06\u4e00\u4e2a\u4e8c\u5143\u51fd\u6570\u5e94\u7528\u4e8e\u5e8f\u5217\u7684\u6bcf\u4e00\u9879\uff0c\u5c06\u7ed3\u679c\u6c47\u603b\u4e3a\u4e00\u4e2a\u503c\u3002\u5b83\u4f4d\u4e8e <code>functools<\/code> \u6a21\u5757\u4e2d\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from functools import reduce\n\nnumbers = &#91;1, 2, 3, 4]\nproduct = reduce(lambda x, y: x * y, numbers)\nprint(product)  # \u8f93\u51fa 24<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. \u51fd\u6570\u7684\u4f5c\u7528\u57df<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u5c40\u90e8\u4f5c\u7528\u57df<\/strong>\uff1a\u5728\u51fd\u6570\u5185\u90e8\u5b9a\u4e49\u7684\u53d8\u91cf\uff0c\u53ea\u80fd\u5728\u51fd\u6570\u5185\u90e8\u8bbf\u95ee\u3002<\/li>\n\n\n\n<li><strong>\u5168\u5c40\u4f5c\u7528\u57df<\/strong>\uff1a\u5728\u51fd\u6570\u5916\u90e8\u5b9a\u4e49\u7684\u53d8\u91cf\uff0c\u53ef\u4ee5\u5728\u6574\u4e2a\u7a0b\u5e8f\u4e2d\u8bbf\u95ee\u3002<\/li>\n\n\n\n<li><strong>\u5185\u5efa\u4f5c\u7528\u57df<\/strong>\uff1aPython \u5185\u7f6e\u7684\u540d\u79f0\u7a7a\u95f4\uff0c\u4f8b\u5982 <code>print()<\/code>\u3001<code>len()<\/code> \u7b49\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u603b\u7ed3<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u51fd\u6570\u5b9a\u4e49<\/strong>\uff1a\u4f7f\u7528 <code>def<\/code> \u5173\u952e\u5b57\u5b9a\u4e49\u51fd\u6570\uff0c\u652f\u6301\u591a\u79cd\u53c2\u6570\u7c7b\u578b\uff08\u4f4d\u7f6e\u53c2\u6570\u3001\u9ed8\u8ba4\u53c2\u6570\u3001\u53ef\u53d8\u53c2\u6570\uff09\u3002<\/li>\n\n\n\n<li><strong>\u8fd4\u56de\u503c<\/strong>\uff1a\u901a\u8fc7 <code>return<\/code> \u8fd4\u56de\u503c\uff0c\u652f\u6301\u8fd4\u56de\u5355\u4e2a\u6216\u591a\u4e2a\u503c\u3002<\/li>\n\n\n\n<li><strong>\u4f5c\u7528\u57df<\/strong>\uff1a\u533a\u5206\u5c40\u90e8\u53d8\u91cf\u4e0e\u5168\u5c40\u53d8\u91cf\uff0c\u901a\u8fc7 <code>global<\/code> \u5173\u952e\u5b57\u4fee\u6539\u5168\u5c40\u53d8\u91cf\u3002<\/li>\n\n\n\n<li><strong>Lambda \u51fd\u6570<\/strong>\uff1a\u7528\u4e8e\u5b9a\u4e49\u7b80\u5355\u7684\u533f\u540d\u51fd\u6570\u3002<\/li>\n\n\n\n<li><strong>\u9ad8\u9636\u51fd\u6570<\/strong>\uff1a\u63a5\u53d7\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u5e76\u8fd4\u56de\u51fd\u6570\u7684\u51fd\u6570\uff0c\u5982 <code>map()<\/code>\u3001<code>filter()<\/code> \u548c <code>reduce()<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u51fd\u6570\u662f Python \u7f16\u7a0b\u7684\u6838\u5fc3\u5de5\u5177\u4e4b\u4e00\uff0c\u7075\u6d3b\u638c\u63e1\u51fd\u6570\u7684\u7528\u6cd5\uff0c\u53ef\u4ee5\u8ba9\u4f60\u7684\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u4e14\u9ad8\u6548\u3002\u66f4\u591a\u8be6\u7ec6\u5185\u5bb9\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u51fd\u6570\u662f\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u57fa\u672c\u6784\u5efa\u5757\uff0c\u5728 Python \u4e2d\uff0c\u51fd\u6570\u7528\u4e8e\u7ec4\u7ec7\u53ef\u91cd\u7528\u7684\u4ee3\u7801\u7247\u6bb5\u3002Python \u63d0\u4f9b\u4e86\u975e\u5e38\u7075\u6d3b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2761,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-2760","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-3-"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2760","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=2760"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2760\/revisions"}],"predecessor-version":[{"id":2762,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2760\/revisions\/2762"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/2761"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=2760"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=2760"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=2760"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}