Permalink
Switch branches/tags
Nothing to show
Find file Copy path
65d4da6 May 15, 2015
1 contributor

Users who have contributed to this file

executable file 16 lines (13 sloc) 295 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 注意:
# input()返回的是字符串
# 必须通过int()将字符串转换为整数
# 才能用于数值比较:
age = int(input('Input your age: '))
if age >= 18:
print('adult')
elif age >= 6:
print('teenager')
else:
print('kid')