摘要: ``` def delete_dire(dire): dir_list = [] for root, dirs, files in os.walk(dire): for afile in files: os.remove(os.path.join(root, afile)) for adir in dirs: ... 阅读全文
posted @ 2018-10-22 18:10 肉包子打你 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 2018.6.1 MySQL数据库忘记root密码解决: 进入配置文件/etc/my.cnf 在[mysqld]下加入一条语句:skip grant tables 重新启动mysqld:service mysqld restart 无密码登录MySQL数据库:mysql uroot p 进入数据库后 阅读全文
posted @ 2018-06-01 17:58 肉包子打你 阅读(1171) 评论(0) 推荐(0) 编辑
摘要: 1、定义:argparse是python标准库里面用来处理命令行参数的库 2、命令行参数分为位置参数和选项参数: 位置参数就是程序根据该参数出现的位置来确定的 如:[root@openstack_1 /]# ls root/ #其中root/是位置参数 选项参数是应用程序已经提前定义好的参数,不是随 阅读全文
posted @ 2018-02-04 17:05 肉包子打你 阅读(66877) 评论(4) 推荐(9) 编辑
摘要: 这是我要安装的服务器dell R710 这是我无人值守安装centos6.9时遇到的问题 后来我老师将/var/ftp/ks.cfg配置文件里30行的device=eth0去掉,在服务器上再安装时便没有出错 在用kickstart给服务器安装系统时,系统默认网卡可能为em0,em1,会导致出现接口不 阅读全文
posted @ 2018-01-05 14:42 肉包子打你 阅读(697) 评论(0) 推荐(1) 编辑