python之基础数据类型--int

作用:

  用于数字之间的计算和运算.

实例 :

a = 20
print(type(a))
<class 'int'>

python2x和python3x的区别

python2x中

test = 9 / 2
print(test)
4
 
python3x中
test = 9 / 2
print(test)
4.5

posted on 2018-04-08 11:15  python21-李伟  阅读(111)  评论(0编辑  收藏  举报

导航