diff --git a/Readme.md b/Readme.md index 500787e..576cf3d 100644 --- a/Readme.md +++ b/Readme.md @@ -454,7 +454,7 @@ class MyClass(Singleton): ### 2 共享属性 -创建实例时把所有实例的`__dict__`指向同一个字典,这样它们具有相同的属性和方法. +创建实例时把所有实例的`__dict__`指向同一个字典,这样它们具有相同的属性和方法.采用这种方法生成的对象不是单例,只是共享了类属性而已 ```python @@ -487,7 +487,7 @@ class MyClass: ... ``` -### 4 import方法 +### 4 import方法(不能使用reload重载) 作为python的模块是天然的单例模式