python基础:10.多线程装饰器模式下的单例模式

mac2022-06-30  66

python基础:10.多线程装饰器模式下的单例模式

with 

def __enter__

def __close__

闭包:

装饰器:

闭包的延迟绑定:

单例模式的应用:

 

posted on 2019-08-16 14:58  张京墨 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/meloncodezhang/p/11363935.html

最新回复(0)