Python基本数据类型
来源:互联网 发布:模拟教学软件 编辑:程序博客网 时间:2024/06/08 18:44
Python基本数据类型
内置数据类型BIDT(built-in data type)
Python内置许多数据基本类型。
使用BIF(Python内置函数)—type(var)可以查看变量(或常量)var的数据类型。
>>> type(1)<class 'int'>>>> type(1.2)<class 'float'>>>> type("ss")<class 'str'>>>> type([1,2])<class 'list'>>>> type((1,2))<class 'tuple'>>>> type({1,2})<class 'set'>>>> type(1+2j)<class 'complex'>>>> type({"name":"东陆之滇","addr":"翠湖畔"})<class 'dict'>>>>> type(True)<class 'bool'>>>> type(False)<class 'bool'>
1 0
- python基本数据类型
- python 的基本数据类型
- 基本数据类型-python
- python 基本数据类型
- python基本数据类型笔记
- Python基本数据类型
- python基本数据类型
- Python基本数据类型
- python中的基本数据类型
- Python的基本数据类型
- Python基本数据类型
- python入门--基本数据类型
- Python基础 基本数据类型
- python 基本数据类型
- Python基本数据类型
- Python基本数据类型
- Python基本数据类型
- Python 基本数据类型细节
- Linux客户端与服务器相互实现聊天功能
- displaytag的使用方法(用于数据表格的显示和功能控制) tabledecorator实现链接按钮
- android之surfaceView详解--自定义surfaceView和用于视频surfaceview
- context-param与init-param的区别与作用
- Es6初尝试
- Python基本数据类型
- YSlow:Add Expires headers - 为 Apache 服务器添加“文件过期时间头信息”
- 程序员面试宝典--8.3循环和数组 zigzag编码
- linux学习:ls命令说明
- 印刷机输纸故障分析
- Ubuntu 设置内容丢失的问题
- Oracle数据库中调用Java类开发存储过程、函数的方法
- 关于苹果手机的真机调试
- Fragment使用中的一些疑惑。