-
Notifications
You must be signed in to change notification settings - Fork 3
/
encode.py
27 lines (26 loc) · 1008 Bytes
/
encode.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import os
import platform
import time
from pystyle import Center
class USERPLATFORMCONNECT(object):
def __init__(self) -> None:
os.system("cls")
try:
if "3.10.6" in platform.python_version():
try:
if "64" in platform.machine() and "32" not in platform.machine():
import encode as enc
enc.base64encode_decoode()
elif "32" in platform.machine() and "64" not in platform.machine():
import encodex as enc
enc.base64encode_decoode()
except(ValueError,KeyError):
print(Center.XCenter("invalid platform device or not supported "))
pass
pass
except(platform.errno,KeyError,AttributeError):
print()
print(Center.XCenter("Your python is old version, please upgrade it first"))
pass
pass
USERPLATFORMCONNECT()