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

2021-07-13 07:07

阅读:609

标签:case   lower   form   字符串   format   tar   sprint   end   isa   

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 ---------------------------------

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

标签:case   lower   form   字符串   format   tar   sprint   end   isa   

原文地址:https://www.cnblogs.com/change06/p/9542505.html


评论


亲,登录后才可以留言!