- Python編程基礎(chǔ)與應(yīng)用
- 李方園主編
- 8字
- 2021-10-27 16:38:16
1.3 Python基本數(shù)據(jù)類型
1.3.1 數(shù)據(jù)類型概述
Python中主要的內(nèi)置數(shù)據(jù)類型如下。
1.數(shù)值numeric
包括int(整型)、float(浮點(diǎn)數(shù))、bool(布爾型)、complex(復(fù)數(shù)型)等。
2.序列sequence
包括list(列表)、tuple(元組)、range(范圍)、str(字符串)、bytes(字節(jié)串)、set(集合)等;
3.映射mappings
包括dict(字典)。
4.類class
5.實(shí)例instance
6.例外exception
這里主要對其中幾種數(shù)據(jù)類型作介紹。
推薦閱讀
- Bootstrap Site Blueprints Volume II
- arc42 by Example
- 算法訓(xùn)練營:入門篇(全彩版)
- 軟件測試工程師面試秘籍
- Protocol-Oriented Programming with Swift
- 利用Python進(jìn)行數(shù)據(jù)分析
- 3ds Max印象 電視欄目包裝動(dòng)畫與特效制作
- Elasticsearch Essentials
- Getting Started with Python
- Java 從入門到項(xiàng)目實(shí)踐(超值版)
- Apache Solr PHP Integration
- 百萬在線:大型游戲服務(wù)端開發(fā)
- 實(shí)驗(yàn)編程:PsychoPy從入門到精通
- Building Apple Watch Projects
- Distributed Computing with Python