运行shell命令并捕获输出
def run_command(cmd): # ??????print run_command('mysqladmin create test -uroot -pmysqladmin12')# Should output something like:# mysqladmin: CREATE DATABASE failed; error: 'Can't create database 'test'; database exists'
子衿沉夜
繁花如伊
回首忆惘然
相关分类