列表的增删改查 python 创建空列表 emptylist = [] print(f"空列表: {emptylist}, 类型: {type(emptylist)}") # 输出: 空列表: [], 类型: 创建包含不同类型元素的列表 mixedlist = [1, "hello", 3.14, True] print(f"混合类型列表: {mixedlist}") # 输出: 混合类型列表: [1, 'hello', 3.