例题2.3

例题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)


posted @ 2024-10-22 19:06  等我刷把宗师  阅读(5)  评论(0)    收藏  举报