Skip to content

ylighgh/UptimeDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Uptime

模仿Linux中的uptime命令,使用Python编写的uptime

环境要求

  • Python3.x+

使用说明

获取源代码

git clone https://gitee.com/ylighgh/uptime_demo.git

安装依赖

pip3 install utmp

执行

# 进入demo目录
cd uptime_demo
# 赋予执行权限
chmod +x uptime.py
# 执行脚本
./uptime.py

或者

# 进入demo目录
cd uptime_demo
# 执行脚本
python3 uptime.py

About

使用python复现Linux命令

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages