连接字符串用join而不用’+’(python)

来源:互联网 发布:支付宝 for mac版下载 编辑:程序博客网 时间:2024/05/22 03:09

连接字符串用join而不用’+’(python)

by 伍雪颖

str1,str2 = 'test','string'
combine =
''.join([str1,str2])
print combine

1 0