u013563860 于 2015.06.20 11:01 提问
- 能帮我看看这段程序有什么问题吗？为什么运行的时候总是显示invalid syntax?
#This is a simple game.
#Coded by Yingxu
name=raw_input('Hello! What is your name?\n')
print 'well, (0), I am thinking of a number between 1 and 20.'.format(name)
guess=int(raw_input('take a guess:'))
if guess <number:
print 'Your guess is too low'
if guess >number: print 'Your guess is too high' if guess==number: break
print 'Good job, (0)! You guessed my number in (1) guesses!.format(name, guess_made)
print 'Nope. The number I was thinking of was (0)'.format(number)