This commit is contained in:
dengrb1
2023-05-05 17:41:19 +08:00
committed by GitHub
parent 7b82a4c4e9
commit 2e8e6ae11b
5 changed files with 92 additions and 2 deletions

10
wifi.py
View File

@@ -1,6 +1,8 @@
import socket
from time import sleep
import os
import platform
import sys
def is_connected():
@@ -22,8 +24,14 @@ def open_exe(exe_name):
# mainloop
print('正在启动检测程序...')
s = platform.system()
sleep(0.22222)
if s == "Windows":
pass
else:
print("无法启动不是Windows系统")
sleep(1)
sys.exit()
if is_connected():
print("网络已连接,正在启动主程序!!")
sleep(0.33)