python 字符串
Posted jijianhu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python 字符串相关的知识,希望对你有一定的参考价值。
1 join(self, ab=None, pq=None, rs=None): # real signature unknown; restored from __doc__
"""
Concatenate any number of strings.
The string whose method is called is inserted in between each given string.
The result is returned as a new string.
Example: ‘.‘.join([‘ab‘, ‘pq‘, ‘rs‘]) -> ‘ab.pq.rs‘
a = "你不是美女!" print(a) b = "***" c = b.join(a) print(c) ——————- 你不是美女! 你***不***是***美***女***!
以上是关于python 字符串的主要内容,如果未能解决你的问题,请参考以下文章