匯入執行緒threading模組 import threading # 宣告全域性變數 g_num = 0 # 建立互斥鎖 mutex = threading.Lock() def my_thread1(): # 宣告全域性變數 ...
確定! 回上一頁