python的if语句
来源:互联网 发布:排序算法比较 编辑:程序博客网 时间:2024/06/10 15:25
a=[2,3,4]if a[0]>3: print("this is run")elif a[2]==4: print "this is four"else: print "no run"b=(1,2,3,4)if b[0]>2: print "this is one step"else: print "this is two step"# output# this is four# this is two step语法中语句的尾部都加了冒号。这是感觉和C中不同之处。而且条件表达式不用括号。
0 0
- Python的if语句
- python的if语句
- python的if判断语句
- python的条件分支语句(if)
- python 的if和while语句
- Python的if...else...语句出错
- python中if语句的真假判断
- python中if语句的运用
- Python的控制语句,(if,while,for)之if
- Python-if语句
- python if语句语法
- python if语句
- Python-if语句
- Python学习:if语句
- Python-if语句
- Python之if语句
- python if 语句
- Python if 语句
- oracle复习 - day01
- transform-origin(改变元素基点)
- Activity的启动模式
- 安卓系统按键映射修改
- jsp 与 html 区别
- python的if语句
- hdoj 1894 String Compare 【string】
- Linux应用编程之时间编程
- HDU 1597 find the nth digit
- 冒泡排序 及其两次优化
- c解决经典问题
- QT的Debug不能调试的原因
- 从iOS端Facebook分享的预览效果到Open Graph Protocol(开放内容协议)
- 单链表的简单面试题