首先让我们首先看一个例子。我们知道在*nix下面,uname命令是查看系统的发行版。可以写这样一个Fabric脚本:from fabric.api import rundef host_type(): run('uname -s')将上面的...