[英]python:how to exit if block during interactive mode
just play with Python, a small question on interactive mode. 只是玩Python,这是交互式模式的一个小问题。
steps: 脚步:
question: HOW CAN I exit if block and write sth like the following in interactive mode : 问题:如果在交互模式下进行如下阻止和写操作,我如何退出:
flag=True
if flag:
print("flag is True")
print("exit if now ")
在交互式模式下,按两次Enter将退出if块
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.