Array
a = [1,2,3]
print(a)
Array replace
a = [1,2,3]
a[0] = 100
print(a)
Deduplication Array
DEF delete_chong ():
a = [1,1,2,2,3 ]
b = [] # create an empty array
for I in a:
IF I Not in b: # If the array elements a, b No
b .append (i) # b, the elements into
Print (b)
delete_chong ()
And then at the end of the array with a numeric
a = [1,2,3] a.append(100) print(a)
Number specified position in the array is inserted
a = [1,2,3,4] a.insert(1,400) print(a)
Array content
= m [1, 1.0, ' A ' , Print , STR, [10,20, [33, 44 ]]] # what can be put array
Print (m)