python学习笔记之003.py
来源:互联网 发布:超级玛丽mac版 编辑:程序博客网 时间:2024/06/05 20:44
#!/usr/bin/env python
# coding=utf-8
# Created Time: 2017-08-07 10:14:13
# Modified Time: 2017-08-07 10:23:15
number = 23
guess = int(raw_input('Enter as integer : '))
if guess == number:
print 'Congratulations,you guessed it.' # New block starts here
print "(but you do not win any prizes!)" # New block ends here
elif guess < number:
print 'No,it is a little higher than that' # Another block
# You can do whatever you want in a block ...
else:
print 'No,it is a little lower than that'
# you must have guess > number to reach here
print 'Done'
# This last statement is always executed,after the if statement is executed
# coding=utf-8
# Created Time: 2017-08-07 10:14:13
# Modified Time: 2017-08-07 10:23:15
number = 23
guess = int(raw_input('Enter as integer : '))
if guess == number:
print 'Congratulations,you guessed it.' # New block starts here
print "(but you do not win any prizes!)" # New block ends here
elif guess < number:
print 'No,it is a little higher than that' # Another block
# You can do whatever you want in a block ...
else:
print 'No,it is a little lower than that'
# you must have guess > number to reach here
print 'Done'
# This last statement is always executed,after the if statement is executed
阅读全文
1 0
- python学习笔记之003.py
- python学习笔记之001.py
- python学习笔记之002.py
- python学习笔记之004.py
- python学习笔记之005.py
- python学习笔记之006.py
- python学习笔记之007.py
- python学习笔记之008.py
- python学习笔记之009.py
- python学习笔记之010.py
- python学习笔记之011.py
- python学习笔记之012.py
- python学习笔记之013.py
- python学习笔记之014.py
- python学习笔记之015.py
- python学习笔记之016.py
- python学习笔记之017.py
- python学习笔记之018.py
- Java-I/O流
- Python可视化seaborn练习题
- 训练总结8.10
- Hue与hadoop的集成配置
- 多校6 HDU-6106 Classes 容斥原理
- python学习笔记之003.py
- POJ 2312 Battle City
- styleneat规范css编写工具
- YARN核心部件解读
- ansible入门
- 使用通配符* There is no Action mapped for namespace [/] and action name [user_add] associated with conte
- 算法铺子之排序---堆排序(一)
- python爬虫三:获取一个网易用户的所有图片(selenium+phantomjs)
- shell脚本的学习1-截取字符串