1
0

fix month & year cycleEndDateTime calc error

This commit is contained in:
2021-03-06 13:36:16 +08:00
parent 7f107fc378
commit 4f8aa36518
2 changed files with 34 additions and 25 deletions

View File

@@ -2,6 +2,7 @@ import hashlib
import random
import uuid
import time
import math
ValidUsername = set(map(lambda x:chr(x), range(48, 58, 1))) | set(map(lambda x:chr(x), range(65, 91, 1))) | set(map(lambda x:chr(x), range(97, 123, 1)))
ValidPassword = set(map(lambda x:chr(x), range(33, 127, 1)))
@@ -47,5 +48,5 @@ def GCD(a, b):
return math.gcd(a, b)
def LCM(a, b):
return a * b / GCD(a, b)
return int(a * b / GCD(a, b))