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 ---------------------------------
python之str字符串內部功能目錄