开发手册线程模块 (thread)获取当前任务的 ID (thread.current_id)本页总览获取当前任务的 ID (thread.current_id) 声明 任务ID = thread.current_id() 返回值 任务ID 整数型,返回当前任务的 id 示例 本章最后