发布时间:2019-07-16 10:09:38编辑:auto阅读(1566)
[root@s141 ~]# python Python 2.7.5 (default, Sep 15 2016, 22:37:39) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import os #加载模块 >>> r=os.system >>> r("ls /root") #执行命令 anaconda-ks.cfg Music ceph-release-1-1.el7.noarch.rpm Pictures Desktop Public Documents Templates Downloads Videos epel-release-latest-7.noarch.rpm win_2008.qcow2 initial-setup-ks.cfg zabbix-agent-3.0.5-1.el7.x86_64.rpm 0
上一篇: python模块--random
下一篇: python练习题(一)
47484
45786
36784
34317
28955
25589
24436
19606
19102
17627
5458°
6041°
5563°
5632°
6565°
5370°
5370°
5878°
5851°
7163°