python学习:if...else
来源:互联网 发布:淘宝网店怎么发布商品 编辑:程序博客网 时间:2024/06/07 16:28
#!/usr/bin/env python (#号是单行注释,养成在linux上编译写的习惯)#! -*- coding:utf-8 -*- (#号是单行注释,标明编码是utf-8)name = raw_input("Username: ")age = raw_input("age: ")if name == "gerrard" and age == "18": print("hello gerrard")elif name != "gerrard" or age !="18": print("年龄或姓名输入错误")
阅读全文
0 0
- python学习:if...else
- python简单学习 if else
- python学习总结---if-else判断
- python if-else
- python if else单行
- Python中的if-else
- C#学习If-else
- Learn Python The Hard Way学习(30) - Else和If
- python基础学习02(if...else...elif)
- python学习:while和if...else的运用
- 笨方法学习Python-习题30: Else 和 If
- Python if elif else语句
- 3.1 Python if else语句
- Python之初识if:else:
- 【Python-2.7】if-elif-else
- python条件判断 if else
- Python中的条件分支语句,if , else , else if
- go语言学习-if/else
- hdu3068 manacher模版
- Java NIO 概述
- django提交表单报错"You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SL
- java中equals()和“==”的区别
- [NOIP提高组2004]虫食算
- python学习:if...else
- GUI系统如何确定鼠标事件所属的控件
- hdu2136 ----Largest prime factor
- scala中akka actor例子
- ubuntu_drl_图像分层对象检测
- 【POJ 3264 Balanced Lineup】 线段树
- android 多语言设置没法切到印尼语
- 【树上倍增】【USACO MAR11银组】聚会地点
- Spring的自动装配Bean的三种方式