当前位置:网站首页>The difference between lists, tuples, dictionaries and collections
The difference between lists, tuples, dictionaries and collections
2022-04-23 03:49:00 【A chicken that doesn't admit defeat】
On the list 、 Tuples 、 Dictionary and set are compared , As shown in the following table :
| data structure | Is it changeable | Whether to repeat | Is it orderly | Defining symbols |
|---|---|---|---|---|
| list | variable | repeatable | Orderly | [] |
| Tuples | immutable | repeatable | Orderly | () |
| Dictionaries | variable | repeatable | disorder | {key:value} |
| aggregate | variable | Do not repeat | disorder | {} |
版权声明
本文为[A chicken that doesn't admit defeat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230344127466.html
边栏推荐
- [mathematical modeling] my mathematical memory
- Why is it necessary to divide the variance by 255^2 when adding Gaussian noise using the imnoise function of MATLAB
- What if you encounter symbols you don't know in mathematical formulas
- VS Studio 修改C语言scanf等报错
- 秒杀所有区间相关问题
- Software testing process
- Openvino only supports Intel CPUs of generation 6 and above
- Cmake qmake simple knowledge
- Three types of cyclic structure
- The great gods in acmer like mathematics very much
猜你喜欢
![[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022](/img/34/1db76ac50888196515927fe51b2738.png)
[AI vision · quick review of NLP natural language processing papers today, issue 29] Mon, 14 Feb 2022

Software testing process

Create virtual machine

作为一名码农,女友比自己更能码是一种什么体验?

【ICCV 2019】MAP-VAE:Multi-Angle Point Cloud-VAE: Unsupervised Feature Learning for 3D Point Clouds..

Design and implementation of redis (3): persistence strategy RDB, AOF

Opencv4 QR code recognition test

Design and implementation of redis (4): what is the event driver of redis

基于PHP的代步工具购物商城
![[AI vision · quick review of NLP natural language processing papers today, issue 28] wed, 1 Dec 2021](/img/e1/ffa8c06b0856e16236b4c5ded882d7.png)
[AI vision · quick review of NLP natural language processing papers today, issue 28] wed, 1 Dec 2021
随机推荐
If statement format flow
VS Studio 修改C語言scanf等報錯
硬核拆芯片
Paddlepaddle model to onnx
[latex] formula group
Vscode download and installation + running C language
对象和类的概念
Cmake qmake simple knowledge
Nel ASA:挪威Herøya设施正式启用
Commonly used classes
SQL learning record
Basic usage of Google colab (I)
Design and implementation of redis (4): what is the event driver of redis
7-3 poly width
Oracle JDK vs OpenJDK
Identificateur, mot - clé, type de données
The principle and solution of not allowing pasting in an English Network
On the principle of concurrent programming and the art of notify / Park
Jupiter notebook modify configuration file setting startup directory is invalid
一个函数秒杀2Sum 3Sum 4Sum问题