首页 > TAG信息列表 > hallo

公共操作 -- 运算符

1、运算符     s1 = 'asd' s2 = 'hgf' list1 = [1, 2] list2 = [3, 4] t1 = (4, 5) t2 = (6, 7) dict1 = {11: 22} dict2 = {44: 55} # 结果:asdhgf print(s1 + s2) # 结果:[1, 2, 3, 4] print(list1 + list2) # 结果:(4, 5, 6, 7) print(t1 + t2) # 结果:报错(不