- 博客(2)
- 收藏
- 关注
原创 SpringMVC 实现简单的在线聊天
#!/usr/bin/python########################################################################### split a file into a set of parts; join.py puts them back together;# this is a customizable version of t...
2018-11-08 17:05:59 625
转载 python常用运维脚本实例
一、ps 可以查看进程的内存占用大小,写一个脚本计算一下所有进程所占用内存大小的和。(提示,使用ps aux 列出所有进程,过滤出RSS那列,然后求和)#!/usr/bin/env python#!coding=utf-8import oslist = []sum = 0 str1 = os.popen('ps aux','r').readlines()for i in str1: s...
2018-05-07 09:44:19 2589
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人