","Friday")
print(workday[0:2]),显示"Monday",“Tuesday”
2)将列表分片:例如workday = ["Mondy","Tuesday","Wednesday...","Thursday","Friday"]
print(workday[1:3]),显示"Tuesday","Wednesday"
3)将字符分片:例如workday = "from Monday...to friday"
print(workday[2:5]),显示"om "
4.从列表中弹出元素
today_times = [2,5,3,6]
A = today_times.pop(...0)
print(A),显示2,且print(today_times)时显示[5,3,6]
5.计算元组、列表或字典的长度
len(元组名或列表名或字典名)
6.处理集合
alphabet...= ['a','b','b','c','d','e','e']
alph2 = set(alphabet)
print(alph2)显示{'a','b','c','d','e'}