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)
"""
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)