- 博客(2)
- 收藏
- 关注
原创 比较鸡肋的装饰器类
axclass Person: def __init__(self, name, age): self.name = name self.age = age @property def play(self): print('---------') @classmethod def study(cls): print(cls) @staticmethod def stati.
2022-04-07 19:32:30
217
2
原创 利用递归函数解决嵌套列表合并问题
# 输入[[1, 1], 2, [1,1]] 输出[1, 1, 2, 1, 1] # 输入[4,[3,[2,[1]]] 输出[4,3,2,1] class Solution: def fun(self, res): for i in res: if type(i) == list: def rec(x): for j in x: if t.
2022-04-06 21:37:17
876
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人