while True:
a = raw_input("Your number: ")
if a == int: # letters:
if a > 0 and a % 3 == 0:
print 'fizz'
if a > 0 and a % 5 == 0:
print 'buzz'
if a > 0 and a % 3 != 0 and a % 5 != 0:
print a
if a <= 0:
print 'bad value'
else:
print "Not integer, try again"`
如何使這個raw_input
工作?我希望這個在用戶輸入是整數時運行遊戲,當它不是時則是「再試一次」。int in raw_input不起作用