提交Dashboard与report对比关键字和部分case

This commit is contained in:
lyf
2020-08-21 20:02:54 +08:00
parent c217cc0847
commit bd84392ba4
5 changed files with 763 additions and 129 deletions

View File

@@ -58,6 +58,26 @@ class GetTime():
h, m, s = b.strip().split(':') #.split()函数将其通过':'分隔开,.strip()函数用来除去空格
return int(h)*3600 + int(m)*60 + int(s),d #int()函数转换成整数运算
def intersection(self,a,b):
c= 0
f = 0
for j in a:
for i in j:
if i in b[f]:
print(i)
print(b[f])
c= c+1
f = f + 1
d = len(b)*len(b[0])
if d == 0:
e=0
else:
e = c/d
if e >= 0.8 :
return "ture"
else:
return "false"