在Python 3中,有6种标准的数据类型:Number(数字)、String(字符串)、List(列表)、Tuple(元组)、Set(集合)、Dictionary(字典),见表2-2。
Python 3中支持3种不同的数值类型,包括int(整型)、float(浮点型)、complex(复数)。int通常被称为整型/整数,取值为正整数或负整数。
搜索
复制
Powered by: 博客园 Copyright © 2024 callbin Powered by .NET 8.0 on Kubernetes