上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 42 下一页
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 # 作者:Presley 4 # 邮箱:1209989516@qq.com 5 # 时间:2018-08-05 6 # OOP学习2 7 8 class SchoolMember(object): 9 member_numbers = 0 10 def __i... 阅读全文
posted @ 2018-09-22 18:24 Presley 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 # 作者:Presley 4 # 邮箱:1209989516@qq.com 5 # 时间:2018-08-05 6 # OOP学习1 7 8 class Role(object): 9 members = 0 10 ac = None 11 def _... 阅读全文
posted @ 2018-09-22 11:26 Presley 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 # 作者:Presley 4 # 邮箱:1209989516@qq.com 5 # 时间:2018-08-05 6 # OOP学习1 7 8 class Role(object): 9 def __init__(self,name,role,weapon,life_v... 阅读全文
posted @ 2018-09-22 08:37 Presley 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 引用自: https://blog.csdn.net/u012439646/article/details/73380197 xfs_growfs /dev/centos/root 一、首先安装系统时系统分区选择lvm卷组分区,详见本人博客链接https://www.cnblogs.com/Pres 阅读全文
posted @ 2018-09-18 11:50 Presley 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 一、遇到问题 [root@localhost ansible]# ansible test43 -m ping -kSSH password: 192.168.30.43 | FAILED! => { "msg": "Using a SSH password instead of a key is 阅读全文
posted @ 2018-09-17 17:33 Presley 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 一、添加最新epel源 二、添加最新阿里云yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 三、安装ansible yum install -y ansible 执行 阅读全文
posted @ 2018-09-17 15:32 Presley 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 一、Centos6 二、Centos7 阅读全文
posted @ 2018-09-17 15:02 Presley 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 一、安装依赖 yum -y groupinstall "Development tools" yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel 阅读全文
posted @ 2018-09-14 17:44 Presley 阅读(873) 评论(0) 推荐(1) 编辑
摘要: 一、停docker systemctl stop docker 然后ps -aux grep docker发现有些docker进程还是存在,此时强杀存在的docker进程:ps -aux|grep docker|awk '{print $2}'|xargs kill 二、启动docker syste 阅读全文
posted @ 2018-09-13 16:06 Presley 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: 一、无论用什么形式来编程,我们都要明确记住以下原则: 1、写重复代码是非常不好的低级行为 2、你写的代码需要经常变更,写代码一定要遵循易读,易改的原则 3、函数编程与OOP(面向对象)的主要区别就是OOP可以使程序更加容易扩展和易更改。 二、面向对象三大特性 1、封装 封装可以隐藏实现细节,使得代码 阅读全文
posted @ 2018-09-12 22:05 Presley 阅读(96) 评论(0) 推荐(0) 编辑
上一页 1 ··· 22 23 24 25 26 27 28 29 30 ··· 42 下一页