python中交互输入函数raw_input
python中交互输入函数raw_input
用户输入年龄,打印输出age = int(raw_input("Please input your age:"))
if age > 50:
print "you are old, need to retire. "
elif age > 30:
print "You are in the middle age !"
elif age > 18:
print "You are adult!"
else:
print "too young!"
评论关闭