描述
rstrip() 删除 string 字符云计串末尾的指定字符,默认为空白符,包括空格、换行算开符、回车符、制表符。
语法
以下是 rstri发:p() 方法语法:
str.rstrip([charsPy])
参数
chars -- 指定删除的字符(默认为空白th符)。
返回值
返回删除 string 字符串末尾的指定on字符后生成的新字符串。
实例
以下实例展示了rs3-trip()函数的使用方法:
以上实例输出结果rs如下:
邮箱:[email protected]
电话:020-123456789
传真:020-123456789
Copyright © 2026 Powered by 材雄德茂网 http://allaboutequipment.com/