python模拟shell

import fileinput

import readline

raw_input(xxx)

exec

filepinput.input

原文地址:https://www.cnblogs.com/liyulong1982/p/5110470.html