{"id":836,"date":"2025-01-11T10:59:36","date_gmt":"2025-01-11T02:59:36","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=836"},"modified":"2025-01-11T11:05:49","modified_gmt":"2025-01-11T03:05:49","slug":"python%e5%9c%a8%e7%89%a9%e8%81%94%e7%bd%91%e4%b8%ad%e7%9a%84%e5%ba%94%e7%94%a8%e5%85%a8%e9%9d%a2%e8%a7%a3%e6%9e%90%ef%bc%9a%e8%ae%be%e5%a4%87%e6%8e%a7%e5%88%b6%e3%80%81%e6%95%b0%e6%8d%ae%e9%87%87","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/11\/python%e5%9c%a8%e7%89%a9%e8%81%94%e7%bd%91%e4%b8%ad%e7%9a%84%e5%ba%94%e7%94%a8%e5%85%a8%e9%9d%a2%e8%a7%a3%e6%9e%90%ef%bc%9a%e8%ae%be%e5%a4%87%e6%8e%a7%e5%88%b6%e3%80%81%e6%95%b0%e6%8d%ae%e9%87%87\/","title":{"rendered":"Python\u5728\u7269\u8054\u7f51\u4e2d\u7684\u5e94\u7528\u5168\u9762\u89e3\u6790\uff1a\u8bbe\u5907\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u4e0e\u4e91\u7aef\u4ea4\u4e92"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u7269\u8054\u7f51\uff08Internet of Things, IoT\uff09\u6280\u672f\u6b63\u4ee5\u524d\u6240\u672a\u6709\u7684\u901f\u5ea6\u53d1\u5c55\uff0c\u63a8\u52a8\u7740\u4ece\u667a\u80fd\u5bb6\u5c45\u5230\u5de5\u4e1a\u81ea\u52a8\u5316\u7b49\u5404\u4e2a\u9886\u57df\u7684\u9769\u547d\u3002Python\uff0c\u4f5c\u4e3a\u4e00\u95e8\u6613\u4e8e\u5b66\u4e60\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5df2\u7ecf\u6210\u4e3a\u7269\u8054\u7f51\u5f00\u53d1\u4e2d\u7684\u91cd\u8981\u5de5\u5177\u4e4b\u4e00\u3002\u65e0\u8bba\u662f\u8bbe\u5907\u8fde\u63a5\u3001\u6570\u636e\u6536\u96c6\u3001\u4f20\u8f93\u3001\u5904\u7406\uff0c\u8fd8\u662f\u4e91\u7aef\u8ba1\u7b97\u4e0e\u63a7\u5236\uff0cPython \u90fd\u80fd\u591f\u63d0\u4f9b\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u6587\u5c06\u5168\u9762\u89e3\u6790 Python \u5728\u7269\u8054\u7f51\u5e94\u7528\u4e2d\u7684\u5173\u952e\u4f5c\u7528\uff0c\u5e76\u63a2\u8ba8\u5982\u4f55\u5229\u7528\u5176\u5f3a\u5927\u7684\u751f\u6001\u7cfb\u7edf\u548c\u5e93\u6765\u6784\u5efa\u9ad8\u6548\u7684\u7269\u8054\u7f51\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>Python \u5728\u7269\u8054\u7f51\u4e2d\u7684\u4f5c\u7528<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python \u5728\u7269\u8054\u7f51\u4e2d\u7684\u5e94\u7528\u5e7f\u6cdb\uff0c\u4e3b\u8981\u96c6\u4e2d\u5728\u8bbe\u5907\u8fde\u63a5\u3001\u6570\u636e\u5904\u7406\u3001\u7f51\u7edc\u901a\u4fe1\u3001\u4f20\u611f\u5668\u8bfb\u53d6\u3001\u4e91\u7aef\u4ea4\u4e92\u7b49\u9886\u57df\u3002\u5176\u7b80\u6d01\u7684\u8bed\u6cd5\u3001\u8de8\u5e73\u53f0\u6027\u548c\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301\uff0c\u4f7f\u5176\u5728\u5feb\u901f\u8fed\u4ee3\u548c\u539f\u578b\u5f00\u53d1\u4e2d\u975e\u5e38\u53d7\u6b22\u8fce\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 <strong>\u786c\u4ef6\u63a5\u53e3\u4e0e\u8bbe\u5907\u63a7\u5236<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u7269\u8054\u7f51\u9879\u76ee\u4e2d\uff0cPython \u53ef\u4ee5\u7528\u6765\u63a7\u5236\u786c\u4ef6\u8bbe\u5907\uff0c\u4f8b\u5982\u8bfb\u53d6\u4f20\u611f\u5668\u6570\u636e\u3001\u9a71\u52a8\u7535\u673a\u3001\u63a7\u5236LED\u706f\u7b49\u3002\u901a\u8fc7\u4e0e\u6811\u8393\u6d3e\uff08Raspberry Pi\uff09\u6216\u5176\u4ed6\u5fae\u63a7\u5236\u5668\u7684\u96c6\u6210\uff0cPython \u53ef\u4ee5\u4e0e\u786c\u4ef6\u63a5\u53e3\u8fdb\u884c\u9ad8\u6548\u4e92\u52a8\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Raspberry Pi + Python<\/strong>\uff1a\u6811\u8393\u6d3e\u662f\u7269\u8054\u7f51\u5f00\u53d1\u4e2d\u7684\u5e38\u7528\u786c\u4ef6\u5e73\u53f0\uff0cPython \u662f\u5176\u5b98\u65b9\u63a8\u8350\u7684\u7f16\u7a0b\u8bed\u8a00\u3002\u5f00\u53d1\u8005\u53ef\u4ee5\u901a\u8fc7 GPIO\uff08General Purpose Input Output\uff09\u63a5\u53e3\u4e0e\u5916\u90e8\u4f20\u611f\u5668\u6216\u6267\u884c\u5668\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u4f7f\u7528 Python \u63a7\u5236\u6811\u8393\u6d3e\u7684 LED \u706f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import RPi.GPIO as GPIO\nimport time\n\n# \u8bbe\u7f6eGPIO\u6a21\u5f0f\nGPIO.setmode(GPIO.BCM)\n\n# \u8bbe\u7f6eGPIO 17\u4e3a\u8f93\u51fa\u6a21\u5f0f\nGPIO.setup(17, GPIO.OUT)\n\n# \u70b9\u4eaeLED\u706f\nGPIO.output(17, GPIO.HIGH)\ntime.sleep(1)\n\n# \u7184\u706dLED\u706f\nGPIO.output(17, GPIO.LOW)\n\n# \u6e05\u7406GPIO\u8bbe\u7f6e\nGPIO.cleanup()<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0cPython \u63a7\u5236\u6811\u8393\u6d3e\u7684 GPIO \u63a5\u53e3\uff0c\u70b9\u4eae\u4e00\u4e2a LED \u706f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 <strong>\u4f20\u611f\u5668\u6570\u636e\u91c7\u96c6\u4e0e\u5904\u7406<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Python \u8fd8\u53ef\u4ee5\u7528\u4e8e\u8bfb\u53d6\u548c\u5904\u7406\u6765\u81ea\u5404\u79cd\u4f20\u611f\u5668\u7684\u6570\u636e\u3002\u901a\u8fc7\u4e0e\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u3001\u6c14\u4f53\u4f20\u611f\u5668\u3001\u538b\u529b\u4f20\u611f\u5668\u7b49\u786c\u4ef6\u7684\u96c6\u6210\uff0cPython \u80fd\u591f\u5b9e\u65f6\u83b7\u53d6\u6570\u636e\u5e76\u8fdb\u884c\u9884\u5904\u7406\u3001\u5206\u6790\u548c\u5b58\u50a8\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Adafruit\u5e93<\/strong>\uff1aAdafruit \u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u4f20\u611f\u5668\u548c\u6a21\u5757\uff0c\u5e76\u4e14\u4e3a Python \u63d0\u4f9b\u4e86\u65b9\u4fbf\u7684\u5e93\uff0c\u4f7f\u5f97\u4e0e\u5404\u79cd\u786c\u4ef6\u7684\u4ea4\u4e92\u53d8\u5f97\u7b80\u5355\u6613\u884c\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u4f7f\u7528 Python \u8bfb\u53d6\u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u6570\u636e\uff08DHT11\uff09<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import Adafruit_DHT\n\n# \u8bbe\u7f6e\u4f20\u611f\u5668\u7c7b\u578b\u548cGPIO\u53e3\nsensor = Adafruit_DHT.DHT11\npin = 4\n\n# \u8bfb\u53d6\u6e29\u6e7f\u5ea6\nhumidity, temperature = Adafruit_DHT.read_retry(sensor, pin)\n\nif humidity is not None and temperature is not None:\n    print(f'Temperature={temperature}\u00b0C  Humidity={humidity}%')\nelse:\n    print('Failed to get reading. Try again!')<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u4ee3\u7801\u901a\u8fc7 Python \u83b7\u53d6 DHT11 \u6e29\u6e7f\u5ea6\u4f20\u611f\u5668\u7684\u6570\u636e\uff0c\u5e76\u663e\u793a\u6e29\u6e7f\u5ea6\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.3 <strong>\u7f51\u7edc\u901a\u4fe1\u4e0e\u6570\u636e\u4f20\u8f93<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u7269\u8054\u7f51\u8bbe\u5907\u9700\u8981\u8fdb\u884c\u6570\u636e\u7684\u4f20\u8f93\u548c\u901a\u4fe1\u3002Python \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u7f51\u7edc\u901a\u4fe1\u5e93\uff0c\u652f\u6301\u591a\u79cd\u534f\u8bae\u548c\u65b9\u5f0f\uff0c\u5305\u62ec HTTP\u3001MQTT\u3001CoAP \u7b49\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MQTT\u534f\u8bae<\/strong>\uff1aMQTT\uff08Message Queuing Telemetry Transport\uff09\u662f\u7269\u8054\u7f51\u4e2d\u5e38\u7528\u7684\u8f7b\u91cf\u7ea7\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff0cPython \u7684 <code>paho-mqtt<\/code> \u5e93\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u4e0e MQTT \u670d\u52a1\u5668\u7684\u8fde\u63a5\u548c\u6570\u636e\u901a\u4fe1\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u4f7f\u7528 Python \u901a\u8fc7 MQTT \u53d1\u9001\u548c\u63a5\u6536\u6d88\u606f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import paho.mqtt.client as mqtt\n\n# \u8bbe\u7f6e\u56de\u8c03\u51fd\u6570\ndef on_connect(client, userdata, flags, rc):\n    print(f\"Connected with result code {rc}\")\n    client.subscribe(\"home\/temperature\")\n\ndef on_message(client, userdata, msg):\n    print(f\"Received message: {msg.payload.decode()}\")\n\n# \u521b\u5efaMQTT\u5ba2\u6237\u7aef\nclient = mqtt.Client()\n\n# \u8bbe\u7f6e\u8fde\u63a5\u548c\u6d88\u606f\u56de\u8c03\u51fd\u6570\nclient.on_connect = on_connect\nclient.on_message = on_message\n\n# \u8fde\u63a5\u5230MQTT broker\nclient.connect(\"mqtt.eclipse.org\", 1883, 60)\n\n# \u8fdb\u5165\u6d88\u606f\u5faa\u73af\nclient.loop_start()\n\n# \u53d1\u5e03\u6d88\u606f\nclient.publish(\"home\/temperature\", \"22\u00b0C\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0cPython \u4f7f\u7528 MQTT \u534f\u8bae\u4e0e\u670d\u52a1\u5668\u8fdb\u884c\u901a\u4fe1\uff0c\u53d1\u9001\u6e29\u5ea6\u6570\u636e\u5e76\u63a5\u6536\u6d88\u606f\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.4 <strong>\u4e91\u5e73\u53f0\u4e0e\u6570\u636e\u5206\u6790<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u968f\u7740\u7269\u8054\u7f51\u8bbe\u5907\u7684\u6570\u636e\u91cf\u4e0d\u65ad\u589e\u52a0\uff0c\u4e91\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u53d8\u5f97\u8d8a\u6765\u8d8a\u91cd\u8981\u3002Python \u63d0\u4f9b\u4e86\u4e0e\u4e3b\u6d41\u4e91\u5e73\u53f0\uff08\u5982 AWS\u3001Google Cloud\u3001Azure\uff09\u7684\u96c6\u6210\u5e93\uff0c\u80fd\u591f\u5c06\u8bbe\u5907\u6570\u636e\u4e0a\u4f20\u5230\u4e91\u7aef\u8fdb\u884c\u5b58\u50a8\u548c\u5206\u6790\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>AWS IoT<\/strong>\uff1aAWS IoT \u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5e73\u53f0\uff0c\u7528\u4e8e\u8fde\u63a5\u8bbe\u5907\u548c\u8fdb\u884c\u5927\u89c4\u6a21\u6570\u636e\u5206\u6790\u3002\u901a\u8fc7 Python \u7684 <code>boto3<\/code> \u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u4e0e AWS IoT \u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u793a\u4f8b\uff1a\u4f7f\u7528 Python \u5c06\u6570\u636e\u4e0a\u4f20\u5230 AWS S3<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import boto3\n\n# \u521d\u59cb\u5316S3\u5ba2\u6237\u7aef\ns3 = boto3.client('s3')\n\n# \u4e0a\u4f20\u6587\u4ef6\u5230S3\ns3.upload_file('file.txt', 'mybucket', 'file.txt')<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u8fc7 Python\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5c06\u7269\u8054\u7f51\u6570\u636e\u76f4\u63a5\u4e0a\u4f20\u5230\u4e91\u5e73\u53f0\uff0c\u5e76\u8fdb\u4e00\u6b65\u8fdb\u884c\u6570\u636e\u5206\u6790\u3001\u53ef\u89c6\u5316\u548c\u667a\u80fd\u51b3\u7b56\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Python \u5728\u7269\u8054\u7f51\u4e2d\u7684\u4f18\u52bf<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6613\u4e8e\u4e0a\u624b\u548c\u5f00\u53d1<\/strong>\uff1aPython \u7684\u8bed\u6cd5\u7b80\u6d01\u660e\u4e86\uff0c\u975e\u5e38\u9002\u5408\u5feb\u901f\u5f00\u53d1\u548c\u539f\u578b\u8bbe\u8ba1\u3002\u5728\u7269\u8054\u7f51\u9879\u76ee\u4e2d\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0\u4f20\u611f\u5668\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\u3001\u8bbe\u5907\u7ba1\u7406\u7b49\u529f\u80fd\u3002<\/li>\n\n\n\n<li><strong>\u5e7f\u6cdb\u7684\u786c\u4ef6\u652f\u6301<\/strong>\uff1aPython \u62e5\u6709\u4e30\u5bcc\u7684\u786c\u4ef6\u5e93\u548c\u6846\u67b6\uff0c\u652f\u6301 Raspberry Pi\u3001Arduino\u3001BeagleBone \u7b49\u591a\u79cd\u786c\u4ef6\u5e73\u53f0\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5728\u8fd9\u4e9b\u5e73\u53f0\u4e0a\u8fdb\u884c\u7269\u8054\u7f51\u8bbe\u5907\u7684\u5f00\u53d1\u3002<\/li>\n\n\n\n<li><strong>\u5f3a\u5927\u7684\u793e\u533a\u652f\u6301<\/strong>\uff1aPython \u62e5\u6709\u5e9e\u5927\u7684\u5f00\u6e90\u793e\u533a\uff0c\u63d0\u4f9b\u4e86\u5927\u91cf\u7684\u6587\u6863\u3001\u793a\u4f8b\u548c\u5f00\u6e90\u9879\u76ee\uff0c\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5feb\u901f\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n\n\n\n<li><strong>\u8de8\u5e73\u53f0\u6027<\/strong>\uff1aPython \u8de8\u5e73\u53f0\u7279\u6027\u4f7f\u5f97\u5b83\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u786c\u4ef6\u548c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u79fb\u690d\u548c\u7ef4\u62a4\u7269\u8054\u7f51\u5e94\u7528\u3002<\/li>\n\n\n\n<li><strong>\u4e30\u5bcc\u7684\u6570\u636e\u5206\u6790\u5de5\u5177<\/strong>\uff1aPython \u62e5\u6709\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u5982 Pandas\u3001NumPy \u548c Matplotlib\uff0c\u4f7f\u5f97\u7269\u8054\u7f51\u6570\u636e\u7684\u5b58\u50a8\u3001\u5206\u6790\u548c\u53ef\u89c6\u5316\u53d8\u5f97\u7b80\u5355\u4e14\u9ad8\u6548\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\">3. <strong>Python \u5728\u7269\u8054\u7f51\u7684\u5b9e\u9645\u5e94\u7528\u6848\u4f8b<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Python \u5728\u7269\u8054\u7f51\u9886\u57df\u7684\u5b9e\u9645\u5e94\u7528\u5341\u5206\u5e7f\u6cdb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5178\u578b\u7684\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u667a\u80fd\u5bb6\u5c45<\/strong>\uff1a\u5229\u7528 Python \u63a7\u5236\u667a\u80fd\u5bb6\u5c45\u8bbe\u5907\uff0c\u5982\u667a\u80fd\u706f\u6ce1\u3001\u6e29\u63a7\u8bbe\u5907\u3001\u95e8\u9501\u7b49\uff0c\u63d0\u4f9b\u5bb6\u5ead\u81ea\u52a8\u5316\u548c\u667a\u80fd\u63a7\u5236\u529f\u80fd\u3002<\/li>\n\n\n\n<li><strong>\u5de5\u4e1a\u7269\u8054\u7f51\uff08IIoT\uff09<\/strong>\uff1aPython \u5728\u5de5\u4e1a\u81ea\u52a8\u5316\u4e2d\u626e\u6f14\u91cd\u8981\u89d2\u8272\uff0c\u901a\u8fc7\u4f20\u611f\u5668\u6570\u636e\u91c7\u96c6\u3001\u76d1\u63a7\u548c\u8fdc\u7a0b\u63a7\u5236\u8bbe\u5907\uff0c\u63d0\u5347\u751f\u4ea7\u6548\u7387\u548c\u5b89\u5168\u6027\u3002<\/li>\n\n\n\n<li><strong>\u5065\u5eb7\u76d1\u6d4b\u7cfb\u7edf<\/strong>\uff1aPython \u88ab\u7528\u4e8e\u5f00\u53d1\u5065\u5eb7\u76d1\u6d4b\u8bbe\u5907\uff0c\u5982\u667a\u80fd\u624b\u73af\u3001\u4f53\u6e29\u76d1\u6d4b\u4eea\u7b49\uff0c\u5b9e\u65f6\u91c7\u96c6\u5e76\u4e0a\u4f20\u5065\u5eb7\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u73af\u5883\u76d1\u6d4b<\/strong>\uff1a\u901a\u8fc7\u4f20\u611f\u5668\u6536\u96c6\u73af\u5883\u6570\u636e\uff08\u5982\u7a7a\u6c14\u8d28\u91cf\u3001\u6e29\u6e7f\u5ea6\u7b49\uff09\uff0c\u5e76\u4f7f\u7528 Python \u8fdb\u884c\u5b9e\u65f6\u5206\u6790\u548c\u62a5\u8b66\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\">Python \u5728\u7269\u8054\u7f51\u4e2d\u7684\u5e94\u7528\u5df2\u6210\u4e3a\u884c\u4e1a\u8d8b\u52bf\u3002\u51ed\u501f\u5176\u6613\u5b66\u6027\u3001\u5f3a\u5927\u5e93\u652f\u6301\u4ee5\u53ca\u7075\u6d3b\u7684\u786c\u4ef6\u96c6\u6210\u80fd\u529b\uff0cPython \u4e0d\u4ec5\u9002\u7528\u4e8e\u5feb\u901f\u539f\u578b\u5f00\u53d1\uff0c\u8fd8\u80fd\u591f\u6784\u5efa\u590d\u6742\u7684\u7269\u8054\u7f51\u7cfb\u7edf\u3002\u968f\u7740\u7269\u8054\u7f51\u8bbe\u5907\u6570\u91cf\u7684\u589e\u957f\u548c\u6570\u636e\u91cf\u7684\u589e\u5927\uff0cPython \u5c06\u7ee7\u7eed\u5728\u7269\u8054\u7f51\u7684\u5404\u4e2a\u5c42\u9762\u53d1\u6325\u91cd\u8981\u4f5c\u7528\u3002\u65e0\u8bba\u662f\u8bbe\u5907\u63a7\u5236\u3001\u6570\u636e\u91c7\u96c6\uff0c\u8fd8\u662f\u4e91\u7aef\u4ea4\u4e92\u4e0e\u6570\u636e\u5206\u6790\uff0cPython \u90fd\u662f\u4e00\u4e2a\u4e0d\u53ef\u6216\u7f3a\u7684\u5f00\u53d1\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7269\u8054\u7f51\uff08Internet of Things, IoT\uff09\u6280\u672f\u6b63\u4ee5\u524d\u6240\u672a\u6709\u7684\u901f\u5ea6\u53d1\u5c55\uff0c\u63a8\u52a8\u7740\u4ece\u667a\u80fd\u5bb6\u5c45\u5230\u5de5\u4e1a\u81ea\u52a8 [&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-836","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/836","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=836"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/836\/revisions"}],"predecessor-version":[{"id":837,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/836\/revisions\/837"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=836"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=836"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}