导入os模块,使用python模拟linux命令后 代码 import os for i in range(1000): cmd = input('[kiosk@python test]$ ') if cmd: if cmd == 'exit': print