如果事情属实,我该如何结束我的程序?
这是我的代码
count=0
num=input("What would you like to do [1,2,3,4]? ")
while (num>'0' and num<'5'):
while num=='1':
Do something
while num=='2':
Do something
While num=='3':
Do something
while num=='4' and count!=1:
print("The End")
count= count+1
我希望程序在 num 为 '4' 时结束