MindMap Gallery data structure
This is a mind map about data structure. Data structure refers to a collection of data elements that have one or more specific relationships with each other. Often, carefully selected data structures can lead to higher operating or storage efficiency.
Edited at 2021-08-29 18:39:59Avatar 3 centers on the Sully family, showcasing the internal rift caused by the sacrifice of their eldest son, and their alliance with other tribes on Pandora against the external conflict of the Ashbringers, who adhere to the philosophy of fire and are allied with humans. It explores the grand themes of family, faith, and survival.
This article discusses the Easter eggs and homages in Zootopia 2 that you may have discovered. The main content includes: character and archetype Easter eggs, cinematic universe crossover Easter eggs, animal ecology and behavior references, symbol and metaphor Easter eggs, social satire and brand allusions, and emotional storylines and sequel foreshadowing.
[Zootopia Character Relationship Chart] The idealistic rabbit police officer Judy and the cynical fox conman Nick form a charmingly contrasting duo, rising from street hustlers to become Zootopia police officers!
Avatar 3 centers on the Sully family, showcasing the internal rift caused by the sacrifice of their eldest son, and their alliance with other tribes on Pandora against the external conflict of the Ashbringers, who adhere to the philosophy of fire and are allied with humans. It explores the grand themes of family, faith, and survival.
This article discusses the Easter eggs and homages in Zootopia 2 that you may have discovered. The main content includes: character and archetype Easter eggs, cinematic universe crossover Easter eggs, animal ecology and behavior references, symbol and metaphor Easter eggs, social satire and brand allusions, and emotional storylines and sequel foreshadowing.
[Zootopia Character Relationship Chart] The idealistic rabbit police officer Judy and the cynical fox conman Nick form a charmingly contrasting duo, rising from street hustlers to become Zootopia police officers!
data structure
list
Queue update
Add elements
a1.append()-----(Append) a single element
a1.extend()-----(extend) single or multiple elements
Delete element
a1.pop()-----(outbreak)
a1.remove()-----(move)
del a1[]-----(delete)
Find elements
a1.index()-----(point out)
Other operations on the queue
a1.reverse()-----(reverse)
Similar to [ : :-1]
a1.count()-----(count)
a1.sort()-----(sort)
tuple
Define tuple
type(a1)
delete tuple
del a1 (tip: you can only delete the entire thing)
Other operations on tuples
a1.count()-----(count)
a1.index()-----(point out)
dictionary
definition dictionary
type(english)
use dictionary
Find english[]
Modify english[]=
delete del english[]
Other operations on dictionaries
Clear the dictionary english.clear()
Return dictionary english1=english2.copy()
Create dictionary
Do not specify the default value student1=dict.fromkeys(seq)
Specify the default value student2=dict.fromkeys(seq,15)
Return the value corresponding to the key english.get()
Return all keys english.keys()
Determine whether the key is in the dictionary xxx in english.keys()
Return all values english.values()
Return list english.items()
Traverse the dictionary for k, v in english.items(): print(k, "=>",v)
Knowledge expansion
gather
Empty collection set()
Number set unmber={}
Mixed type collection mix=([ ])
Add element number.add()
Delete element number.remove()
Intersection n1 & n2
Union n1 | n2
Difference set n1 - n2
Symmetric difference set n1^n2
Three derivation formulas (analytical formulas)
list comprehension
a1=[x for x in range(5)]
odd=[x for x in range(10) if x % 2 !=0]
dictionary comprehension
d1={n: n**2 for n in range(5)}
d2={v: k for k,v in d1.items()}
set derivation
s1={i**2 for i in [-1 : -5 : 1: 2: -2]}