with controlled_execution() as thing:
do something
等价于
1.执行enter(),再把结果传给thing
2.do something
3.执行exit()