Python 启动多个别的Linux应用程序

来源:互联网 发布:mac激活步骤 编辑:程序博客网 时间:2024/04/27 21:24
#! /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_tester 10")thread.start_new_thread(cam,())thread.start_new_thread(sensor,())time.sleep(10)

0 0