lst2 = ['hello','world',2]
d2 = {'张三':1,'李四':2,222:3}
t2 = ('hello','python',2)
# print(''.join(lst2)) # 报错
# print(''.join(d2)) # 报错
# print(''.join(t2)) # 报错
print(''.join('%s' %id for id in lst2)) # helloworld2
print(''.join('%s' %id for id in d2)) # 张三李四222
print(''.join('%s' %id for id in t2)) # hellopython2