提交Dashboard与report对比关键字和部分case
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user