#python杀进程
os.system(
"ps -ef | grep {0} | awk '{{{1}}}' | xargs kill -9"
.
format
(key,
'print $2'
))