{"id":942,"date":"2025-01-12T22:50:13","date_gmt":"2025-01-12T14:50:13","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=942"},"modified":"2025-01-12T22:50:13","modified_gmt":"2025-01-12T14:50:13","slug":"python3-%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%ef%bc%9a%e9%80%9a%e8%bf%87-socket-%e5%92%8c-socketserver-%e6%9e%84%e5%bb%ba%e9%ab%98%e6%95%88%e7%9a%84-tcp-udp-%e7%bd%91%e7%bb%9c","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/12\/python3-%e7%bd%91%e7%bb%9c%e7%bc%96%e7%a8%8b%ef%bc%9a%e9%80%9a%e8%bf%87-socket-%e5%92%8c-socketserver-%e6%9e%84%e5%bb%ba%e9%ab%98%e6%95%88%e7%9a%84-tcp-udp-%e7%bd%91%e7%bb%9c\/","title":{"rendered":"Python3 \u7f51\u7edc\u7f16\u7a0b\uff1a\u901a\u8fc7\u00a0socket\u00a0\u548c\u00a0socketserver\u00a0\u6784\u5efa\u9ad8\u6548\u7684 TCP\/UDP \u7f51\u7edc\u670d\u52a1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728 Python \u4e2d\uff0c\u7f51\u7edc\u7f16\u7a0b\u662f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u4e0e\u5176\u4ed6\u8ba1\u7b97\u673a\u6216\u670d\u52a1\u8fdb\u884c\u901a\u4fe1\u7684\u6838\u5fc3\u3002\u65e0\u8bba\u662f\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u804a\u5929\u5e94\u7528\u3001\u6784\u5efa Web \u670d\u52a1\uff0c\u8fd8\u662f\u5f00\u53d1\u5206\u5e03\u5f0f\u7cfb\u7edf\uff0c\u7f51\u7edc\u7f16\u7a0b\u90fd\u626e\u6f14\u7740\u81f3\u5173\u91cd\u8981\u7684\u89d2\u8272\u3002Python \u63d0\u4f9b\u4e86\u4e24\u4e2a\u91cd\u8981\u7684\u6a21\u5757\u6765\u5b9e\u73b0\u7f51\u7edc\u901a\u4fe1\uff1a<code>socket<\/code> \u548c <code>socketserver<\/code>\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528 <code>socket<\/code> \u548c <code>socketserver<\/code> \u6a21\u5757\u6765\u6784\u5efa\u53ef\u9760\u7684 TCP\/UDP \u7f51\u7edc\u670d\u52a1\u3002\u4f60\u5c06\u5b66\u4e60\u5230\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u6765\u521b\u5efa\u591a\u79cd\u7c7b\u578b\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\uff0c\u5305\u62ec\u652f\u6301\u591a\u7ebf\u7a0b\u548c\u591a\u8fdb\u7a0b\u7684\u670d\u52a1\u5668\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. <strong>\u57fa\u7840\u7f51\u7edc\u7f16\u7a0b\uff1a<code>socket<\/code> \u6a21\u5757<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>socket<\/code> \u6a21\u5757\u662f Python \u4e2d\u6700\u57fa\u7840\u7684\u7f51\u7edc\u7f16\u7a0b\u6a21\u5757\uff0c\u7528\u4e8e\u5b9e\u73b0\u4f4e\u5c42\u7684\u7f51\u7edc\u901a\u4fe1\u3002\u901a\u8fc7 <code>socket<\/code>\uff0c\u4f60\u53ef\u4ee5\u5b9e\u73b0\u57fa\u4e8e TCP \u6216 UDP \u534f\u8bae\u7684\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 <strong>\u521b\u5efa TCP \u670d\u52a1\u5668<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">TCP\uff08Transmission Control Protocol\uff09\u662f\u4e00\u79cd\u9762\u5411\u8fde\u63a5\u7684\u534f\u8bae\uff0c\u786e\u4fdd\u6570\u636e\u7684\u53ef\u9760\u4f20\u8f93\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684 TCP \u670d\u52a1\u5668\u793a\u4f8b\uff0c\u80fd\u591f\u63a5\u6536\u5ba2\u6237\u7aef\u7684\u6570\u636e\u5e76\u8fd4\u56de\u54cd\u5e94\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socket\n\ndef create_server():\n    # \u521b\u5efa socket \u5bf9\u8c61\n    server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n\n    # \u7ed1\u5b9a IP \u548c\u7aef\u53e3\n    server_socket.bind(('localhost', 12345))\n\n    # \u5f00\u59cb\u76d1\u542c\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u6700\u591a\u5141\u8bb8 1 \u4e2a\u5ba2\u6237\u7aef\u8fde\u63a5\n    server_socket.listen(1)\n\n    print(\"\u670d\u52a1\u5668\u542f\u52a8\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...\")\n\n    # \u63a5\u53d7\u5ba2\u6237\u7aef\u8fde\u63a5\n    client_socket, client_address = server_socket.accept()\n    print(f\"\u5ba2\u6237\u7aef\u8fde\u63a5\u6210\u529f\uff0c\u6765\u81ea {client_address}\")\n\n    # \u63a5\u6536\u6570\u636e\n    data = client_socket.recv(1024)\n    print(f\"\u63a5\u6536\u5230\u7684\u6570\u636e\uff1a{data.decode()}\")\n\n    # \u53d1\u9001\u54cd\u5e94\n    client_socket.send(b\"Hello, Client! You've connected to the server.\")\n\n    # \u5173\u95ed\u8fde\u63a5\n    client_socket.close()\n    server_socket.close()\n\nif __name__ == \"__main__\":\n    create_server()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 <strong>\u521b\u5efa TCP \u5ba2\u6237\u7aef<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5ba2\u6237\u7aef\u4ee3\u7801\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 <code>socket<\/code> \u6a21\u5757\u8fde\u63a5\u670d\u52a1\u5668\uff0c\u53d1\u9001\u6570\u636e\u5e76\u63a5\u6536\u54cd\u5e94\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socket\n\ndef create_client():\n    # \u521b\u5efa socket \u5bf9\u8c61\n    client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n\n    # \u8fde\u63a5\u5230\u670d\u52a1\u5668\n    client_socket.connect(('localhost', 12345))\n\n    # \u53d1\u9001\u6570\u636e\n    client_socket.send(b\"Hello, Server!\")\n\n    # \u63a5\u6536\u54cd\u5e94\n    data = client_socket.recv(1024)\n    print(f\"\u63a5\u6536\u5230\u670d\u52a1\u5668\u7684\u54cd\u5e94\uff1a{data.decode()}\")\n\n    # \u5173\u95ed\u8fde\u63a5\n    client_socket.close()\n\nif __name__ == \"__main__\":\n    create_client()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u8fd0\u884c\u6d41\u7a0b\uff1a<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u542f\u52a8\u670d\u52a1\u5668\uff1a<code>python server.py<\/code><\/li>\n\n\n\n<li>\u542f\u52a8\u5ba2\u6237\u7aef\uff1a<code>python client.py<\/code><\/li>\n\n\n\n<li>\u5ba2\u6237\u7aef\u5411\u670d\u52a1\u5668\u53d1\u9001\u6d88\u606f\uff0c\u670d\u52a1\u5668\u56de\u5e94\u6d88\u606f\u3002<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>\u4f7f\u7528 <code>socketserver<\/code> \u7b80\u5316\u7f51\u7edc\u670d\u52a1\u5668\u7684\u6784\u5efa<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>socketserver<\/code> \u662f Python \u63d0\u4f9b\u7684\u4e00\u4e2a\u9ad8\u7ea7\u7f51\u7edc\u7f16\u7a0b\u6a21\u5757\uff0c\u65e8\u5728\u7b80\u5316\u670d\u52a1\u5668\u7aef\u7684\u521b\u5efa\u3002\u4e0e\u76f4\u63a5\u4f7f\u7528 <code>socket<\/code> \u6a21\u5757\u76f8\u6bd4\uff0c<code>socketserver<\/code> \u63d0\u4f9b\u4e86\u66f4\u9ad8\u5c42\u6b21\u7684\u62bd\u8c61\uff0c\u5141\u8bb8\u4f60\u4e13\u6ce8\u4e8e\u4e1a\u52a1\u903b\u8f91\u800c\u4e0d\u662f\u5e95\u5c42\u5b9e\u73b0\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>socketserver<\/code> \u63d0\u4f9b\u4e86\u591a\u79cd\u7c7b\u578b\u7684\u670d\u52a1\u5668\u5b9e\u73b0\uff0c\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>TCPServer<\/code>\uff1aTCP \u534f\u8bae\u7684\u670d\u52a1\u5668\u3002<\/li>\n\n\n\n<li><code>UDPServer<\/code>\uff1aUDP \u534f\u8bae\u7684\u670d\u52a1\u5668\u3002<\/li>\n\n\n\n<li><code>ThreadingTCPServer<\/code>\uff1a\u652f\u6301\u591a\u7ebf\u7a0b\u7684 TCP \u670d\u52a1\u5668\u3002<\/li>\n\n\n\n<li><code>ForkingTCPServer<\/code>\uff1a\u652f\u6301\u591a\u8fdb\u7a0b\u7684 TCP \u670d\u52a1\u5668\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">2.1 <strong>\u521b\u5efa TCP \u670d\u52a1\u5668\uff08\u540c\u6b65\uff09<\/strong><\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>import socketserver\n\nclass MyHandler(socketserver.BaseRequestHandler):\n    def handle(self):\n        # \u83b7\u53d6\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u6570\u636e\n        data = self.request.recv(1024).strip()\n        print(f\"\u63a5\u6536\u5230\u7684\u6570\u636e: {data.decode()}\")\n\n        # \u5411\u5ba2\u6237\u7aef\u53d1\u9001\u54cd\u5e94\n        self.request.sendall(b\"Hello, TCP Client!\")\n\n# \u521b\u5efa\u670d\u52a1\u5668\u5bf9\u8c61\uff0c\u6307\u5b9a\u5904\u7406\u7c7b\u4e3a MyHandler\nif __name__ == \"__main__\":\n    server = socketserver.TCPServer(('localhost', 12345), MyHandler)\n    print(\"\u670d\u52a1\u5668\u542f\u52a8\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...\")\n    server.serve_forever()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.2 <strong>\u521b\u5efa TCP \u670d\u52a1\u5668\uff08\u591a\u7ebf\u7a0b\uff09<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>ThreadingTCPServer<\/code> \u4f7f\u5f97\u670d\u52a1\u5668\u80fd\u591f\u540c\u65f6\u5904\u7406\u591a\u4e2a\u5ba2\u6237\u7aef\u7684\u8fde\u63a5\uff0c\u6bcf\u4e2a\u5ba2\u6237\u7aef\u90fd\u7531\u4e00\u4e2a\u72ec\u7acb\u7684\u7ebf\u7a0b\u5904\u7406\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socketserver\n\nclass MyHandler(socketserver.BaseRequestHandler):\n    def handle(self):\n        data = self.request.recv(1024).strip()\n        print(f\"\u63a5\u6536\u5230\u7684\u6570\u636e: {data.decode()}\")\n        self.request.sendall(b\"Hello, Multi-client TCP Server!\")\n\n# \u521b\u5efa\u591a\u7ebf\u7a0b TCP \u670d\u52a1\u5668\nif __name__ == \"__main__\":\n    server = socketserver.ThreadingTCPServer(('localhost', 12345), MyHandler)\n    print(\"\u591a\u7ebf\u7a0b TCP \u670d\u52a1\u5668\u542f\u52a8\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...\")\n    server.serve_forever()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.3 <strong>\u521b\u5efa UDP \u670d\u52a1\u5668<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>UDPServer<\/code> \u7528\u4e8e\u521b\u5efa\u57fa\u4e8e UDP \u534f\u8bae\u7684\u670d\u52a1\u5668\u3002UDP \u662f\u65e0\u8fde\u63a5\u7684\u534f\u8bae\uff0c\u76f8\u8f83\u4e8e TCP\uff0c\u5177\u6709\u66f4\u4f4e\u7684\u5ef6\u8fdf\u548c\u66f4\u5c11\u7684\u5f00\u9500\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socketserver\n\nclass MyHandler(socketserver.BaseRequestHandler):\n    def handle(self):\n        data, client_address = self.request\n        print(f\"\u63a5\u6536\u5230\u6765\u81ea {client_address} \u7684\u6570\u636e\uff1a{data.decode()}\")\n        self.request.sendto(b\"Hello, UDP Client!\", client_address)\n\n# \u521b\u5efa UDP \u670d\u52a1\u5668\nif __name__ == \"__main__\":\n    server = socketserver.UDPServer(('localhost', 12345), MyHandler)\n    print(\"UDP \u670d\u52a1\u5668\u542f\u52a8\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...\")\n    server.serve_forever()<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2.4 <strong>\u521b\u5efa\u591a\u8fdb\u7a0b\u670d\u52a1\u5668<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u5e0c\u671b\u4e3a\u6bcf\u4e2a\u5ba2\u6237\u7aef\u8fde\u63a5\u542f\u52a8\u4e00\u4e2a\u72ec\u7acb\u7684\u8fdb\u7a0b\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>ForkingTCPServer<\/code>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import socketserver\n\nclass MyHandler(socketserver.BaseRequestHandler):\n    def handle(self):\n        data = self.request.recv(1024).strip()\n        print(f\"\u63a5\u6536\u5230\u7684\u6570\u636e: {data.decode()}\")\n        self.request.sendall(b\"Hello, Forking TCP Server!\")\n\n# \u521b\u5efa\u591a\u8fdb\u7a0b TCP \u670d\u52a1\u5668\nif __name__ == \"__main__\":\n    server = socketserver.ForkingTCPServer(('localhost', 12345), MyHandler)\n    print(\"\u591a\u8fdb\u7a0b TCP \u670d\u52a1\u5668\u542f\u52a8\uff0c\u7b49\u5f85\u5ba2\u6237\u7aef\u8fde\u63a5...\")\n    server.serve_forever()<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u6bd4\u8f83 <code>socket<\/code> \u548c <code>socketserver<\/code><\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7075\u6d3b\u6027<\/strong>\uff1a<code>socket<\/code> \u6a21\u5757\u63d0\u4f9b\u5e95\u5c42\u7684\u7f51\u7edc\u64cd\u4f5c\uff0c\u9002\u5408\u9700\u8981\u7ec6\u81f4\u63a7\u5236\u7684\u573a\u666f\u3002<code>socketserver<\/code> \u63d0\u4f9b\u4e86\u66f4\u9ad8\u5c42\u7684\u62bd\u8c61\uff0c\u51cf\u5c11\u4e86\u4ee3\u7801\u91cf\u548c\u590d\u6742\u5ea6\uff0c\u9002\u5408\u5feb\u901f\u6784\u5efa\u670d\u52a1\u5668\u3002<\/li>\n\n\n\n<li><strong>\u5e76\u53d1\u5904\u7406<\/strong>\uff1a<code>socketserver<\/code> \u63d0\u4f9b\u4e86\u591a\u7ebf\u7a0b\u548c\u591a\u8fdb\u7a0b\u7684\u652f\u6301\uff0c\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5904\u7406\u5e76\u53d1\u5ba2\u6237\u7aef\u8fde\u63a5\uff0c\u800c <code>socket<\/code> \u6a21\u5757\u9700\u8981\u81ea\u5df1\u5b9e\u73b0\u5e76\u53d1\u63a7\u5236\u3002<\/li>\n\n\n\n<li><strong>\u4f7f\u7528\u573a\u666f<\/strong>\uff1a<code>socket<\/code> \u66f4\u9002\u5408\u9700\u8981\u5b8c\u5168\u81ea\u5b9a\u4e49\u7684\u7f51\u7edc\u901a\u4fe1\uff08\u5982\u9700\u8981\u66f4\u591a\u63a7\u5236\u7684\u534f\u8bae\u6216\u6570\u636e\u683c\u5f0f\uff09\u3002<code>socketserver<\/code> \u5219\u9002\u7528\u4e8e\u5927\u591a\u6570\u901a\u7528\u7684\u7f51\u7edc\u670d\u52a1\u5668\uff0c\u5982 Web \u670d\u52a1\u5668\u3001\u804a\u5929\u5ba4\u7b49\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\"><strong>\u603b\u7ed3<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7 Python \u63d0\u4f9b\u7684 <code>socket<\/code> \u548c <code>socketserver<\/code> \u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u9ad8\u6548\u7684\u7f51\u7edc\u670d\u52a1\u3002<code>socket<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u4f4e\u5c42\u6b21\u7684\u7f51\u7edc\u63a7\u5236\uff0c\u9002\u7528\u4e8e\u9700\u8981\u7ec6\u8282\u5b9a\u5236\u7684\u5e94\u7528\uff0c\u800c <code>socketserver<\/code> \u5219\u4e3a\u6784\u5efa\u670d\u52a1\u5668\u63d0\u4f9b\u4e86\u66f4\u9ad8\u5c42\u7684\u5c01\u88c5\uff0c\u80fd\u591f\u51cf\u5c11\u6837\u677f\u4ee3\u7801\u5e76\u652f\u6301\u591a\u7ebf\u7a0b\u3001\u591a\u8fdb\u7a0b\u7b49\u5e76\u53d1\u6a21\u578b\u3002\u638c\u63e1\u8fd9\u4e9b\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u5728 Python \u4e2d\u5b9e\u73b0\u5404\u79cd\u7f51\u7edc\u5e94\u7528\uff0c\u4ece\u7b80\u5355\u7684\u5ba2\u6237\u7aef-\u670d\u52a1\u5668\u6a21\u578b\u5230\u590d\u6742\u7684\u9ad8\u5e76\u53d1\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 Python \u4e2d\uff0c\u7f51\u7edc\u7f16\u7a0b\u662f\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u4e0e\u5176\u4ed6\u8ba1\u7b97\u673a\u6216\u670d\u52a1\u8fdb\u884c\u901a\u4fe1\u7684\u6838\u5fc3\u3002\u65e0\u8bba\u662f\u6784\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u804a\u5929\u5e94\u7528\u3001\u6784 [&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-942","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/942","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=942"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/942\/revisions"}],"predecessor-version":[{"id":943,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/942\/revisions\/943"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}