python执行linux shell管道输出内容

干净不留痕,用过都说好。

echo "print 1+1" |python

原文地址:https://www.cnblogs.com/shenwenkai/p/5130744.html