- 博客(3)
- 收藏
- 关注
原创 linux shell脚本
在 Shell 脚本中,我们可以使用索引来指定数组元素。索引是从 0 开始的,也就是说,数组的第一个元素的索引是 0,第二个元素的索引是 1,依此类推。在 Shell 脚本中,我们可以使用 ${#arr[@]} 或者 ${#arr[*]} 来获取数组的长度。在 Shell 脚本中,我们可以使用括号 {} 来创建数组,并用空格分隔数组元素。在 Shell 脚本中,我们可以使用 ${arr[index]} 来访问数组元素。在 Shell 脚本中,我们可以使用 ${arr[@]} 来获取数组的所有元素。
2024-05-16 09:55:25
410
原创 python学习的笔记
获取当前时间import time,datetimenow = int(time.time())timeArray = time.localtime(now)otherStyleTime = time.strftime("%Y-%m-%d %H:%M:%S", timeArray)datetag=datetime.datetime.now().strftime('%Y%m%d')获取...
2020-02-19 14:41:13
1057
原创 python多进程多线程单线程
dres={}def an(file): reslist=[] print file+"###################start" if os.path.getsize(file)==0: return fl=open(file) qos=fl.read() GJSON=json.loads(qos) for i i...
2020-02-18 15:59:15
383
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人