【发布时间】:2013-04-28 15:12:16
【问题描述】:
我编写了以下代码,如果 else 语句为真,我希望程序关闭。我是 python 新手,遇到了一些麻烦
password = raw_input('Enter yes to continue:')
if password == 'yes':
print'You have chosen to continue'
else:
print'You have chosen to exit'
【问题讨论】: