YongboZhu
4/13/2018 - 3:50 AM

Python多线程

Python多线程

import threading


threads = []  # 多线程
    print("Begin......")
    ip = '200.200.140.47'
    port = 22345
    a = threading.Thread(target=ssh_exec, args=(
        ip, port, username, passwd, cmd))
    a.start()