猜谜游戏
#! -*- conding:ut-8 -*-
# Autou: Turbo
money=10300 #假设口袋有10300RMB
for i in range(3): #3次循环
guess_money = int(input("guess money:"))
if guess_money == money
print("very good")
elif guess_money>money
print("It‘s too big,once more")
else
print("It‘s small,once more")
else
print("You have tied too many times!!!")
我从PYthon开始踏入我改变自己改变世界的道路——第一个程序
原文:http://www.cnblogs.com/scott-x/p/7811811.html