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之间有空格

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • **2014真题Directions:Read the following text. Choose the be...
    又是夜半惊坐起阅读 13,398评论 0 23
  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,934评论 0 0
  • 时隔5年,我又踏上去往西宁的火车。 人有时候就是这样,老是对一个地方心心念念。 青海对于我,是第一次离开家去往要么...
    磨坊的驴子阅读 2,532评论 0 0
  • 如果你是一朵花,尽展青春的色彩,尽放生命的芳香。如果,没人欣赏,没人品味。你会不会落寞?会不会失望?舞台,是每个人...
    再凑热闹阅读 1,001评论 0 0
  • querystring.stringify() 接收3个参数 第一个参数,解析后的 url 对象 第二个参数,qu...
    辉夜乀阅读 9,986评论 0 0