cmd = "e:\\dmin\\AdminD.exe online"
        ps = subprocess.Popen(cmd,shell=True,stdout=subprocess.PIPE,stdin=subprocess.PIPE)
        ps.stdin.write("file=烂烂烂服务器.role\n") #注意加"\n"
        ps.stdin.write("exit\n")
        data = ps.stdout.read()
        #data = ps.communicate("file=烂烂烂服务器.role"
posted on 2008-11-14 13:54  凌度  阅读(1731)  评论(0编辑  收藏  举报