码迷,mamicode.com
首页 > 编程语言 > 详细

Python基础-判断

时间:2017-09-01 22:14:44      阅读:109      评论:0      收藏:0      [点我收藏+]

标签:span   style   col   string   input   color   word   int   str   

age = 3
if age >= 18:
    print(‘your age is‘, age)
elif age >= 10:
    print(‘your age is‘, age)
else: print(‘your age is‘, age)

s = input(‘birth: ‘)
birth = int(s)
if birth < 2000:
    print(‘00前‘)
else:
    print(‘00后‘)

Python基础-判断

标签:span   style   col   string   input   color   word   int   str   

原文地址:http://www.cnblogs.com/yaohong/p/7465163.html

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