会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孙龙 程序员
少时总觉为人易,华年方知立业难
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
44
45
46
47
48
49
50
51
52
···
75
下一页
2018年8月5日
VMWARE里启动kylin16.0时出现'SMBus Host Controller not enabled'(还未进入系统)
摘要: vim /etc/modprobe.d/blacklist.conf,在末尾加入blacklist i2c-piix4重启试下
阅读全文
posted @ 2018-08-05 12:03 孙龙-程序员
阅读(164)
评论(0)
推荐(0)
2018年8月3日
CentOS7.x系统根目录分区扩容
摘要: 注意:扩容根分区之前,首先保证你装系统的时候选择的是LVM格式而不是标准格式 添加一块新磁盘 step3. 根据以上信息,对新增加的磁盘进行分区 step4. 创建物理卷 step5. 查看物理卷信息 step6. 将新增加的分区/dev/sdb1加入到根目录分区centos_mb-centos7中
阅读全文
posted @ 2018-08-03 13:08 孙龙-程序员
阅读(313)
评论(0)
推荐(0)
2018年8月2日
扩容
摘要: [root@DEV-CMDB-DB02 ~]# fdisk /dev/sdb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device ...
阅读全文
posted @ 2018-08-02 18:59 孙龙-程序员
阅读(110)
评论(0)
推荐(0)
Linux磁盘管理:LVM逻辑卷基本概念及LVM的工作原理
摘要: 这篇随笔将详细讲解Linux磁盘管理机制中的LVM逻辑卷的基本概念以及LVM的工作原理!!! 一、传统的磁盘管理 其实在Linux操作系统中,我们的磁盘管理机制和windows上的差不多,绝大多数都是使用MBR(Master Boot Recorder)都是通过先对一个硬盘进行分区,然后再将该分区进
阅读全文
posted @ 2018-08-02 18:32 孙龙-程序员
阅读(146)
评论(0)
推荐(0)
2018年7月31日
CentOS虚拟机和物理机共享文件夹实现
摘要: 安装open-vm-tools: yum -y install open-vm-tools yum -y install open-vm-tools yum -y install open-vm-tools-desktop vmhgfs-fuse -h //查看vmhgfs-fuse帮助 3、新建目
阅读全文
posted @ 2018-07-31 22:14 孙龙-程序员
阅读(732)
评论(0)
推荐(0)
2018年7月29日
python属性描述符和属性查找过程
摘要: 第一种情况: 输出: 30{}3029 print (user.__dict__) 是 {}呢? 原理如下: 如果user是某个类的实例,那么user.age(以及等价的getattr(user,’age’))
阅读全文
posted @ 2018-07-29 22:40 孙龙-程序员
阅读(232)
评论(0)
推荐(0)
魔术方法 __getattr__ 和__getattribute__
摘要: #__getattr__, __getattribute__ #__getattr__ 就是在查找不到属性的时候调用 from datetime import date class User: def __init__(self,info={}): self.info = info def __getattr__(self, item): ret...
阅读全文
posted @ 2018-07-29 21:54 孙龙-程序员
阅读(203)
评论(0)
推荐(0)
python 一个经典的参数错误
摘要: ['bobby2', 'bobby3']['bobby'](['bobby'],)['bobby', 'bobby5'] # com2.staffs ['bobby', 'bobby5'] # com3.staffsTrue 、、、、、 com2.staffs和com3.staffs使用的同一个内存
阅读全文
posted @ 2018-07-29 17:45 孙龙-程序员
阅读(119)
评论(0)
推荐(0)
Python的列表推导式
摘要: 1.列表推导式书写形式: [表达式 for 变量 in 列表] 或者 [表达式 for 变量 in 列表 if 条件] 结果: [1, 4, 9, 16, 25, 36, 49, 64, 81][36, 49, 64, 81]{1: 10, 2: 20, 3: 30, 4: 40, 5: 50, 6
阅读全文
posted @ 2018-07-29 13:14 孙龙-程序员
阅读(334)
评论(0)
推荐(0)
python中的序列(sequence)
摘要: python中的序列 可变序列 list、bytearray、array.array、collections.deque 和 memoryview。 不可变序列 tuple、str 和 bytes。 序列图 箭头指向的是父类,从图中可以看出: 1. 序列是可迭代的,继承了__iter__的方法,在系
阅读全文
posted @ 2018-07-29 12:23 孙龙-程序员
阅读(3117)
评论(0)
推荐(1)
上一页
1
···
44
45
46
47
48
49
50
51
52
···
75
下一页