题解 | #字符串最后一个单词的长度#
字符串最后一个单词的长度
http://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
I have never seen anything like this...
Easiest way is the best way.
ipt = input().split() word = ipt[-1] print(len(word))
字符串最后一个单词的长度
http://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
I have never seen anything like this...
Easiest way is the best way.
ipt = input().split() word = ipt[-1] print(len(word))
相关推荐