Open Center-cr opened 1 year ago
https://center-cr.github.io/2023/04/21/%E8%BD%AF%E4%BB%B6%E7%BC%96%E7%A8%8B/Python/%E5%A4%9A%E7%BA%BF%E7%A8%8B/
语法1234567891011121314151617181920212223242526272829303132333435print('主线程执行代码') # 从 threading 库中导入Thread类from threading import Threadfrom time import sleep# 定义一个函数,作为新线程执行的入口函数def threadFunc
https://center-cr.github.io/2023/04/21/%E8%BD%AF%E4%BB%B6%E7%BC%96%E7%A8%8B/Python/%E5%A4%9A%E7%BA%BF%E7%A8%8B/
语法1234567891011121314151617181920212223242526272829303132333435print('主线程执行代码') # 从 threading 库中导入Thread类from threading import Threadfrom time import sleep# 定义一个函数,作为新线程执行的入口函数def threadFunc