Python字符串方法图示
小编:动力软件园 时间:2018-07-01 16:19:32
字符串常用方法非常用,只需要记住一些常用的即可。提供一张思维导图,随时方便查阅。
index()
rindex()
find()
rfind()
count()
strip()
lstrtip()
rstrip()
split()
rsplit()
splitlines()
replace()
join()
format()
format_map()
encode()
startswith()
endswith()
upper()
lower()
title()
swapcase()
ljust()
rjust()
center()
capitalize()
partition()
rpartition()
translate()
zfill()
maketrans()
expandtabs()
isdigit()
isalpha()
isalnum()
isupper()
islower()
isspace()
istitle()
isdecimal()
isnumeric()
isprintable()
isidentifier()
相关阅读
排行榜