{"id":2772,"date":"2025-03-14T22:54:19","date_gmt":"2025-03-14T14:54:19","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=2772"},"modified":"2025-03-14T22:54:19","modified_gmt":"2025-03-14T14:54:19","slug":"python3-%e6%a8%a1%e5%9d%97%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/03\/14\/python3-%e6%a8%a1%e5%9d%97%e8%af%a6%e8%a7%a3\/","title":{"rendered":"Python3 \u6a21\u5757\u8be6\u89e3"},"content":{"rendered":"\n<p>\u5728 Python \u4e2d\uff0c\u6a21\u5757\u662f\u7ec4\u7ec7 Python \u4ee3\u7801\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u5b83\u901a\u5e38\u662f\u4e00\u4e2a Python \u6587\u4ef6\uff0c\u5305\u542b\u4e86\u51fd\u6570\u3001\u7c7b\u3001\u53d8\u91cf\u4ee5\u53ca\u53ef\u6267\u884c\u7684\u4ee3\u7801\u3002\u901a\u8fc7\u6a21\u5757\u7684\u5f15\u5165\uff0c\u53ef\u4ee5\u5c06\u4e0d\u540c\u7684\u4ee3\u7801\u903b\u8f91\u5206\u9694\u5230\u4e0d\u540c\u7684\u6587\u4ef6\u4e2d\uff0c\u4ece\u800c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u590d\u7528\u6027\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. \u6a21\u5757\u7684\u6982\u5ff5<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4ec0\u4e48\u662f\u6a21\u5757\uff1f<\/strong><\/h3>\n\n\n\n<p>\u6a21\u5757\u662f\u4e00\u4e2a Python \u6587\u4ef6\uff0c\u6587\u4ef6\u6269\u5c55\u540d\u4e3a <code>.py<\/code>\uff0c\u5b83\u5305\u542b\u4e86 Python \u7684\u51fd\u6570\u3001\u7c7b\u548c\u53d8\u91cf\u3002\u6a21\u5757\u7684\u4f5c\u7528\u662f\u7ec4\u7ec7\u4ee3\u7801\u548c\u63d0\u4f9b\u590d\u7528\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u6570\u5b66\u76f8\u5173\u7684\u529f\u80fd\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u5b83\u4eec\u653e\u5728\u4e00\u4e2a\u6a21\u5757\u4e2d\uff0c\u8fd9\u6837\u5176\u4ed6\u7a0b\u5e8f\u6216\u6587\u4ef6\u5c31\u53ef\u4ee5\u5bfc\u5165\u5e76\u4f7f\u7528\u8fd9\u4e9b\u529f\u80fd\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6a21\u5757\u7684\u5bfc\u5165<\/strong><\/h3>\n\n\n\n<p>Python \u63d0\u4f9b\u4e86\u591a\u79cd\u5bfc\u5165\u6a21\u5757\u7684\u65b9\u5f0f\uff0c\u4f7f\u5f97\u6211\u4eec\u80fd\u591f\u7075\u6d3b\u5730\u4f7f\u7528\u6a21\u5757\u4e2d\u7684\u529f\u80fd\u3002\u901a\u8fc7\u5bfc\u5165\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u6a21\u5757\u4e2d\u7684\u51fd\u6570\u3001\u7c7b\u548c\u53d8\u91cf\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>2. \u521b\u5efa\u4e00\u4e2a\u6a21\u5757<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u6a21\u5757<\/strong><\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a Python \u6587\u4ef6\u6765\u5b9a\u4e49\u6a21\u5757\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a <code>math_functions.py<\/code> \u7684\u6a21\u5757\uff0c\u5b83\u5305\u542b\u4e86\u4e24\u4e2a\u7b80\u5355\u7684\u51fd\u6570\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># math_functions.py\ndef add(x, y):\n    return x + y\n\ndef subtract(x, y):\n    return x - y<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u5728\u53e6\u4e00\u4e2a Python \u6587\u4ef6\u4e2d\u5bfc\u5165\u5e76\u4f7f\u7528\u8be5\u6a21\u5757\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># main.py\nimport math_functions\n\nresult = math_functions.add(5, 3)\nprint(result)  # \u8f93\u51fa: 8\n\nresult = math_functions.subtract(5, 3)\nprint(result)  # \u8f93\u51fa: 2<\/code><\/pre>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>import<\/code> \u8bed\u53e5\u6765\u5bfc\u5165\u6a21\u5757\u548c\u4f7f\u7528\u5176\u4e2d\u7684\u5185\u5bb9\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>3. \u5bfc\u5165\u6a21\u5757\u7684\u65b9\u5f0f<\/strong><\/h2>\n\n\n\n<p>Python \u63d0\u4f9b\u4e86\u51e0\u79cd\u4e0d\u540c\u7684\u65b9\u5f0f\u6765\u5bfc\u5165\u6a21\u5757\uff0c\u8fd9\u6837\u6211\u4eec\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u6700\u9002\u5408\u7684\u5bfc\u5165\u65b9\u5f0f\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. \u5bfc\u5165\u6574\u4e2a\u6a21\u5757<\/strong><\/h3>\n\n\n\n<p>\u4f7f\u7528 <code>import<\/code> \u8bed\u53e5\u5bfc\u5165\u6574\u4e2a\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u6a21\u5757\u540d\u79f0\u6765\u8bbf\u95ee\u5176\u4e2d\u7684\u51fd\u6570\u548c\u7c7b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\n\nresult = math.sqrt(16)\nprint(result)  # \u8f93\u51fa: 4.0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. \u4ece\u6a21\u5757\u4e2d\u5bfc\u5165\u7279\u5b9a\u7684\u5185\u5bb9<\/strong><\/h3>\n\n\n\n<p>\u5982\u679c\u4f60\u53ea\u60f3\u5bfc\u5165\u6a21\u5757\u4e2d\u7684\u67d0\u4e2a\u7279\u5b9a\u51fd\u6570\u3001\u7c7b\u6216\u53d8\u91cf\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>from module import name<\/code> \u8bed\u53e5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import sqrt\n\nresult = sqrt(16)\nprint(result)  # \u8f93\u51fa: 4.0<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u53ea\u5bfc\u5165\u4e86 <code>sqrt<\/code> \u51fd\u6570\uff0c\u800c\u6ca1\u6709\u5bfc\u5165\u6574\u4e2a\u6a21\u5757\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. \u7ed9\u6a21\u5757\u8d77\u522b\u540d<\/strong><\/h3>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>as<\/code> \u5173\u952e\u5b57\u7ed9\u5bfc\u5165\u7684\u6a21\u5757\u8d77\u4e00\u4e2a\u522b\u540d\uff0c\u8fd9\u6837\u5728\u4f7f\u7528\u6a21\u5757\u65f6\u53ef\u4ee5\u7b80\u5316\u540d\u79f0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import numpy as np\n\narr = np.array(&#91;1, 2, 3])\nprint(arr)  # \u8f93\u51fa: &#91;1 2 3]<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. \u5bfc\u5165\u6a21\u5757\u4e2d\u7684\u6240\u6709\u5185\u5bb9<\/strong><\/h3>\n\n\n\n<p>\u901a\u8fc7 <code>from module import *<\/code> \u53ef\u4ee5\u5bfc\u5165\u6a21\u5757\u4e2d\u7684\u6240\u6709\u5185\u5bb9\u3002\u867d\u7136\u8fd9\u6837\u975e\u5e38\u7b80\u4fbf\uff0c\u4f46\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u4f1a\u5f15\u5165\u4e0d\u5fc5\u8981\u7684\u547d\u540d\u51b2\u7a81\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from math import *\n\nresult = sqrt(16)\nprint(result)  # \u8f93\u51fa: 4.0<\/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. <code>__name__<\/code> \u5c5e\u6027<\/strong><\/h2>\n\n\n\n<p>\u6bcf\u4e2a Python \u6a21\u5757\u90fd\u6709\u4e00\u4e2a\u5185\u7f6e\u5c5e\u6027 <code>__name__<\/code>\uff0c\u5b83\u8868\u793a\u6a21\u5757\u7684\u540d\u79f0\u3002\u5982\u679c\u8be5\u6a21\u5757\u662f\u76f4\u63a5\u8fd0\u884c\u7684\uff0c<code>__name__<\/code> \u7684\u503c\u5c06\u662f <code>__main__<\/code>\u3002\u5982\u679c\u8be5\u6a21\u5757\u662f\u4f5c\u4e3a\u5bfc\u5165\u6a21\u5757\u8fd0\u884c\u7684\uff0c<code>__name__<\/code> \u7684\u503c\u5c06\u662f\u6a21\u5757\u7684\u540d\u5b57\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u793a\u4f8b\uff1a\u6a21\u5757\u7684 <code>__name__<\/code> \u5c5e\u6027<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code># mymodule.py\ndef greet(name):\n    print(f\"Hello, {name}!\")\n\nif __name__ == \"__main__\":\n    greet(\"Alice\")<\/code><\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u76f4\u63a5\u8fd0\u884c <code>mymodule.py<\/code>\uff0c\u8f93\u51fa\u5c06\u662f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Hello, Alice!<\/code><\/pre>\n\n\n\n<p>\u4f46\u662f\uff0c\u5982\u679c\u4f60\u5728\u5176\u4ed6\u811a\u672c\u4e2d\u5bfc\u5165 <code>mymodule<\/code>\uff0c<code>greet(\"Alice\")<\/code> \u4e0d\u4f1a\u88ab\u6267\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># main.py\nimport mymodule<\/code><\/pre>\n\n\n\n<p>\u8fd9\u91cc\u4e0d\u4f1a\u8f93\u51fa <code>Hello, Alice!<\/code>\uff0c\u56e0\u4e3a <code>mymodule.py<\/code> \u53ea\u662f\u4f5c\u4e3a\u6a21\u5757\u88ab\u5bfc\u5165\uff0c\u5e76\u6ca1\u6709\u76f4\u63a5\u6267\u884c\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>5. \u6807\u51c6\u5e93\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p>Python \u81ea\u5e26\u4e86\u5f88\u591a\u6807\u51c6\u5e93\u6a21\u5757\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5b8c\u6210\u5404\u79cd\u5e38\u89c1\u7684\u4efb\u52a1\u3002\u4f60\u53ef\u4ee5\u76f4\u63a5\u5bfc\u5165\u5e76\u4f7f\u7528\u8fd9\u4e9b\u6a21\u5757\uff0c\u65e0\u9700\u5b89\u88c5\u989d\u5916\u7684\u4f9d\u8d56\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5e38\u7528\u7684\u6807\u51c6\u5e93\u6a21\u5757<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>math<\/code><\/strong>\uff1a\u63d0\u4f9b\u6570\u5b66\u76f8\u5173\u7684\u51fd\u6570\uff0c\u5982 <code>sqrt()<\/code>, <code>pow()<\/code>, <code>sin()<\/code> \u7b49\u3002<\/li>\n\n\n\n<li><strong><code>os<\/code><\/strong>\uff1a\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u4ea4\u4e92\uff0c\u5982\u6587\u4ef6\u64cd\u4f5c\u3001\u73af\u5883\u53d8\u91cf\u64cd\u4f5c\u7b49\u3002<\/li>\n\n\n\n<li><strong><code>sys<\/code><\/strong>\uff1a\u4e0e Python \u89e3\u91ca\u5668\u4ea4\u4e92\uff0c\u5982\u547d\u4ee4\u884c\u53c2\u6570\u3001Python \u73af\u5883\u4fe1\u606f\u7b49\u3002<\/li>\n\n\n\n<li><strong><code>datetime<\/code><\/strong>\uff1a\u5904\u7406\u65e5\u671f\u548c\u65f6\u95f4\u3002<\/li>\n\n\n\n<li><strong><code>random<\/code><\/strong>\uff1a\u751f\u6210\u968f\u673a\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u6807\u51c6\u5e93\u6a21\u5757\u4f7f\u7528\u793a\u4f8b<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import math\nresult = math.sqrt(16)\nprint(result)  # \u8f93\u51fa: 4.0<\/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. \u7b2c\u4e09\u65b9\u6a21\u5757<\/strong><\/h2>\n\n\n\n<p>\u9664\u4e86 Python \u6807\u51c6\u5e93\uff0cPython \u793e\u533a\u8fd8\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u7b2c\u4e09\u65b9\u6a21\u5757\uff0c\u8fd9\u4e9b\u6a21\u5757\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7 Python \u7684\u5305\u7ba1\u7406\u5de5\u5177 <code>pip<\/code> \u6765\u5b89\u88c5\u3002\u5e38\u89c1\u7684\u7b2c\u4e09\u65b9\u6a21\u5757\u6709\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>requests<\/code><\/strong>\uff1a\u7528\u4e8e\u53d1\u9001 HTTP \u8bf7\u6c42\u3002<\/li>\n\n\n\n<li><strong><code>numpy<\/code><\/strong>\uff1a\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\u548c\u6570\u7ec4\u64cd\u4f5c\u3002<\/li>\n\n\n\n<li><strong><code>pandas<\/code><\/strong>\uff1a\u7528\u4e8e\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u3002<\/li>\n\n\n\n<li><strong><code>flask<\/code><\/strong>\uff1a\u8f7b\u91cf\u7ea7 Web \u6846\u67b6\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u5b89\u88c5\u7b2c\u4e09\u65b9\u6a21\u5757<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install requests<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u6a21\u5757<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import requests\nresponse = requests.get(\"https:\/\/www.example.com\")\nprint(response.status_code)  # \u8f93\u51fa: 200<\/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. \u5305\uff08Package\uff09<\/strong><\/h2>\n\n\n\n<p>\u5305\u662f\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u6a21\u5757\u7684\u76ee\u5f55\u3002\u5305\u8ba9\u6211\u4eec\u80fd\u591f\u66f4\u597d\u5730\u7ec4\u7ec7\u6a21\u5757\uff0c\u5c24\u5176\u662f\u5f53\u9879\u76ee\u53d8\u5f97\u5e9e\u5927\u65f6\u3002\u6bcf\u4e2a\u5305\u5fc5\u987b\u5305\u542b\u4e00\u4e2a <code>__init__.py<\/code> \u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u544a\u8bc9 Python \u8be5\u76ee\u5f55\u662f\u4e00\u4e2a\u5305\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u521b\u5efa\u5305<\/strong><\/h3>\n\n\n\n<p>\u5047\u8bbe\u4f60\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3a <code>my_package<\/code> \u7684\u5305\uff0c\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>my_package\/\n    __init__.py\n    module1.py\n    module2.py<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>\u4f7f\u7528\u5305\u4e2d\u7684\u6a21\u5757<\/strong><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>from my_package import module1\n\nmodule1.some_function()<\/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>8. \u603b\u7ed3<\/strong><\/h2>\n\n\n\n<p>\u6a21\u5757\u5728 Python \u4e2d\u626e\u6f14\u7740\u975e\u5e38\u91cd\u8981\u7684\u89d2\u8272\uff0c\u5b83\u8ba9\u4ee3\u7801\u66f4\u52a0\u6a21\u5757\u5316\u3001\u53ef\u7ef4\u62a4\uff0c\u5e76\u4e14\u80fd\u591f\u63d0\u9ad8\u4ee3\u7801\u7684\u91cd\u7528\u6027\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5bfc\u5165\u6a21\u5757\uff0c\u5982 <code>import<\/code>\u3001<code>from ... import<\/code> \u7b49\uff0c\u6765\u7075\u6d3b\u4f7f\u7528\u6a21\u5757\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6a21\u5757\u8ba9\u6211\u4eec\u80fd\u591f\u5c06\u7a0b\u5e8f\u5206\u5272\u6210\u591a\u4e2a\u6587\u4ef6\uff0c\u4fbf\u4e8e\u7ba1\u7406\u548c\u7ef4\u62a4\u3002<\/li>\n\n\n\n<li>Python \u7684\u6807\u51c6\u5e93\u5305\u542b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u80fd\u591f\u6ee1\u8db3\u5927\u90e8\u5206\u5f00\u53d1\u9700\u6c42\u3002<\/li>\n\n\n\n<li>\u7b2c\u4e09\u65b9\u6a21\u5757\u901a\u8fc7 <code>pip<\/code> \u5b89\u88c5\uff0c\u53ef\u4ee5\u8fdb\u4e00\u6b65\u6269\u5c55 Python \u7684\u80fd\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u901a\u8fc7\u4f7f\u7528\u6a21\u5757\u548c\u5305\uff0cPython \u7a0b\u5e8f\u53ef\u4ee5\u66f4\u52a0\u6e05\u6670\u3001\u7ed3\u6784\u5316\uff0c\u540c\u65f6\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u91cd\u7528\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002\u66f4\u591a\u8be6\u7ec6\u5185\u5bb9\u8bf7\u5173\u6ce8\u5176\u4ed6\u76f8\u5173\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Python \u4e2d\uff0c\u6a21\u5757\u662f\u7ec4\u7ec7 Python \u4ee3\u7801\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u5b83\u901a\u5e38\u662f\u4e00\u4e2a Python \u6587\u4ef6\uff0c\u5305\u542b\u4e86\u51fd\u6570\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2773,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[],"class_list":["post-2772","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\/2772","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=2772"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2772\/revisions"}],"predecessor-version":[{"id":2774,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/2772\/revisions\/2774"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media\/2773"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=2772"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=2772"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=2772"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}