摘要:
Array = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]print (Array)for i in range(len(Array)): for j in range(i,len(Array[i])): tmp = Array[i][j] Ar 阅读全文
摘要:
[root@ndsfront12 ~]# salt '*' test.pingndsfront21: Truendsfront12: True '*'服务器主机名 cmd模块 run方法 [root@ndsfront12 ~]# salt '*' cmd.run 'df -h'ndsfront21: 阅读全文
摘要:
SaltStack启动&添加自启动 /etc/init.d/salt-master start /etc/init.d/salt-minion start chkconfig salt-master on chkconfig salt-minion on service salt-master st 阅读全文