【发布时间】:2016-08-10 10:35:25
【问题描述】:
我刚刚习惯了 python 中的 if else 语句,但我在尝试让我的工作时遇到了一些麻烦,到底发生了什么?
x = input("Enter your string")
while not set(x).issubset({'m', 'u', 'i'}):
print("false")
x = input("Enter your string")
else:
print("Your String is " + x)
Question = int(input("Which rule would you like to apply? enter numbers 1-4: "))
if Question is 1:
print("hello")
'''issue arises in the else area below'''
else if Question is not 1:
print("other")
【问题讨论】:
标签: python if-statement input