发布时间:2019-08-27 08:03:04编辑:auto阅读(1731)
import os
import socket
name=socket.gethostname()
ip=socket.gethostbyname(name)
os.environ['name']=str(name)
os.environ['ip']=str(ip)
os.system('df -h >/mnt/temp/$name-$ip.txt')
上一篇: Python的functools模块
下一篇: pip安装MySQL-python
47882
46450
37336
34773
29348
26011
24961
19979
19582
18076
5821°
6449°
5962°
5988°
7097°
5937°
5981°
6472°
6437°
7818°