Python 启动多个别的Linux应用程序
#! /usr/bin/pythonimport osimport threadimport timedef cam():os.system("qcamvid -c optic -r vga -t 10")def sensor():os.system("/home/linaro/file/imu/flight_controller/krait/apps/sensor_imu_
·
#! /usr/bin/python
import os
import thread
import time
def cam():
os.system("qcamvid -c optic -r vga -t 10")
def sensor():
os.system("/home/linaro/file/imu/flight_controller/krait/apps/sensor_imu_tester 10")
thread.start_new_thread(cam,())
thread.start_new_thread(sensor,())
time.sleep(10)
更多推荐
已为社区贡献4条内容
所有评论(0)