Benhack

Results 1 comments of Benhack

建议用threading.Event配合while循环实现定时器: ``` def _start_report_timer(self): def report_worker(): while self._scheduled_tasks_enabled: try: if self._activity_generator: now = datetime.now() today = now.date() hour, minute = map(int, self._daily_report_time.split(':')) target_time = now.replace(hour=hour, minute=minute, second=0, microsecond=0) if now...