优化算法

This commit is contained in:
2018-03-07 18:28:57 +08:00
parent 97e2fc615c
commit b0e3c626e7
5 changed files with 56 additions and 36 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ def timer(func):
arg_list = list()
for arg in args:
arg_list.append(str(arg))
performance_logger.info("函数名:(%s) 参数:(%s) 耗时:%f" % (func.__name__, arg_list, end - begin))
performance_logger.info("函数名:%-20s\t耗时:%7.4f\t\t参数:(%s)" % (func.__name__, end - begin, arg_list))
return rs
return _timer