shell 数组

前端之家收集整理的这篇文章主要介绍了shell 数组前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[root@bogon~]#pythontt.py
server1
server2
[root@bogon~]#basha.sh
server01
server02
[root@bogon~]#cata.sh
#!/bin/bash
server="server01server02"
foriin${server}
do
echo${i}
done
[root@bogon~]#cattt.py
#!/usr/bin/envpyhton
#encoding:utf-8
defdo():
arry=["server1","server2"]
foriinarry:
print(i)
if__name__=="__main__":
do()
[root@bogon~]#
原文链接:https://www.f2er.com/bash/391630.html

猜你在找的Bash相关文章