62

用python写一个简单的excel表格获取当时的linux系统信息-运维小记-51CTO博客

 6 years ago
source link: http://blog.51cto.com/lsfandlinux/2067512
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
最近在学习excel表格的制作,顺便结合之前学习的内容,利用python的两个模板,分别是获取系统信息的psutil,和生成excel表格的xlsxwriter。利用这两个模板将生成一个简单的excel表格,获取当时的linux系统信息,如内存状态,磁盘状态,网卡流量等。首先psutil和xlsxwriter都是要安装的。安装psutilwget--no-check-certificaehttps

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK