07-numpy-笔记-join
Posted 路边的十元钱硬币
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了07-numpy-笔记-join相关的知识,希望对你有一定的参考价值。
字符串.join(字符串序列)
一目了然:
#!/usr/bin/python # -*- coding: UTF-8 -*- str = "-"; seq = ("a", "b", "c"); # 字符串序列 print str.join( seq ); 输出: a-b-c
参考:
http://www.runoob.com/python/att-string-join.html
以上是关于07-numpy-笔记-join的主要内容,如果未能解决你的问题,请参考以下文章