例2.3

L = ['abc', 12, 3.45, 'python', 2.789]
print(L)
print(L[0])
L[0] = 'a'
L[1:3] = ['b', 'Hello']
print(L)
L[2:4] = []
print(L)
print(3029)

posted @ 2024-10-27 22:57  世梦  阅读(10)  评论(0)    收藏  举报