Ver Fonte

어 잘못 고쳤어

Surplus_Up (2DU) há 7 anos atrás
pai
commit
3525d10f2c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      func.py

+ 1 - 1
func.py

@@ -164,7 +164,7 @@ def pw_encode(data, data2 = '', type_d = ''):
     if type_d == 'sha256':
         return hashlib.sha256(bytes(data, 'utf-8')).hexdigest()
     elif type_d == 'sha3':
-        if sys.version_info > (3, 6):
+        if sys.version_info < (3, 6):
             return sha3.sha3_256(bytes(data, 'utf-8')).hexdigest()
         else:
             return hashlib.sha3_256(bytes(data, 'utf-8')).hexdigest()