最简单的实现了一下Python的多线程:
import threading
def write_dbs(i): print(i) if __name__ == '__main__': for i in range(7): t = threading.Thread(target=write_dbs, args=(i,)) t.start()
最简单的实现了一下Python的多线程:
import threading
def write_dbs(i): print(i) if __name__ == '__main__': for i in range(7): t = threading.Thread(target=write_dbs, args=(i,)) t.start()
转载于:https://www.cnblogs.com/frisk/p/11568355.html
>