在 main.py 中为 'ping1' 命令添加支持,并清理代码中的多余空行
This commit is contained in:
6
main.py
6
main.py
@@ -93,7 +93,7 @@ def pseudo_zsh():
|
||||
os.execv(sys.executable, ['python3'] + sys.argv) # 重新运行程序
|
||||
except Exception as e:
|
||||
print(f"Error during update: {e}")
|
||||
|
||||
|
||||
if args[0] == 'ssh2':
|
||||
subprocess.run(['ssh','admin@10.147.17,160'])
|
||||
continue
|
||||
@@ -101,7 +101,9 @@ def pseudo_zsh():
|
||||
if args[0] == 'ssh3':
|
||||
subprocess.run(['ssh','root'])
|
||||
continue
|
||||
|
||||
if args[0] == 'ping1':
|
||||
subprocess.run(['ping','10.147.17.161'])
|
||||
continue
|
||||
if args[0] == 'sudo':
|
||||
flight1 = Trueddd
|
||||
a = 0
|
||||
|
||||
Reference in New Issue
Block a user