模拟shell命令
import os
shellTerminal = "[root@python ]$"
while True:
print(shellTerminal, end="")
commandFor = str(input())
if commandFor:
os.system(commandFor)
print("")
if commandFor == "exit":
break
else:
continue