yum install libvirt* virt-* qemu-kvm* -y systemctl start libvirtd.servicesystemctl status libvirtd.service 出现问题: Couldn‘t open file /etc/pki/rpm-gpg/R ...
分类:
其他好文 时间:
2018-04-13 20:33:04
阅读次数:
167
python对文件的操作很常用,比如我们需要打开一个文件获取数据,或者创建文件改变数据vi1.txthelloword我们创建一个文件叫1.txt,然后我们需要对文件进行操作1、对文件进行读file=open("1.txt""r")printfile.read()file.close()helloword2、对文件进行写入file=open("1.txt","w")file.write("5555
分类:
编程语言 时间:
2018-04-13 19:02:54
阅读次数:
127
from PIL import Image base_img = Image.open('/home/sensetime/aachen_000007_000019_leftImg8bit.png') box = (198, 107, 1097, 1088) tmp_img = Image.open(... ...
分类:
其他好文 时间:
2018-04-12 23:35:41
阅读次数:
228
19.1 Linux监控平台介绍常见开源监控软件:1. cacti、nagios、zabbix、smokeping、open-falcon等等2. cacti、smokeping偏向于基础监控,成图非常漂亮3. cacti、nagios、zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者监控
分类:
系统相关 时间:
2018-04-12 23:33:58
阅读次数:
267
登陆接口并实现猜数字游戏 输入用户名密码 认证成功后显示欢迎信息 进行猜数字游戏,可猜三次 输错三次后锁定 输入用户名密码 认证成功后显示欢迎信息 进行猜数字游戏,可猜三次 输错三次后锁定 1、Adduser.py 1 # The author is tou 2 import pickle 3 #初 ...
分类:
编程语言 时间:
2018-04-12 23:31:11
阅读次数:
253
19.1 Linux监控平台介绍常见开源监控软件:1. cacti、nagios、zabbix、smokeping、open-falcon等等2. cacti、smokeping偏向于基础监控,成图非常漂亮3. cacti、nagios、zabbix服务端监控中心,需要php环境支持,其中zabbix和cacti都需要mysql作为数据存储,nagios不用存储历史数据,注重服务或者监控
分类:
系统相关 时间:
2018-04-12 23:26:28
阅读次数:
278
1. 将新闻的正文内容保存到文本文件。 2. 将新闻数据结构化为字典的列表: 单条新闻的详情-->字典news 一个列表页所有单条新闻汇总-->列表newsls.append(news) 所有列表页的所有新闻汇总列表newstotal.extend(newsls) 3. 安装pandas,用pand ...
分类:
其他好文 时间:
2018-04-12 22:39:05
阅读次数:
251
安装 pip3 install pillow 基本使用 1.创建图片 2. 创建画笔,用于在图片上画任意内容 3. 画点 4. 画线 5. 画圆 6. 写文本 7. 特殊字体文字 图片验证码 ...
分类:
其他好文 时间:
2018-04-12 22:24:22
阅读次数:
162
1. 将新闻的正文内容保存到文本文件。 2. 将新闻数据结构化为字典的列表: 单条新闻的详情-->字典news 一个列表页所有单条新闻汇总-->列表newsls.append(news) 所有列表页的所有新闻汇总列表newstotal.extend(newsls) 3. 安装pandas,用pand ...
分类:
其他好文 时间:
2018-04-12 22:19:09
阅读次数:
170