字符串连接
方法1: 用字符串的join方法
a = ['a','b','c','d']
content = ''
content = ''.join(a)
print content
content = ''
content = ''.join(a)
print content
方法2: 用字符串的替换占位符替换
a = ['a','b','c','d']
content = ''
content = '%s%s%s%s' % tuple(a)
print content
content = ''
content = '%s%s%s%s' % tuple(a)
print content
想要了解更多,请看python字符串连接