我刚刚开始学习python这个问题出现在我的脑海中,是否有更短的方法来确定一个字符串是否等于'某事'或'somethingelse'?
例:
input = raw_input("question?") while input != 'n' and input != 'y': #ask question again
python
python ×1