xxxxxxxxxx
import os
os.system("javac lolol.java")# or something....
xxxxxxxxxx
CMD /K - execute a command then remain
import os
os.system('cmd /k "Your Command Prompt Command"')
xxxxxxxxxx
import subprocess
list_dir = subprocess.Popen(["ls", "-l"])
list_dir.wait()