函数9:strip
2020-05-02 本文已影响0人
Iphone60Plus
把多余内容裁剪掉
字符串.strip() 无参数为裁剪掉空格
string = ' python '
str = string.strip()
print(str)
#python
把多余内容裁剪掉
字符串.strip() 无参数为裁剪掉空格
string = ' python '
str = string.strip()
print(str)
#python