#!/user/bin/python# -*- coding:utf-8 -*-li = ['zs','ls','ww','zl','xx']li[0] = 'cxvb' #按索引位置print(li)li[0:3] = 'vcxzvcxz' #切片改print(li)
2022-10-19 10:33:49
#!/user/bin/python# -*- coding:utf-8 -*-li = ['zs','ls','ww','zl','xx']li[0] = 'cxvb' #按索引位置print(li)li[0:3] = 'vcxzvcxz' #切片改print(li)