break语句中断哪个循环?

2024-07-04 06:02:50 发布

您现在位置:Python中文网/ 问答频道 /正文

在下面的代码中,break语句中断哪个循环?你知道吗

import time, sys
setT = '07:40'
while 1:
    if time.strftime('%I:%M')==setT:
        for mp in str(123):
            print('the time is'+setT)
        print('End')
        break

Tags: 代码inimportforiftimesysmp

热门问题