Python字符串的join方法

Python中join() 方法用于将序列中的元素以指定的字符链接生成一个新的字符串;python str.join(sequence) sequence为要连接的序列;url 例子:spa # -*- coding: utf-8 -*- #filename test.py target = '' tmp_str = [a, b, c] print target.join(tmp_str) 输出结
相关文章
相关标签/搜索