python_公共运算符&复制变量

#+ *运算符 可以完成列表,元组,字符串的拼接
my_str1 = "hello"
my_str2 = "world"
result = my_str1+my_str2
print(result)
my_list1= [1,3]
my_list2 = [2,4]

#列表
result = my_list1+my_list2
print(result)

#元组
my_tuple1 = (1,5)
my_tuple2 = (2,4)
result = my_tuple1+my_tuple2
print(result)

result= "-"*30
print(result)

result = "ab" *20
print(result)

result = (4,6)*3
print(result)

#集合 不接受*和+运算符
my_set1 = {1,2}
my_set2 = {3,4}
result = my_set1*my_set2