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

capitalize ---------------------------- 首单词字母变大写
casefold ------------------------------ 全部字母变成小写
center -------------------------------- 设置字体居中显示
count --------------------------------- 统计字符串里某个字符出现的次数
encode -------------------------------- 修改字符串编码
endswith ------------------------------ 是否以 xxx 结束
expandtabs ---------------------------- 替换字符串中的tab符号(\t)
find ---------------------------------- 检测字符串中是否包含子字符串 str 
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 ---------------------------------

posted @ 2018-08-27 15:30  啊程  阅读(418)  评论(0编辑  收藏  举报