摘要:
一、建立连接 from pymavlink import mavutil # Start a connection listening on a UDP port the_connection = mavutil.mavlink_connection('udp:localhost:14540') # 阅读全文
摘要:
问题记录 1、在for循环下创建线程,会一次性全部创建,消耗内存 import threading def test(): print('test') for i in range(1000); t = threading.Thread(target=test) # 此时已经新建了1000个线程对象 阅读全文