- 博客(1)
- 问答 (1)
- 收藏
- 关注
原创 python __new__单例模式
class Singleton(object): __instance = None def __new__(cls, *args, **kw): if not cls.__instance: print("调用几次呢?") cls.__instance = object.__new__(cls) # return cls.__instance def __init__(self, name):.
2022-04-25 00:35:26
884
空空如也
python selenium+pytest获取元素文本信息
2022-08-29
python语句中输出问题
2022-04-23
TA创建的收藏夹 TA关注的收藏夹
TA关注的人