Python 细节

else:
if guess_row not in range(5) or
guess_col not in range(5):
print "Oops, that's not even in the ocean."
else:
print "You missed my battleship!"

3.if that is the case,print out "Oops, that's not even in the ocean."
在Oops,和 that's之间有空格

你可能感兴趣的:(Python 细节)