Complete a task during certain time frames within a python script
问题 As you can see below here is a copy of my script what I've created, could someone help me improve/fix my currenttime tasks. Basically, during the day periodically calls test every 3 mins +- 60 seconds each periodically cycle it is supposed to do the follow tasks: Anywhere during 23:30:00 to 23:40:00 it turns clearscreen to false Anywhere during 23:40:00 to 23:50:00 it checks if clearscreen is false and if it is then it clears certain files and then it immediately sets clearscreen to false