码迷,mamicode.com
首页 > 其他好文 > 详细

if usage

时间:2018-01-16 18:06:09      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:inpu   print   sage   you   /usr   input   tee   else   bin   

#! /usr/bin/python
#* coding: utf-8 *
age = int(input("input your age: "))

if age >= 50:
print(‘old‘)
elif age >= 25:
print (‘adult‘)
elif age >=6:
print(‘teenager‘)
else:
print(‘kid‘)

if usage

标签:inpu   print   sage   you   /usr   input   tee   else   bin   

原文地址:http://blog.51cto.com/546136/2061531

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!