python学习第四天基本数据类型 int,string,bool
python跟其他编程语言一样,拥有基本的数据类型,计算机 只能识别0101,python是解释语言,有其他的解释器
python整型 int
a=10
type(a) "int|
python字符串 string
a="abc"
type(a) "str"
在python2.7有长整型,而在python3去掉了
python 布尔型
True
False
首字符必须大写,而且必须这样写
文章出自(http://www.96net.com.cn/)