当前位置:网站首页>列表、元组、字典和集合的区别
列表、元组、字典和集合的区别
2022-04-23 03:44:00 【不认输的小菜鸡】
对列表、元组、字典和集合这几种数据序列进行比较,如下表所示:
数据结构 | 是否可变 | 是否重复 | 是否有序 | 定义符号 |
---|---|---|---|---|
列表 | 可变 | 可重复 | 有序 | [] |
元组 | 不可变 | 可重复 | 有序 | () |
字典 | 可变 | 可重复 | 无序 | {key:value} |
集合 | 可变 | 不可重复 | 无序 | {} |
版权声明
本文为[不认输的小菜鸡]所创,转载请带上原文链接,感谢
https://yunhua.blog.csdn.net/article/details/124358514
边栏推荐
- [mathematical modeling] my mathematical memory
- 2022 group programming ladder game simulation L2-4 Zhezhi game (25 points)
- If statement format flow
- Three column layout (fixed width on both sides in the middle and fixed width on both sides in the middle)
- 深度學習筆記(二)——激活函數原理與實現
- ROS series (IV): ROS communication mechanism series (6): parameter server operation
- ROS series (III): introduction to ROS architecture
- Code forces round # 784 (DIV. 4) solution (First AK CF (XD)
- Download and configuration of idea
- JS - accuracy issues
猜你喜欢
What if win10 doesn't have a local group policy?
Writing latex with vscode - the latest tutorial 2022 / 4 / 17
Identifier, keyword, data type
Paddlepaddle model to onnx
Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
Install PaddlePaddle on ARM
常用的辅助类
7-1 introduction to finance
Mechanical design knowledge point planning
ROS series (IV): ROS communication mechanism series (2): Service Communication
随机推荐
Summary of knowledge map (I)
vscode删除卸载残余
Opencv4 QR code recognition test
How Zotero quotes in word jump to references / hyperlink
Raspberry pie 3B logs into the wired end of Ruijie campus network through mentohust, creates WiFi (open hotspot) for other devices, and realizes self startup at the same time
A sword is a sword. There is no difference between a wooden sword and a copper sword
Process seven state transition diagram
Activity supports multi window display
Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
PWA I'm here
Software testing process
ROS series (I): rapid installation of ROS
Websites frequented by old programmers (continuously updated)
The art of concurrent programming (5): the use of reentrantlock
Test questions (2)
Picture synthesis video
Deep learning notes (II) -- principle and implementation of activation function
Now is the best time to empower industrial visual inspection with AI
ROS series (IV): ROS communication mechanism series (2): Service Communication
Design and implementation of redis (4): what is the event driver of redis