string.rindex(str,beg=0,end=len(string)) 同index,右邊開始 string.rjust(width) 右對(duì)齊,空格補(bǔ)齊 string.rpartition(str) 同partition,右邊開始 string.rstrip([chars]) 清理右側(cè)空白,包括換行符,返回處理后字符串 string.split(str=””, maxsplit =string.count(str)) ...
www.dbjr.com.cn/article/657...htm 2025-6-8