#P1820. 实现 strip 函数

实现 strip 函数

题目描述

实现Python中的 strip(s)函数, strip 的作用是删除原字符串s开始和末尾的所有空格

本题需要递交的内容

  1. strip 以及相关函数
  2. 以下 2 行代码
s = input()
print(strip(s))
  gua
gua
 gua  
gua