重构解析模块

This commit is contained in:
Jing Ling
2020-02-17 03:39:37 +08:00
parent 246cad2511
commit 6c902544b5
4 changed files with 132 additions and 108 deletions
+4
View File
@@ -327,3 +327,7 @@ def get_classname(clsobj):
def python_version():
return sys.version
def count_valid(data):
return len(list(filter(lambda item: item.get('valid') == 1, data)))