Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
像这样将进程传递给python程序时
cat someFile | python -c "<Python code over here>"
如何计算压痕?
一个简单的选择是添加缩进:
$ echo foo | python -c ' > if True: > print "yes" > '