把字符串的空格都去掉

def strip_function(s1):
    return s1.strip()

s1 = " adabdw "
print(strip_function(s1))

猜你喜欢

转载自blog.csdn.net/Da___Vinci/article/details/92805674