door = input(">")
if door == "1":
print("there's a giant bear here eating a cheese cake")
bear = input(">")
if bear == "1":
print("the bear eats your face off. good job")
elif bear == "2":
print("the bear eats your legs off.")
else:
print(f"well,doing{bear} is probablly better.")**
elif door == "2":
print("you stare into the endless abyss at cthulhu's retina")
insanity = input(">")
if insanity == "1" or insanity =="2":
print("good job")
else:
print("good")
else:
print("you stumble around and fall on a knife and die. good job")
反复检查格式都没问题,运行显示
^
IndentationError: unindent does not match any outer indentation level
(base) PS E:\bbf> python ex31.py
File "E:\bbf\ex31.py", line 12
elif bear == "2":