java中trim 在python中如何实现

1) PYTHON居然分去除左边空白和右边空白
比如:
s='test ’

s.rtrip(); //test

s=’ test’
s.ltrip() //test

  1. 左右一起去掉

s.strip();

おすすめ

転載: blog.csdn.net/qq_39306234/article/details/121075996