顺之利

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
# 转换
# 'capitalize',
# 'lower',
# 'upper',
# 'casefold',
# 'swapcase', 大小写互换
# 'title',
# 'strip',
# 'rstrip',
# 'lstrip',
# 'replace', 替换
# 'maketrans', 转换
# 'translate',

# 增加字符到指定的长度
# 'center',
# 'ljust',
# 'rjust',
# 'zfill'

# 查找字符串
# 'count',
# 'find', 没有返回-1
# 'rfind',
# 'index', 功能和find一样,但是若没找到会报错ValueError
# 'rindex',

# 编码
# 'encode',

# 判断是否
# 'startswith',
# 'endswith',
# 'expandtabs',
# 'isalnum',
# 'isalpha',
# 'isdecimal',
# 'isdigit',
# 'isidentifier',
# 'islower',
# 'isnumeric',
# 'isprintable',
# 'isspace',
# 'istitle',
# 'isupper',

# 格式化
# 'format',
# 'format_map',

# 拆分
# 'split',
# 'rsplit',
# 'splitlines',
# 'partition',
# 'rpartition',

# 联合
# 'join',
posted on 2017-01-14 21:01  顺之利  阅读(3118)  评论(0)    收藏  举报