python起步
来源:互联网 发布:matlab遗传算法选址 编辑:程序博客网 时间:2024/05/08 06:00
# Fig. D.1: test.py
# Simple program to demonstrate debugging.
# prompt user for input
integer = raw_input( "Enter an integer:/n" )
integer = int( integer )
if integer < 0:
print "%d is less than zero" % integer
else:
print "%d is not less than zero" % integer
python其实很好懂,不过要学到极致的话,就得下苦功夫。
raw_input函数是读取用户的输入的
int函数是将integer参数转换为整数
- python起步
- python起步
- Python起步
- Python起步
- Python起步
- 光秃秃的python起步
- zoj 1001 python起步
- 起步,Python+Flask记录
- 第二章 Python起步
- Python起步之数据类型
- Python 第一部分 起步
- python爬虫起步
- Python学习起步
- Python学习笔记-Python起步
- Python 起步:数据类型一数字
- Python 起步一 输入输出,数据类型
- python起步之认识缩进
- Python起步之eval函数
- 天鸣科技笔试
- UTF-8与UNICODE的关系及代码转换
- 让你的对象支持事务
- Unicode和UTF-8之间的转换详解
- enum (忘记了重新练手)
- python起步
- 信息处理基本原理-起点
- JS操作JSON
- SQL递归查询函数
- javascript 方法
- 说两句
- 静态类和静态类成员(C# 编程指南)
- Ubuntu 9.04 wubi安装
- JSON菜单