l1 = [1,2,'simon',[1,'hukey',3]]
# 1. 将l1中的simon变成大写并放回原处
# l1[2] = l1[2].upper()
# print(l1)
# 结果
# [1, 2, 'SIMON', [1, 'hukey', 3]]
# 2. 给小列表[1,'hukey',3]追加一个元素,'yuanming'
# l1[-1].append('yuanming')
# l1[-1].extend(['yuanming',])
# print(l1)
# 结果
# [1, 2, 'simon', [1, 'hukey', 3, 'yuanming']]
# 3. 将列表中的'hukey' 通过字符串拼接的方式,在列表中变成'hukeysb'
# l1[-1][1] = l1[-1][1] + 'sb'
# l1[-1][1] += 'sb'
# print(l1)
# 结果
# [1, 2, 'simon', [1, 'hukeysb', 3]]
l2 = [2,30,"k",["qwe",20,["k1",["tt",3,"1"]],889],"ab","adv"]
# 将l2 中的 "tt" 变成大写(两种方式)
# l2[-3][-2][-1][0] = l2[-3][-2][-1][0].upper()
# 结果
# [2, 30, 'k', ['qwe', 20, ['k1', ['TT', 3, '1']], 889], 'ab', 'adv']
# 将l2 中的数字 3 变成字符串 "100" (两种方式)
# l2[-3][-2][-1][1] = "100"
# l2[-3][-2][-1][1] = l2[-3][-2][-1][1] + 97
# 结果
# [2, 30, 'k', ['qwe', 20, ['k1', ['tt', '100', '1']], 889], 'ab', 'adv']
# 将l2 中的字符串 "1" 变成数字 101 (两种方式)
# l2[-3][-2][-1][-1] = 101
# l2[-3][-2][-1][-1] = int(l2[-3][-2][-1][-1]) + 100
# 结果
# [2, 30, 'k', ['qwe', 20, ['k1', ['tt', 3, 101]], 889], 'ab', 'adv']
# print(l2)