str常用
def replace(self, *args, **kwargs): # real signature unknown
"""
替换字符串
count
Maximum number of occurrences to replace.
-1 (the default value) means replace all occurrences.
If the optional argument count is given, only the first count occurrences are
replaced.
"""
pass
def 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'
"""
pass
def split(self, *args, **kwargs): # real signature unknown
"""
Return a list of the words in the string, using sep as the delimiter string.
sep
The delimiter according which to split the string.
None (the default value) means split according to any whitespace,
and discard empty strings from the result.
maxsplit
Maximum number of splits to do.
-1 (the default value) means no limit.
"""
pass
def find(self, sub, start=None, end=None): # real signature unknown; restored from __doc__
"""
在S中找到子字符串下标,
在S[start:end]中包含子结点。可选
参数开始和结束被解释为切片表示法。
失败返回1。
"""
return 0
def strip(self, *args, **kwargs): # real signature unknown
"""
返回带前导和后导空格的字符串副本。
如果给定字符而不是None,则删除字符中的字符。
"""
pass
def upper(self, *args, **kwargs): # real signature unknown
""" 返回转换为大写的字符串的副本。 """
pass
def lower(self, *args, **kwargs): # real signature unknown
""" 返回转换为小写的字符串的副本。 """
pass
posted on 2018-08-01 21:24 printHelloWord 阅读(54) 评论(0) 收藏 举报
浙公网安备 33010602011771号