python调用linux命令-但是需要sudo权限

echo "yourpasswd" | sudo -S rm -r /test/ddd
原文地址:https://www.cnblogs.com/tarzen213/p/12916409.html