基本数据类型

时间:2020-03-10 16:05:04   收藏:0   阅读:44

---int类型

1.python3中默认都是int类型(无限大)

2.python2中int范围(2**62);long范围(无限大)

---float类型

---字符串类型

1.name = “daheng” #有引号就是字符串类型

---布尔类型

1. 2>1 true

2. 1>2 false

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!