python字符串操作

str = str.rsplit()#去掉字符串末尾的指定字符,默认为空格

 

posted @ 2020-04-01 13:10  Toretto瑞  阅读(99)  评论(0编辑  收藏  举报