Why doesn't exec(“break”) work inside a while loop

后端 未结 6 608
执笔经年
执笔经年 2021-01-18 13:26

As the question asks, why doesn\'t the below code work:

while True:
      exec(\"break\")

I am executing the above in pycharm via python 3.

6条回答
提交回复
热议问题