- The Python Apprentice
- Robert Smallshire Austin Bingham
- 117字
- 2021-07-02 22:16:56
Strings and Collections
Python includes a rich selection of built-in collection types which are often completely sufficient for even quite intricate programs without resorting to defining our own data structures. We'll give an overview of some of these fundamental collection types now – enough to allow us to write some interesting code – although we'll be revisiting each of these collection types, together with a few additional ones, in later chapters.
Let's start with these types:
- str – immutable strings of Unicode code points
- bytes – immutable strings of bytes
- list – mutable sequences of objects
- dict – mutable mappings from keys to values
Along the way, we'll also cover Python's for-loops.
推薦閱讀
- Google Apps Script for Beginners
- Django開發(fā)從入門到實踐
- C/C++算法從菜鳥到達人
- PyTorch Artificial Intelligence Fundamentals
- Quantum Computing and Blockchain in Business
- Advanced UFT 12 for Test Engineers Cookbook
- Practical Maya Programming with Python
- Python 快速入門(第3版)
- 例說FPGA:可直接用于工程項目的第一手經驗
- Microsoft XNA 4.0 Game Development Cookbook
- Building Microservices with Go
- Implementing DevOps with Ansible 2
- 亮劍Java Web項目開發(fā)案例導航
- Java無難事:詳解Java編程核心思想與技術(第2版)
- RPA開發(fā):UiPath入門與實戰(zhàn)