Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ My_Singleton
Class
My_Singleton
mysingleton.py:2–4 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# 单例模式
2
class
My_Singleton(object):
3
def
foo(self):
4
pass
5
my_singleton = My_Singleton()
Callers
1
mysingleton.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected