コード例 #1
0
 def mn(self):
   while True:
     mhlogo()
     Tool = input(" \033[0;33m\033[4;mMyServer\033[00m\033[01;31m > \033[1;36m")
     if Tool == "1":
       default_h()
     elif Tool == "2":
       open()
     elif Tool == "3":
       ngrok().insng()
       break
     elif Tool == "4":
       local()
     elif Tool == "0" or Tool=="back":
       break
     else:
       print("\n \033[01;31m\007Command not found :\033[01;32m \'"+Tool+"\'")
       sleep(0.7)
コード例 #2
0
def default_h():
    open()