摘要: >>> def dhnum(): import random first = 0 last = 100 num=random.randint(first,last) print "游戏现在开始,请才0到100间的数" while True: while True: usernum=int(raw_input("请输入您猜的数字:")) if first < usernum < last: break; else: print "输入错误,请重新输入" if usernum == num: print &q 阅读全文
posted @ 2012-10-08 21:39 Wheat″ 阅读(205) 评论(0) 推荐(0) 编辑