摘要: socket 实现 tcp server import socket soc=socket.socket() #默认 family=-1,type=-1, proto=-1, fileno=None ''' if fileno is None: if family == -1: family = A 阅读全文
posted @ 2022-07-12 20:00 Orientation 阅读(243) 评论(0) 推荐(0) 编辑
摘要: import serial ser= serial.Serial('/dev/ttyAMA0',9600)ser.write('hello world'.encode('ascii'))data_len = ser.inWaiting()ser.read(data_len) 阅读全文
posted @ 2022-07-12 19:28 Orientation 阅读(451) 评论(0) 推荐(0) 编辑
摘要: openpyxl 用法实例 import requests import openpyxl import json import time res = requests.request('GET', 'http://1.2.32.2:23/data/getsites') text = res.tex 阅读全文
posted @ 2022-07-12 19:24 Orientation 阅读(32) 评论(0) 推荐(0) 编辑