题解 | #格式化输出(三)#
格式化输出(三)
https://www.nowcoder.com/practice/cc6cb2b4aac446da902356fec043f5c1
name = input("")
# strip() 去除左右两边的空格
# lstrip() 去除左边的空格
# rstrip() 去除右边的空格
name = name.strip()
print(name)
格式化输出(三)
https://www.nowcoder.com/practice/cc6cb2b4aac446da902356fec043f5c1
name = input("")
# strip() 去除左右两边的空格
# lstrip() 去除左边的空格
# rstrip() 去除右边的空格
name = name.strip()
print(name)
相关推荐