This commit is contained in:
dengrb1
2023-05-05 17:46:32 +08:00
committed by GitHub
parent 2e8e6ae11b
commit a48ec6b123
3 changed files with 17 additions and 1 deletions

18
wifi.py
View File

@@ -37,4 +37,20 @@ if is_connected():
sleep(0.33)
open_exe('client')
else:
print("网络未连接,无法使用")
print("网络未连接,是否继续使用")
input_xz = str(input("选择:1.是 2.不是(必须选择数字)"))
if input_xz == None:
print("没有输入")
sleep(0.5)
print("默认退出")
sleep(0.6)
sys.exit()
pass
elif input_xz != '1' or '2':
print("请输入数字!!")
pass
elif input_xz == '1':
open_exe('client')
elif input_xz == '2':
sleep(0.4)
sys.exit()