其他分享
首页 > 其他分享> > 列表嵌套

列表嵌套

作者:互联网

l1 = [1,2,'fsafdawsfdsjlkj',[1,'saf',3,]]
# print(l1[2])
# print(l1[2].upper())

l1[2] = l1[2].upper()
print(l1)

 

9‘

标签:upper,fsafdawsfdsjlkj,saf,列表,嵌套,l1,print
来源: https://www.cnblogs.com/ETH8888/p/16621183.html