主页
Python
Python threading 模块
demo_ref_module_threading_basic
运行 ❯
×
更改方向
保存代码
更改主题
import threading def task(): print('Thread running for Linus') thread = threading.Thread(target=task) print(f'Thread created: {thread.name}')
Thread created: Thread-1