from sys import exitdef gold_room():
print "This room is full of gold. How much do you take."
next = raw_input("> ")
if "0" in next or "1" in next:
how_much = int(next)
else:
dead("Man, learn to type a number."
if how_much < 50:
print "Nice, You're not greedy. You win!"
exit(0)
else:
dead("You greedy bastard!")
以上是照着书里敲的函数,运行的时候报错
PS C:\Python_TEST> python ex35.py
File "ex35.py", line 13
if how_much < 50:
^
SyntaxError: invalid syntax