题解 | #字符串最后一个单词的长度#
字符串最后一个单词的长度
http://www.nowcoder.com/practice/8c949ea5f36f422594b306a2300315da
def get_latest_words_length():
line = input()
if len(line) > 5000:
print("the line length over max size: 5000")
else:
print(len(line.split(" ")[-1]))
if __name__ == '__main__':
get_latest_words_length()