标签:shell
[root@bogon ~]# python tt.py server1 server2 [root@bogon ~]# bash a.sh server01 server02
[root@bogon ~]# cat a.sh #!/bin/bash server="server01 server02" for i in ${server} do echo ${i} done [root@bogon ~]# cat tt.py #!/usr/bin/env pyhton #encoding:utf-8 def do(): arry = ["server1","server2"] for i in arry: print(i) if __name__ == "__main__": do() [root@bogon ~]#
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1953603
标签:shell
原文地址:http://wsxxsl.blog.51cto.com/9085838/1953603