{"id":1156259,"date":"2025-01-13T18:13:48","date_gmt":"2025-01-13T10:13:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1156259.html"},"modified":"2025-01-13T18:13:51","modified_gmt":"2025-01-13T10:13:51","slug":"python%e5%a6%82%e4%bd%95%e8%8e%b7%e5%8f%96%e8%bd%a6%e8%be%86%e9%80%9f%e5%ba%a6-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1156259.html","title":{"rendered":"python\u5982\u4f55\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25194741\/8663c674-5948-4e26-a51a-4af91dc2c443.webp\" alt=\"python\u5982\u4f55\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\" \/><\/p>\n<p><p> <strong>Python\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528GPS\u6a21\u5757\u3001\u5229\u7528OBD-II\u63a5\u53e3\u3001\u901a\u8fc7\u6444\u50cf\u5934\u4e0e\u56fe\u50cf\u5904\u7406\u6280\u672f\u3001\u5229\u7528\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u3002<\/strong>\u5176\u4e2d\uff0c\u5229\u7528OBD-II\u63a5\u53e3\u662f\u8f83\u4e3a\u76f4\u63a5\u548c\u53ef\u9760\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002OBD-II\uff08On-Board Diagnostics II\uff09\u63a5\u53e3\u662f\u73b0\u4ee3\u8f66\u8f86\u666e\u904d\u914d\u7f6e\u7684\u4e00\u79cd\u8bca\u65ad\u7cfb\u7edf\u63a5\u53e3\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6\u8f66\u8f86\u7684\u5404\u79cd\u4f20\u611f\u5668\u6570\u636e\uff0c\u5305\u62ec\u901f\u5ea6\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u5b9e\u73b0\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5229\u7528OBD-II\u63a5\u53e3\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6<\/h3>\n<\/p>\n<p><h4>1. OBD-II\u63a5\u53e3\u7b80\u4ecb<\/h4>\n<\/p>\n<p><p>OBD-II\u63a5\u53e3\u662f\u73b0\u4ee3\u8f66\u8f86\u666e\u904d\u914d\u7f6e\u7684\u4e00\u79cd\u8bca\u65ad\u63a5\u53e3\uff0c\u901a\u8fc7\u8be5\u63a5\u53e3\u53ef\u4ee5\u8bfb\u53d6\u8f66\u8f86\u7684\u5404\u79cd\u4f20\u611f\u5668\u6570\u636e\uff0c\u5305\u62ec\u53d1\u52a8\u673a\u8f6c\u901f\u3001\u8f66\u8f86\u901f\u5ea6\u3001\u6cb9\u8017\u7b49\u3002\u901a\u5e38\u4f4d\u4e8e\u9a7e\u9a76\u5458\u4fa7\u7684\u4eea\u8868\u76d8\u4e0b\u65b9\u3002<\/p>\n<\/p>\n<p><h4>2. \u786c\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<p><p>\u8981\u4f7f\u7528OBD-II\u63a5\u53e3\u8bfb\u53d6\u6570\u636e\uff0c\u9700\u8981\u4e00\u4e9b\u786c\u4ef6\u8bbe\u5907\uff1a<\/p>\n<\/p>\n<ul>\n<li>OBD-II\u8bfb\u5361\u5668\uff1a\u5e38\u89c1\u7684\u6709\u84dd\u7259\u3001USB\u3001WiFi\u7b49\u4e0d\u540c\u63a5\u53e3\u7c7b\u578b\u7684\u8bfb\u5361\u5668\u3002<\/li>\n<li>\u8ba1\u7b97\u673a\u6216\u79fb\u52a8\u8bbe\u5907\uff1a\u7528\u4e8e\u8fde\u63a5OBD-II\u8bfb\u5361\u5668\u5e76\u8fd0\u884cPython\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><h4>3. \u8f6f\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>pyOBD<\/code>\u6216<code>python-OBD<\/code>\u5e93\u6765\u4e0eOBD-II\u63a5\u53e3\u8fdb\u884c\u901a\u4fe1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>python-OBD<\/code>\u5e93\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h5>3.1 \u5b89\u88c5<code>python-OBD<\/code>\u5e93<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install obd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>3.2 \u8fde\u63a5OBD-II\u63a5\u53e3\u5e76\u8bfb\u53d6\u901f\u5ea6<\/h5>\n<\/p>\n<p><pre><code class=\"language-python\">import obd<\/p>\n<h2><strong>\u5efa\u7acbOBD\u8fde\u63a5<\/strong><\/h2>\n<p>connection = obd.OBD()<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u67e5\u8be2\u547d\u4ee4<\/strong><\/h2>\n<p>cmd = obd.commands.SPEED<\/p>\n<h2><strong>\u53d1\u9001\u67e5\u8be2\u547d\u4ee4\u5e76\u83b7\u53d6\u54cd\u5e94<\/strong><\/h2>\n<p>response = connection.query(cmd)<\/p>\n<h2><strong>\u8f93\u51fa\u901f\u5ea6\u503c<\/strong><\/h2>\n<p>print(response.value)  # \u4ee5km\/h\u4e3a\u5355\u4f4d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528GPS\u6a21\u5757\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6<\/h3>\n<\/p>\n<p><h4>1. GPS\u6a21\u5757\u7b80\u4ecb<\/h4>\n<\/p>\n<p><p>GPS\u6a21\u5757\u901a\u8fc7\u63a5\u6536\u536b\u661f\u4fe1\u53f7\u6765\u786e\u5b9a\u8bbe\u5907\u7684\u4f4d\u7f6e\u3001\u901f\u5ea6\u548c\u65b9\u5411\u7b49\u4fe1\u606f\u3002\u5e38\u7528\u7684GPS\u6a21\u5757\u6709UBlox\u3001NEO\u7cfb\u5217\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2. \u786c\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<ul>\n<li>GPS\u6a21\u5757\uff1a\u5982UBlox NEO-6M\u3002<\/li>\n<li>\u8ba1\u7b97\u673a\u6216\u79fb\u52a8\u8bbe\u5907\uff1a\u7528\u4e8e\u8fde\u63a5GPS\u6a21\u5757\u5e76\u8fd0\u884cPython\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><h4>3. \u8f6f\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>gps3<\/code>\u5e93\u6765\u4e0eGPS\u6a21\u5757\u8fdb\u884c\u901a\u4fe1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>gps3<\/code>\u5e93\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h5>3.1 \u5b89\u88c5<code>gps3<\/code>\u5e93<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install gps3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>3.2 \u8fde\u63a5GPS\u6a21\u5757\u5e76\u8bfb\u53d6\u901f\u5ea6<\/h5>\n<\/p>\n<p><pre><code class=\"language-python\">from gps3 import gps3<\/p>\n<h2><strong>\u521b\u5efaGPS\u8fde\u63a5<\/strong><\/h2>\n<p>gps_socket = gps3.GPSDSocket()<\/p>\n<p>data_stream = gps3.DataStream()<\/p>\n<p>gps_socket.connect()<\/p>\n<p>gps_socket.watch()<\/p>\n<h2><strong>\u8bfb\u53d6GPS\u6570\u636e<\/strong><\/h2>\n<p>for new_data in gps_socket:<\/p>\n<p>    if new_data:<\/p>\n<p>        data_stream.unpack(new_data)<\/p>\n<p>        print(&#39;Speed: {} m\/s&#39;.format(data_stream.TPV[&#39;speed&#39;]))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u6444\u50cf\u5934\u4e0e\u56fe\u50cf\u5904\u7406\u6280\u672f\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6<\/h3>\n<\/p>\n<p><h4>1. \u56fe\u50cf\u5904\u7406\u7b80\u4ecb<\/h4>\n<\/p>\n<p><p>\u5229\u7528\u6444\u50cf\u5934\u6355\u6349\u7684\u89c6\u9891\u6d41\uff0c\u901a\u8fc7\u56fe\u50cf\u5904\u7406\u6280\u672f\u53ef\u4ee5\u5206\u6790\u8f66\u8f86\u7684\u8fd0\u52a8\u8f68\u8ff9\uff0c\u4ece\u800c\u8ba1\u7b97\u51fa\u8f66\u8f86\u7684\u901f\u5ea6\u3002<\/p>\n<\/p>\n<p><h4>2. \u786c\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<ul>\n<li>\u6444\u50cf\u5934\uff1a\u7528\u4e8e\u6355\u6349\u8f66\u8f86\u8fd0\u52a8\u7684\u89c6\u9891\u3002<\/li>\n<li>\u8ba1\u7b97\u673a\u6216\u79fb\u52a8\u8bbe\u5907\uff1a\u7528\u4e8e\u8fd0\u884c\u56fe\u50cf\u5904\u7406\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><h4>3. \u8f6f\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>OpenCV<\/code>\u5e93\u6765\u5904\u7406\u89c6\u9891\u5e76\u8ba1\u7b97\u901f\u5ea6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h5>3.1 \u5b89\u88c5<code>OpenCV<\/code>\u5e93<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install opencv-python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>3.2 \u6355\u6349\u89c6\u9891\u5e76\u8ba1\u7b97\u901f\u5ea6<\/h5>\n<\/p>\n<p><pre><code class=\"language-python\">import cv2<\/p>\n<p>import numpy as np<\/p>\n<h2><strong>\u6253\u5f00\u6444\u50cf\u5934<\/strong><\/h2>\n<p>cap = cv2.VideoCapture(0)<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\u6765\u8ba1\u7b97\u901f\u5ea6<\/strong><\/h2>\n<p>def calculate_speed(prev_position, current_position, time_interval):<\/p>\n<p>    distance = np.linalg.norm(np.array(current_position) - np.array(prev_position))<\/p>\n<p>    speed = distance \/ time_interval<\/p>\n<p>    return speed<\/p>\n<h2><strong>\u521d\u59cb\u5316\u53d8\u91cf<\/strong><\/h2>\n<p>prev_position = None<\/p>\n<p>prev_time = None<\/p>\n<p>while True:<\/p>\n<p>    ret, frame = cap.read()<\/p>\n<p>    if not ret:<\/p>\n<p>        break<\/p>\n<p>    # \u5047\u8bbe\u8f66\u8f86\u4f4d\u4e8e\u56fe\u50cf\u7684\u4e2d\u5fc3<\/p>\n<p>    current_position = (frame.shape[1] \/\/ 2, frame.shape[0] \/\/ 2)<\/p>\n<p>    current_time = cv2.getTickCount() \/ cv2.getTickFrequency()<\/p>\n<p>    if prev_position is not None and prev_time is not None:<\/p>\n<p>        speed = calculate_speed(prev_position, current_position, current_time - prev_time)<\/p>\n<p>        print(&#39;Speed: {} pixels\/second&#39;.format(speed))<\/p>\n<p>    prev_position = current_position<\/p>\n<p>    prev_time = current_time<\/p>\n<p>    cv2.imshow(&#39;Frame&#39;, frame)<\/p>\n<p>    if cv2.w<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>tKey(1) &amp; 0xFF == ord(&#39;q&#39;):<\/p>\n<p>        break<\/p>\n<p>cap.release()<\/p>\n<p>cv2.destroyAllWindows()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5229\u7528\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6<\/h3>\n<\/p>\n<p><h4>1. \u52a0\u901f\u5ea6\u4f20\u611f\u5668\u7b80\u4ecb<\/h4>\n<\/p>\n<p><p>\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u901a\u8fc7\u6d4b\u91cf\u8bbe\u5907\u6cbf\u4e0d\u540c\u8f74\u5411\u7684\u52a0\u901f\u5ea6\u6765<a href=\"https:\/\/docs.pingcode.com\/agile\/project-management\/estimation\" target=\"_blank\">\u4f30\u7b97<\/a>\u901f\u5ea6\u548c\u65b9\u5411\u3002\u5e38\u7528\u7684\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u6709MPU6050\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2. \u786c\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<ul>\n<li>\u52a0\u901f\u5ea6\u4f20\u611f\u5668\uff1a\u5982MPU6050\u3002<\/li>\n<li>\u8ba1\u7b97\u673a\u6216\u79fb\u52a8\u8bbe\u5907\uff1a\u7528\u4e8e\u8fde\u63a5\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u5e76\u8fd0\u884cPython\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><h4>3. \u8f6f\u4ef6\u51c6\u5907<\/h4>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>mraa<\/code>\u6216<code>pyserial<\/code>\u5e93\u6765\u4e0e\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u8fdb\u884c\u901a\u4fe1\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528<code>pyserial<\/code>\u5e93\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h5>3.1 \u5b89\u88c5<code>pyserial<\/code>\u5e93<\/h5>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyserial<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h5>3.2 \u8fde\u63a5\u52a0\u901f\u5ea6\u4f20\u611f\u5668\u5e76\u8bfb\u53d6\u6570\u636e<\/h5>\n<\/p>\n<p><pre><code class=\"language-python\">import serial<\/p>\n<p>import time<\/p>\n<h2><strong>\u521d\u59cb\u5316\u4e32\u53e3\u8fde\u63a5<\/strong><\/h2>\n<p>ser = serial.Serial(&#39;\/dev\/ttyUSB0&#39;, 115200)<\/p>\n<h2><strong>\u521d\u59cb\u5316\u901f\u5ea6\u548c\u65f6\u95f4<\/strong><\/h2>\n<p>speed = 0<\/p>\n<p>prev_time = time.time()<\/p>\n<p>while True:<\/p>\n<p>    data = ser.readline().decode(&#39;utf-8&#39;).strip()<\/p>\n<p>    accel = float(data)  # \u5047\u8bbe\u4f20\u611f\u5668\u8fd4\u56de\u7684\u662f\u52a0\u901f\u5ea6\u503c<\/p>\n<p>    current_time = time.time()<\/p>\n<p>    # \u8ba1\u7b97\u65f6\u95f4\u95f4\u9694<\/p>\n<p>    time_interval = current_time - prev_time<\/p>\n<p>    # \u8ba1\u7b97\u901f\u5ea6<\/p>\n<p>    speed += accel * time_interval<\/p>\n<p>    prev_time = current_time<\/p>\n<p>    print(&#39;Speed: {} m\/s&#39;.format(speed))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u4e0a\u8ff0\u65b9\u6cd5\u4e2d\uff0c<strong>\u5229\u7528OBD-II\u63a5\u53e3<\/strong>\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u662f\u8f83\u4e3a\u76f4\u63a5\u548c\u53ef\u9760\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u73b0\u4ee3\u8f66\u8f86\u3002<strong>\u4f7f\u7528GPS\u6a21\u5757<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u83b7\u53d6\u4f4d\u7f6e\u4fe1\u606f\u548c\u901f\u5ea6\u7684\u573a\u666f\u3002<strong>\u901a\u8fc7\u6444\u50cf\u5934\u4e0e\u56fe\u50cf\u5904\u7406\u6280\u672f<\/strong>\u9002\u5408\u4e8e\u9700\u8981\u8fdb\u884c\u89c6\u89c9\u68c0\u6d4b\u548c\u76d1\u63a7\u7684\u573a\u666f\u3002<strong>\u5229\u7528\u52a0\u901f\u5ea6\u4f20\u611f\u5668<\/strong>\u5219\u9002\u7528\u4e8e\u9700\u8981\u6d4b\u91cf\u8bbe\u5907\u8fd0\u52a8\u72b6\u6001\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u9700\u8981\u6839\u636e\u5177\u4f53\u5e94\u7528\u573a\u666f\u3001\u786c\u4ef6\u6761\u4ef6\u548c\u6280\u672f\u8981\u6c42\u6765\u51b3\u5b9a\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u4e86\u89e3\u548c\u638c\u63e1Python\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u7684\u51e0\u79cd\u5e38\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u7684\u5b9e\u65f6\u6570\u636e\uff1f<\/strong><br \/>\u8981\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u7684\u5b9e\u65f6\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528GPS\u6a21\u5757\u4e0ePython\u7ed3\u5408\uff0c\u5e38\u7528\u7684\u5e93\u5305\u62ec<code>gpsd<\/code>\u548c<code>geopy<\/code>\u3002\u901a\u8fc7\u8fde\u63a5\u5230GPS\u8bbe\u5907\u5e76\u89e3\u6790\u5176\u8f93\u51fa\uff0c\u60a8\u53ef\u4ee5\u83b7\u53d6\u8f66\u8f86\u7684\u5b9e\u65f6\u901f\u5ea6\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u8f66\u8f86\u7684OBD-II\u63a5\u53e3\uff0c\u901a\u8fc7Python\u5e93\u5982<code>python-OBD<\/code>\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8bfb\u53d6\u8f66\u8f86\u7684\u901f\u5ea6\u4fe1\u606f\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u901a\u8fc7Python\u5904\u7406\u5386\u53f2\u901f\u5ea6\u6570\u636e\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Python\u5904\u7406\u5386\u53f2\u901f\u5ea6\u6570\u636e\u3002\u53ef\u4ee5\u5c06\u901f\u5ea6\u6570\u636e\u5b58\u50a8\u5728CSV\u6587\u4ef6\u6216\u6570\u636e\u5e93\u4e2d\uff0c\u7136\u540e\u4f7f\u7528<code>pandas<\/code>\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790\u548c\u53ef\u89c6\u5316\u3002\u901a\u8fc7\u8bfb\u53d6\u6570\u636e\u6587\u4ef6\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u8ba1\u7b97\u901f\u5ea6\u7684\u5e73\u5747\u503c\u3001\u6700\u5927\u503c\u548c\u8d8b\u52bf\u7b49\u3002<\/p>\n<p><strong>\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u65f6\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u56e0\u7d20\uff1f<\/strong><br \/>\u5728\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u65f6\uff0c\u51e0\u4e2a\u56e0\u7d20\u9700\u8981\u8003\u8651\uff1aGPS\u4fe1\u53f7\u7684\u7a33\u5b9a\u6027\u3001\u4f20\u611f\u5668\u7684\u51c6\u786e\u6027\u4ee5\u53ca\u6570\u636e\u91c7\u96c6\u7684\u9891\u7387\u3002GPS\u5728\u57ce\u5e02\u9ad8\u697c\u6216\u96a7\u9053\u7b49\u73af\u5883\u4e2d\u53ef\u80fd\u4f1a\u53d7\u5230\u5e72\u6270\uff0c\u5bfc\u81f4\u901f\u5ea6\u6570\u636e\u4e0d\u51c6\u786e\u3002\u6b64\u5916\uff0cOBD-II\u63a5\u53e3\u7684\u8bfb\u53d6\u9891\u7387\u4e5f\u4f1a\u5f71\u54cd\u901f\u5ea6\u7684\u5b9e\u65f6\u6027\uff0c\u5efa\u8bae\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u83b7\u53d6\u8f66\u8f86\u901f\u5ea6\u7684\u5e38\u7528\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528GPS\u6a21\u5757\u3001\u5229\u7528OBD-II\u63a5\u53e3\u3001\u901a\u8fc7\u6444\u50cf\u5934\u4e0e\u56fe\u50cf\u5904\u7406\u6280\u672f\u3001\u5229\u7528\u52a0\u901f [&hellip;]","protected":false},"author":3,"featured_media":1156265,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156259"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1156259"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156259\/revisions"}],"predecessor-version":[{"id":1156266,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156259\/revisions\/1156266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1156265"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1156259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1156259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1156259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}