跳到主要内容

获取当前任务的 ID (thread.current_id)

声明​

任务ID = thread.current_id()

返回值​

  • 任务ID 整数型,返回当前任务的 id

示例​

本章最后