{"id":872,"date":"2025-01-11T12:03:00","date_gmt":"2025-01-11T04:03:00","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=872"},"modified":"2025-01-11T12:03:00","modified_gmt":"2025-01-11T04:03:00","slug":"python%e4%b8%ad%e7%9a%84%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%ef%bc%9a%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e9%94%99%e8%af%af%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/11\/python%e4%b8%ad%e7%9a%84%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%ef%bc%9a%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5%e4%b8%8e%e9%94%99%e8%af%af%e8%b0%83%e8%af%95\/","title":{"rendered":"Python\u4e2d\u7684\u5f02\u5e38\u5904\u7406\uff1a\u6700\u4f73\u5b9e\u8df5\u4e0e\u9519\u8bef\u8c03\u8bd5"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u7a0b\u5e8f\u96be\u514d\u4f1a\u9047\u5230\u9519\u8bef\u548c\u5f02\u5e38\u3002\u4e3a\u4e86\u4fdd\u8bc1\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0cPython\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\u3002\u901a\u8fc7\u5408\u9002\u7684\u5f02\u5e38\u5904\u7406\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u8ba9\u7a0b\u5e8f\u5728\u53d1\u751f\u9519\u8bef\u65f6\u4f18\u96c5\u5730\u505c\u6b62\u6216\u91c7\u53d6\u8865\u6551\u63aa\u65bd\uff0c\u800c\u4e0d\u4f1a\u5bfc\u81f4\u6574\u4e2a\u5e94\u7528\u5d29\u6e83\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u5c06\u6df1\u5165\u63a2\u8ba8Python\u4e2d\u7684\u5f02\u5e38\u5904\u7406\uff0c\u5c55\u793a\u6700\u4f73\u5b9e\u8df5\u548c\u5e38\u89c1\u7684\u9519\u8bef\u8c03\u8bd5\u6280\u5de7\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u4ec0\u4e48\u662f\u5f02\u5e38\u5904\u7406\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f02\u5e38\u5904\u7406\u662f\u6307\u5728\u7a0b\u5e8f\u8fd0\u884c\u65f6\uff0c\u9047\u5230\u9519\u8bef\u6216\u5f02\u5e38\u65f6\uff0c\u91c7\u53d6\u4e00\u79cd\u9002\u5f53\u7684\u63aa\u65bd\u6765\u5904\u7406\u8fd9\u4e9b\u5f02\u5e38\u3002Python\u7684\u5f02\u5e38\u5904\u7406\u901a\u8fc7<code>try<\/code>\u3001<code>except<\/code>\u3001<code>else<\/code>\u548c<code>finally<\/code>\u8bed\u53e5\u6765\u5b9e\u73b0\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 \u5f02\u5e38\u5904\u7406\u7ed3\u6784<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    # \u53ef\u80fd\u4f1a\u51fa\u9519\u7684\u4ee3\u7801\n    pass\nexcept ExceptionType:\n    # \u5f02\u5e38\u53d1\u751f\u65f6\u6267\u884c\u7684\u4ee3\u7801\n    pass\nelse:\n    # \u5982\u679c\u6ca1\u6709\u5f02\u5e38\u53d1\u751f\uff0c\u6267\u884c\u7684\u4ee3\u7801\n    pass\nfinally:\n    # \u4e0d\u7ba1\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c\u90fd\u4f1a\u6267\u884c\u7684\u4ee3\u7801\n    pass<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>try<\/code>\uff1a\u653e\u7f6e\u53ef\u80fd\u5f15\u53d1\u5f02\u5e38\u7684\u4ee3\u7801\u3002<\/li>\n\n\n\n<li><code>except<\/code>\uff1a\u5f53<code>try<\/code>\u5757\u4e2d\u7684\u4ee3\u7801\u53d1\u751f\u5f02\u5e38\u65f6\uff0c\u4f1a\u8df3\u8f6c\u5230<code>except<\/code>\u5757\u3002<\/li>\n\n\n\n<li><code>else<\/code>\uff1a\u5982\u679c\u6ca1\u6709\u5f02\u5e38\u53d1\u751f\uff0c<code>else<\/code>\u5757\u4e2d\u7684\u4ee3\u7801\u4f1a\u88ab\u6267\u884c\u3002<\/li>\n\n\n\n<li><code>finally<\/code>\uff1a\u65e0\u8bba\u662f\u5426\u53d1\u751f\u5f02\u5e38\uff0c<code>finally<\/code>\u5757\u4e2d\u7684\u4ee3\u7801\u90fd\u4f1a\u88ab\u6267\u884c\u3002\u901a\u5e38\u7528\u4e8e\u6e05\u7406\u8d44\u6e90\uff08\u5982\u5173\u95ed\u6587\u4ef6\u3001\u6570\u636e\u5e93\u8fde\u63a5\u7b49\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u5e38\u89c1\u7684\u5f02\u5e38\u7c7b\u578b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python\u5b9a\u4e49\u4e86\u591a\u79cd\u5185\u7f6e\u5f02\u5e38\u7c7b\u578b\uff0c\u5e38\u89c1\u7684\u6709\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>ZeroDivisionError<\/code>\uff1a\u9664\u4ee5\u96f6\u65f6\u5f15\u53d1\u3002<\/li>\n\n\n\n<li><code>IndexError<\/code>\uff1a\u5217\u8868\u7d22\u5f15\u8d85\u51fa\u8303\u56f4\u65f6\u5f15\u53d1\u3002<\/li>\n\n\n\n<li><code>KeyError<\/code>\uff1a\u5b57\u5178\u4e2d\u6ca1\u6709\u6307\u5b9a\u7684\u952e\u65f6\u5f15\u53d1\u3002<\/li>\n\n\n\n<li><code>TypeError<\/code>\uff1a\u4e0d\u652f\u6301\u7684\u64cd\u4f5c\u6216\u4e0d\u5339\u914d\u7684\u6570\u636e\u7c7b\u578b\u65f6\u5f15\u53d1\u3002<\/li>\n\n\n\n<li><code>ValueError<\/code>\uff1a\u4f20\u9012\u7ed9\u51fd\u6570\u6216\u64cd\u4f5c\u7684\u503c\u65e0\u6548\u65f6\u5f15\u53d1\u3002<\/li>\n\n\n\n<li><code>FileNotFoundError<\/code>\uff1a\u5c1d\u8bd5\u6253\u5f00\u4e0d\u5b58\u5728\u7684\u6587\u4ef6\u65f6\u5f15\u53d1\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 \u793a\u4f8b\uff1a\u4e0d\u540c\u7684\u5f02\u5e38\u7c7b\u578b<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code># ZeroDivisionError \u793a\u4f8b\ntry:\n    result = 1 \/ 0\nexcept ZeroDivisionError as e:\n    print(f\"Error: {e}\")\n\n# IndexError \u793a\u4f8b\nmy_list = &#91;1, 2, 3]\ntry:\n    print(my_list&#91;5])\nexcept IndexError as e:\n    print(f\"Error: {e}\")<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u6355\u83b7\u591a\u4e2a\u5f02\u5e38<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u65f6\u6211\u4eec\u9700\u8981\u6355\u83b7\u591a\u4e2a\u7c7b\u578b\u7684\u5f02\u5e38\uff0c\u53ef\u4ee5\u5728<code>except<\/code>\u8bed\u53e5\u4e2d\u5217\u51fa\u591a\u4e2a\u5f02\u5e38\u7c7b\u578b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    x = int(input(\"Enter a number: \"))\n    result = 10 \/ x\nexcept (ZeroDivisionError, ValueError) as e:\n    print(f\"Error: {e}\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u5916\uff0c\u53ef\u4ee5\u4f7f\u7528<code>except<\/code>\u8bed\u53e5\u6355\u83b7\u6240\u6709\u7c7b\u578b\u7684\u5f02\u5e38\uff0c\u65b9\u6cd5\u662f\u6355\u83b7\u57fa\u7c7b<code>Exception<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    x = int(input(\"Enter a number: \"))\n    result = 10 \/ x\nexcept Exception as e:\n    print(f\"Unexpected error: {e}\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f46\u662f\uff0c\u6355\u83b7\u6240\u6709\u5f02\u5e38\u5e76\u4e0d\u63a8\u8350\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u9690\u85cf\u7a0b\u5e8f\u4e2d\u7684\u6f5c\u5728\u95ee\u9898\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u5e94\u8be5\u5c3d\u91cf\u6355\u83b7\u7279\u5b9a\u7684\u5f02\u5e38\u7c7b\u578b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u81ea\u5b9a\u4e49\u5f02\u5e38<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python\u5141\u8bb8\u4f60\u521b\u5efa\u81ea\u5df1\u7684\u5f02\u5e38\u7c7b\u578b\u3002\u8fd9\u4e9b\u81ea\u5b9a\u4e49\u5f02\u5e38\u901a\u5e38\u662f\u7ee7\u627f\u81ea<code>Exception<\/code>\u7c7b\u7684\u5b50\u7c7b\u3002\u81ea\u5b9a\u4e49\u5f02\u5e38\u53ef\u4ee5\u4e3a\u7a0b\u5e8f\u63d0\u4f9b\u66f4\u5177\u4f53\u548c\u6709\u610f\u4e49\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4.1 \u521b\u5efa\u81ea\u5b9a\u4e49\u5f02\u5e38<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>class CustomError(Exception):\n    def __init__(self, message):\n        self.message = message\n        super().__init__(self.message)\n\n# \u4f7f\u7528\u81ea\u5b9a\u4e49\u5f02\u5e38\ntry:\n    raise CustomError(\"This is a custom error\")\nexcept CustomError as e:\n    print(f\"Custom exception caught: {e}\")<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u4f7f\u7528<code>else<\/code>\u548c<code>finally<\/code><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728Python\u7684\u5f02\u5e38\u5904\u7406\u7ed3\u6784\u4e2d\uff0c<code>else<\/code>\u548c<code>finally<\/code>\u662f\u4e24\u4e2a\u5e38\u7528\u7684\u5757\u3002<code>else<\/code>\u5757\u7528\u4e8e\u5f53\u6ca1\u6709\u5f02\u5e38\u65f6\u6267\u884c\uff0c<code>finally<\/code>\u5757\u7528\u4e8e\u65e0\u8bba\u662f\u5426\u53d1\u751f\u5f02\u5e38\u90fd\u8981\u6267\u884c\u7684\u6e05\u7406\u5de5\u4f5c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.1 <code>else<\/code>\u5757\u7684\u4f7f\u7528<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    result = 10 \/ 2\nexcept ZeroDivisionError:\n    print(\"Cannot divide by zero\")\nelse:\n    print(f\"Result: {result}\")  # \u5982\u679c\u6ca1\u6709\u53d1\u751f\u5f02\u5e38\uff0c\u6267\u884c\u6b64\u90e8\u5206<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5.2 <code>finally<\/code>\u5757\u7684\u4f7f\u7528<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>finally<\/code>\u5757\u901a\u5e38\u7528\u4e8e\u8d44\u6e90\u7684\u6e05\u7406\uff0c\u786e\u4fdd\u5728\u7a0b\u5e8f\u9000\u51fa\u524d\u6267\u884c\u5173\u95ed\u64cd\u4f5c\uff0c\u5982\u5173\u95ed\u6587\u4ef6\u3001\u91ca\u653e\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try:\n    file = open(\"example.txt\", \"r\")\n    content = file.read()\nexcept FileNotFoundError:\n    print(\"File not found!\")\nfinally:\n    if 'file' in locals():\n        file.close()  # \u786e\u4fdd\u6587\u4ef6\u88ab\u5173\u95ed<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u8c03\u8bd5Python\u4e2d\u7684\u9519\u8bef<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8c03\u8bd5\u662f\u7a0b\u5e8f\u5458\u65e5\u5e38\u5de5\u4f5c\u4e2d\u4e0d\u53ef\u907f\u514d\u7684\u4e00\u90e8\u5206\u3002\u4e86\u89e3\u5982\u4f55\u9ad8\u6548\u8c03\u8bd5Python\u4ee3\u7801\uff0c\u6709\u52a9\u4e8e\u5feb\u901f\u5b9a\u4f4d\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6.1 \u4f7f\u7528<code>print()<\/code>\u8c03\u8bd5<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u7b80\u5355\u7684\u8c03\u8bd5\u65b9\u6cd5\u662f\u4f7f\u7528<code>print()<\/code>\u8bed\u53e5\uff0c\u8f93\u51fa\u53d8\u91cf\u7684\u503c\u6216\u7a0b\u5e8f\u6267\u884c\u7684\u72b6\u6001\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def divide(a, b):\n    print(f\"Dividing {a} by {b}\")\n    return a \/ b\n\nresult = divide(10, 2)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">6.2 \u4f7f\u7528Python\u5185\u7f6e\u7684<code>pdb<\/code>\u8c03\u8bd5\u5668<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>pdb<\/code>\uff08Python Debugger\uff09\u662fPython\u7684\u6807\u51c6\u8c03\u8bd5\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u63d2\u5165<code>pdb.set_trace()<\/code>\u6765\u8bbe\u7f6e\u65ad\u70b9\uff0c\u6267\u884c\u5230\u6b64\u65f6\u7a0b\u5e8f\u4f1a\u6682\u505c\uff0c\u5141\u8bb8\u4f60\u4ea4\u4e92\u5f0f\u5730\u68c0\u67e5\u53d8\u91cf\u3001\u63a7\u5236\u7a0b\u5e8f\u6267\u884c\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import pdb\n\ndef divide(a, b):\n    pdb.set_trace()  # \u5728\u6b64\u8bbe\u7f6e\u65ad\u70b9\n    return a \/ b\n\nresult = divide(10, 2)<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">6.3 \u4f7f\u7528IDE\u4e2d\u7684\u8c03\u8bd5\u5de5\u5177<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5927\u591a\u6570\u73b0\u4ee3\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VS Code\u7b49\u90fd\u63d0\u4f9b\u56fe\u5f62\u5316\u7684\u8c03\u8bd5\u5de5\u5177\u3002\u4f60\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u67e5\u770b\u53d8\u91cf\u7684\u503c\u548c\u8c03\u7528\u5806\u6808\uff0c\u8fd9\u4e9b\u5de5\u5177\u5927\u5927\u7b80\u5316\u4e86\u8c03\u8bd5\u8fc7\u7a0b\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">7. \u6700\u4f73\u5b9e\u8df5\u4e0e\u603b\u7ed3<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6355\u83b7\u7279\u5b9a\u5f02\u5e38<\/strong>\uff1a\u5c3d\u91cf\u907f\u514d\u6355\u83b7\u6240\u6709\u5f02\u5e38\u7c7b\u578b\uff0c\u6355\u83b7\u7279\u5b9a\u5f02\u5e38\u53ef\u4ee5\u5e2e\u52a9\u5b9a\u4f4d\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u4f7f\u7528<code>else<\/code>\u548c<code>finally<\/code><\/strong>\uff1a\u5728\u5408\u9002\u7684\u573a\u666f\u4e2d\u4f7f\u7528<code>else<\/code>\u548c<code>finally<\/code>\uff0c<code>else<\/code>\u9002\u7528\u4e8e\u6b63\u5e38\u6267\u884c\u7684\u540e\u7eed\u64cd\u4f5c\uff0c<code>finally<\/code>\u9002\u7528\u4e8e\u6e05\u7406\u8d44\u6e90\u3002<\/li>\n\n\n\n<li><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u5f02\u5e38<\/strong>\uff1a\u5bf9\u4e8e\u590d\u6742\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8003\u8651\u521b\u5efa\u81ea\u5b9a\u4e49\u5f02\u5e38\u7c7b\u578b\u6765\u8868\u8fbe\u66f4\u6709\u610f\u4e49\u7684\u9519\u8bef\u4fe1\u606f\u3002<\/li>\n\n\n\n<li><strong>\u8c03\u8bd5\u6280\u5de7<\/strong>\uff1a\u4f7f\u7528<code>print()<\/code>\u3001<code>pdb<\/code>\u8c03\u8bd5\u5668\u6216IDE\u5185\u7f6e\u8c03\u8bd5\u5de5\u5177\uff0c\u5e2e\u52a9\u4f60\u5feb\u901f\u5b9a\u4f4d\u5e76\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u826f\u597d\u7684\u5f02\u5e38\u5904\u7406\u548c\u8c03\u8bd5\u6280\u5de7\uff0c\u4f60\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u9760\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u5728\u9762\u5bf9\u9519\u8bef\u65f6\u66f4\u52a0\u5065\u58ee\u3001\u7a33\u5b9a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u7a0b\u5e8f\u96be\u514d\u4f1a\u9047\u5230\u9519\u8bef\u548c\u5f02\u5e38\u3002\u4e3a\u4e86\u4fdd\u8bc1\u7a0b\u5e8f\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0cPython\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5f02\u5e38\u5904\u7406\u673a\u5236\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-872","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/872","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=872"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/872\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/872\/revisions\/873"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}