import random
#补充append
number =['1','2','3']
#插入insert
number.append('4')
print(number)
number.insert(0,'6')
print(number)
#删除del
del number[0]
print(number)
#指定爆破pop()
the_apted_one = number.pop(2)
print(the_apted_one)
#移除remove
number.remove('2')print(number)
#永久排序+翻转words = ['b','a','d','c']
words.sort()
print(words)
words.sort(reverse=True)
print(words)
#暂时排序words = ['b','a']
print(sorted(words))
print(words)
#倒序 长度words = ['d','c']
words.reverse()
print(words)
print(len(words))
#for循环
for zimu in words:
print(zimu)
square = [value**2 for value in range(1,11)]
print(square)
#range
for num in range(1,5):
print(num)number = list(range(1,5))
print(number)
ou_num = list(range(1,11,2))
print(ou_num)
print(min(number))
print(max(number))
print(sum(number))
#切片
words = ['b','a','d','c']
print(words[1:4])
#元组无法修改(固定属性)
#单双引号
print('This is A\'s book')
#花式打印print('Monday',end = "2")