李明新
李明新
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
李明新的博客
全部文章
(共1篇)
题解 | #字符串最后一个单词的长度#
str = input() list = [] i = 0 s = 0 while i < len(str): s = i while str[i] !=" " and str [i] not in[".",","]: i += 1 if i == len(str): break list.a...
Python3
2021-12-22
0
607