首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
_Kuuga
获赞
5
粉丝
0
关注
3
看过 TA
0
男
苏州大学
2019
测试工程师
IP属地:江苏
带囧目~
私信
关注
拉黑
举报
举报
确定要拉黑_Kuuga吗?
发布(3)
刷题
_Kuuga
2021-08-05 00:11
测试工程师
题解 | #参数解析#
Python递归解析处理一点删一点,再处理再删,删完为止 mycommand = input() def parse(mycommand, commands = []): indexLeft = mycommand.find('"') if indexLeft == -1: #找不到直接返回 commands += mycommand.split(' ') return commands else: #找到处理完再递归 commands += mycommand[:indexLeft - 1].split(' ...
0
点赞
评论
收藏
转发
_Kuuga
2021-08-03 20:38
测试工程师
题解 | #统计每个月兔子的总数#
容易理解的方法,monthBirth最后就是个斐波那契 import sys for x in sys.stdin: x = int(x.strip()) monthBirth = [1] #存放每个月出生的兔子数,第一个月是1 for i in range(1, x): monthBirth.append(sum(monthBirth[:i-1])) #每个月出生的兔子等于2个月以前出生的所有的兔子的和 print(sum(monthBirth))
0
点赞
评论
收藏
转发
_Kuuga
2021-08-02 23:21
测试工程师
题解 | #求int型正整数在内存中存储时1的个数#
递归 def to2(x, n = 0): if x%2 == 1: n += 1 if x < 1: print(n) else: to2(x//2, n) to2(int(input()))
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务