python之str字符串内部功能目录

capitalize ---------------------------- 首单词字母变大写
casefold ------------------------------ 全部字母变成小写
center -------------------------------- 设置字体居中显示
count --------------------------------- 统计字符串里某个字符出现的次数
encode -------------------------------- 编码,针对unicode
endswith ------------------------------ 是否以 xxx 结束
expandtabs ----------------------------
find ----------------------------------
format --------------------------------
format_map ----------------------------
index ---------------------------------
isalnum -------------------------------
isalphaasd ----------------------------
isdecimal -----------------------------
isdigit -------------------------------
isidentifier --------------------------
islower -------------------------------
isnumeric -----------------------------
isprintable ---------------------------
isspace -------------------------------
istitle -------------------------------
isupper -------------------------------
join ----------------------------------
ljust ---------------------------------
lower ---------------------------------
lstrip --------------------------------
maketrans -----------------------------
partition -----------------------------
replace -------------------------------
rfind ---------------------------------
rindex --------------------------------
rjust ---------------------------------
rpartition ----------------------------
rsplit --------------------------------
rstrip --------------------------------
split ---------------------------------
splitlines ----------------------------
startswith ----------------------------
strip ---------------------------------
swapcase ------------------------------
title ---------------------------------
translate -----------------------------
upper ---------------------------------
zfill ---------------------------------

猜你喜欢

转载自www.cnblogs.com/change06/p/9542505.html