import os, zipfile def deflate(paths, zip_path): z = zipfile.ZipFile(zip_path, 'w', zipfile.ZIP_DEFLATED, allowZip64=True, compresslevel=9) for path i ...
分类:
编程语言 时间:
2021-04-23 12:03:14
阅读次数:
0
golang获取上传图片的宽和高: package main import ( "fmt" "image" "io/ioutil" "os" "path/filepath" ) const dir_to_scan string = "/home/da/to_merge" func main() { ...
分类:
其他好文 时间:
2021-04-23 11:57:25
阅读次数:
0
Prometheus部署: 安装 go 语言环境 由于Prometheus是用golang开发的,所以首先安装一个go环境,Go语言是跨平台,支持Windows、Linux、Mac OS X等系统,还提供有源码,可编译安装 二进制包下载地址 wget https://dl.google.com/go ...
分类:
其他好文 时间:
2021-04-23 11:51:38
阅读次数:
0
计算机组成 硬件+软件 硬件 CPU 内存 主板 IO设备 I input 输入设备 键盘、鼠标 O Output 输出设备 显示器、音响 软件 系统软件 windows linux os 应用软件 QQ 微信 英雄联盟 常用快捷键 Ctrl+c 复制 Ctrl+v 粘贴 Ctrl+x 剪切 Ctr ...
分类:
其他好文 时间:
2021-04-22 16:24:14
阅读次数:
0
方法1 select count(1) from sys.objects where name = 'student' 方法2 SELECT table_name FROM information_schema.TABLES WHERE table_name ='student' 程序员阿飞 202 ...
分类:
数据库 时间:
2021-04-22 16:12:38
阅读次数:
0
上班想摸鱼?为了摸鱼方便,今天自己写了个爬取笔阁小说的程序。好吧,其实就是找个目的学习python,分享一下。 1. 首先导入相关的模块 import os import requests from bs4 import BeautifulSoup 2. 向网站发送请求并获取网站数据 网站链接最后的 ...
分类:
编程语言 时间:
2021-04-22 16:03:13
阅读次数:
0
Django版本2.2 Python版本3.7 第一步:在settings文件中配置多数据库 DATABASES = { # 'default': { # 'ENGINE': 'django.db.backends.sqlite3', # 'NAME': os.path.join(BASE_DIR, ...
分类:
数据库 时间:
2021-04-22 15:41:22
阅读次数:
0
直接安装 sudo yaourt -S glibc 如果有报错类似“ exists in filesystem”强制安装即可。 sudo yaourt -S glibc --force ...
分类:
系统相关 时间:
2021-04-22 15:40:30
阅读次数:
0
二进制水题~。 int n,m; int main() { cin>>n>>m; while(m--) { string s; cin>>s; int res=0; for(int i=0;i<s.size();i++) if(s[i] == 'n') res+=1<<(n-1-i); cout<< ...
分类:
其他好文 时间:
2021-04-22 15:39:34
阅读次数:
0
Linux系统调用表 记录下来,免得到处找 32位 int 0x80 %eax Name Source %ebx %ecx %edx %esx %edi 1 sys_exit kernel/exit.c int - - - - 2 sys_fork arch/i386/kernel/process. ...
分类:
系统相关 时间:
2021-04-22 15:36:36
阅读次数:
0