2.3习题

-- coding: utf-8 --

"""
Created on Tue Sep 17 19:37:31 2024

@author: 朱尧
"""
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-27 23:41  世梦  阅读(12)  评论(0)    收藏  举报