牛客702786295号
牛客702786295号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客702786295号的博客
全部文章
/ 题解
(共4篇)
题解 | #空格替换#
class Replacement: def replaceSpace(self, iniString, length): &n...
Python2
2021-11-09
3
476
题解 | #字符串中找出连续最长的数字串#
def long_num(str): max_list = [] for i in range(len(str)): &...
Python3
2021-11-03
0
439
题解 | #字符串最后一个单词的长度#
Str = input() assert(len(Str)<=5000,'字符串长度不得超过5000') s = Str.split(' ') last_str = s[-1] assert(last_str != '','字符串末尾不以空格为结尾') print(len(last_str))
Python3
2021-10-31
0
290
题解 | #字符串最后一个单词的长度#
Str = input() assert(len(Str)<=5000,'字符串长度不得超过5000') s = Str.split(' ') last_str = s[-1] assert(last_str != ' ','字符串末尾不以空格为结尾') print(len(last_str)...
Python3
2021-10-31
0
332