NP13. 格式化输出(三)
描述
输入描述
一行一个字符串表示名字name(注:name两边带有一些多余的空白符)。输出描述
一行输出name去掉两边的空白符后的原本的内容。示例1
输入:
Niuniu
输出:
Niuniu
Python 解法, 执行用时: 10ms, 内存消耗: 2860KB, 提交时间: 2022-06-20
a = raw_input() print (a.strip())
Python 解法, 执行用时: 10ms, 内存消耗: 2864KB, 提交时间: 2022-06-02
a = raw_input() print a.strip()
Python 解法, 执行用时: 11ms, 内存消耗: 2852KB, 提交时间: 2022-06-22
a=raw_input() print (a.strip())
Python 解法, 执行用时: 11ms, 内存消耗: 2852KB, 提交时间: 2022-06-09
print(raw_input().strip())
Python 解法, 执行用时: 11ms, 内存消耗: 2864KB, 提交时间: 2022-06-20
f = raw_input() print(f.strip())