摘要: /*****************************************************************//** * \file DuSimple.h * \brief Interpreter Pattern 解释器模式 C++ 14 * 2023年6月10日 涂聚文 G 阅读全文
posted @ 2023-06-11 22:16 ®Geovin Du Dream Park™ 阅读(30) 评论(0) 推荐(0)
摘要: def timeFuncCounter(func): """ 装饰器 写一个装饰器,统计任何函数执行完所需要消耗的时间 :param func: 输入函数 :return: 返回函数名 """ def innerfunc(*args,**kwargs): stat = time.perf_count 阅读全文
posted @ 2023-06-11 15:43 ®Geovin Du Dream Park™ 阅读(14) 评论(0) 推荐(0)
摘要: a=10 def addgoled(): global a a+=1 dd=[{'name':'zhang','age':10}, {'name':'tu','age':13}] d={'name':'zhang','age':10} def adddict(): global d #for a i 阅读全文
posted @ 2023-06-11 15:14 ®Geovin Du Dream Park™ 阅读(13) 评论(0) 推荐(0)