pannyvan

导航

从0开始学Python---01

1.开始

Vim  test.py

#!/usr/bin/python

print "hello,world!";

chmod +x test.py

./test.py

2.基本知识

Python有五个标准的数据类型:

  • Numbers(数字)
  • String(字符串)
  • List(列表)
  • Tuple(元组)
  • Dictionary(字典)

数字:Python支持四种不同的数值类型:

  • int(有符号整型)
  • long(长整型[也可以代表八进制和十六进制])
  • float(浮点型)
  • complex(复数)

posted on 2014-07-22 17:05  pannyvan  阅读(319)  评论(0编辑  收藏  举报