This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# template.py: Python file template for begginers. | |
def cli(): | |
pass # Your main function here! | |
def test(): | |
pass # Your test function here! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
# sysexec.py: Fastly execute shell codes without quitting! | |
import subprocess, traceback, os | |
while True: | |
try: | |
x = str(input('~> ') or '') | |
if x: subprocess.run(x.split()) |