从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(复数)
原文地址:https://www.cnblogs.com/pannyvan/p/3860979.html