death_age = 80
name = input("your name:")
#input 接受的所有数据都是字符串,即便你输入的是数字,但依然会被当成字符串来处理
age = input("your age:")
print( type(age) )
#int integer = 整数 把字符串转成int,用int(被转的数据)
#str string = 字符串 把数据转成字符串用str(被转的数据)
print("Your name:",name)
#print("You can still live for ", death_age - int(age)," years ....")
print("You can still live for " + str(death_age - int(age)) +" years ....")
age_of_princal = 56
guess_age = int(input(">>:") )
if guess_age == age_of_princal:
print("Yes, you got it !")
elif guess_age > age_of_princal:
print("try smaller..")
else:
print("try bigger ...")