1、提价修改的UI关键字和case

2、提交Dashboard的Traffic关键字和一个case
3、提交GetTimeLibrary中新加的代码
This commit is contained in:
lyf
2020-08-18 18:02:07 +08:00
parent 1f787fded0
commit fee5a2fc89
29 changed files with 1000 additions and 683 deletions

View File

@@ -51,7 +51,13 @@ class GetTime():
time3 = startTime2[0:-2]+"00"
print(time3)
return time3
def str2sec(self,x):
a, b = x.strip().split(' ')
y, m, d = a.strip().split('-')
h, m, s = b.strip().split(':') #.split()函数将其通过':'分隔开,.strip()函数用来除去空格
return int(h)*3600 + int(m)*60 + int(s),d #int()函数转换成整数运算