111
This commit is contained in:
8
zsh3.py
8
zsh3.py
@@ -16,6 +16,10 @@ def pseudo_zsh():
|
||||
try:
|
||||
cmd = input("20240915786@\u9648\u5764\u9633 ~ % ")
|
||||
|
||||
if cmd.strip() == "hexianglong":
|
||||
print("Exiting secret mode...")
|
||||
break
|
||||
|
||||
args = shlex.split(cmd)
|
||||
if not args:
|
||||
continue
|
||||
@@ -34,9 +38,9 @@ def pseudo_zsh():
|
||||
except FileNotFoundError:
|
||||
print(f"zsh: command not found: {args[0]}")
|
||||
except KeyboardInterrupt:
|
||||
print("\nZsh cannot be exited!")
|
||||
pass
|
||||
except EOFError:
|
||||
print("\nZsh cannot be exited!")
|
||||
pass
|
||||
|
||||
if __name__ == "__main__":
|
||||
pseudo_zsh()
|
||||
Reference in New Issue
Block a user