Python input()
来源:互联网 发布:网络教育取消学籍 编辑:程序博客网 时间:2024/05/16 07:04
print 'What do you think I am?'this=input()if this<5 or this>5: print 'You are wrong!'if this==5: print 'oh,yes!'print 'How old are you?'age=input()if (age==24): print 'oh,yes!'if (age>24 or age<24): print 'You are wrong!'
结果:
>>>What do you think I am?
4
You are wrong!
How old are you?
7
You are wrong!
0 0
- 【python】input
- Python input()
- python input()
- Python if and input
- Python input() pk raw_input()
- 【python】raw_input() 和input()
- Python raw_input() 和input()
- python输入输出---input,raw_input
- Python raw_input() vs input()
- Python input and output
- input in python
- python input()与raw_input()
- day15 Python input
- python input输入函数
- 【Python】input的使用
- [Python] input() vs raw_input()
- raw_input() 与 input() Python
- Python input和raw_input
- Java克隆调用super.clone()原理
- S3C2440与SDRAM分析
- 易付宝
- java图形验证码生成工具类及web页面校验验证码
- PAT 5-24 Find More Coins 背包记录路径
- Python input()
- Json实体类快速生成插件 GsonFormat
- H5的video标签的属性和播放事件
- jboss-5.1.0.GA-jdk6.zip与jboss-5.1.0.GA.zip有什么区别?以及下载地址!!!
- 101 Hack 39 B Goodland Electricity locked (线段上的最少点覆盖 贪心)
- 精确监听AbsListView滚动至底部
- PopUpWindow使用详解(一)——基本使用
- 2016.7.13 夏令营 Day6
- 【终端快捷键】Linux terminal 终端常用快捷键