题解 | #字符串最后一个单词的长度#
字符串最后一个单词的长度
http://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
while True: try: want_list = input().split(" ") res = len(want_list[-1]) print(res) except EOFError: break
字符串最后一个单词的长度
http://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
while True: try: want_list = input().split(" ") res = len(want_list[-1]) print(res) except EOFError: break
相关推荐