python中strip的用法

时间:2024-10-12 04:47:40

1、strip()介绍:删除开头或是结尾的字符。

python中strip的用法

3、strip()删除结尾的空字符演示。使用形式:string.strip('结尾空字符')

python中strip的用法

5、strip()删除结尾的一般字符。使用形式:string.strip('结尾字符')

python中strip的用法
© 光影知识库