欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2023-04-03 14:46:03
capitalize 首单词字母变大写casefold 全部字母变成小写center 设置字体居中显示count 统计字符串里某个字符出现的次数encode 编码,针对unicodeendswith 是否以 xxx 结束expandtabs find format format_map index ......


casefold ------------------------------ 全部字母变成小写
center -------------------------------- 设置字体居中显示

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