关于join() 函数
我查看了关于join()函数
如果说如下
str = "-"
seq = ("a", "b", "c")
print str.join(seq)则是可以输出的
而此处的
'\n'.join(tds)
为什么就能输出 如果去掉反而报错呢?
我查看了关于join()函数
如果说如下
str = "-"
seq = ("a", "b", "c")
print str.join(seq)则是可以输出的
而此处的
'\n'.join(tds)
为什么就能输出 如果去掉反而报错呢?
2019-02-16
举报