根据系统将下面代码复制到vim配置文件vimrc中,即可在vim中一键【F5】运行.py文件。 Windows下的gvim Linux下的vim ...
分类:
编程语言 时间:
2020-02-19 23:59:35
阅读次数:
139
1.1.1 map端连接-CompositeInputFormat连接类 (1)使用CompositeInputFormat连接类需要满足三个条件: 1)两个数据集都是大的数据集,不能用缓存文件的方式。 2)数据集都是按照相同的键进行排序; 3)数据集有相同的分区数,同一个键的所有记录在同一个分区中 ...
分类:
其他好文 时间:
2020-02-19 01:08:59
阅读次数:
59
```python from PIL import Image, ImageDraw, ImageFont def gen_img(size=None): if size is None: size = 400 #生成大小为400x400RGBA是四通道图像,RGB表示R,G,B三通道,A表示Alp... ...
分类:
编程语言 时间:
2020-02-18 09:14:37
阅读次数:
285
For eslint prevent console plugin, we also want to prevent user do so: var csl = console csl.log() Code: const disallowedMethods = ['log', 'info', 'wa ...
分类:
其他好文 时间:
2020-02-17 19:48:18
阅读次数:
63
背景: 很多小伙伴经常在群里问线程的问题,平时我经常转一些视频教程这些人不看,我就自己写个总结吧 一,开启一个新的任务 var param = 123; //net4.5以后 Task.Run(() => { DoSomthing(param); }); Task.Run(async () => { ...
分类:
编程语言 时间:
2020-02-17 16:23:17
阅读次数:
83
常用模块findall(增则表达式,待匹配的字符串) 功能: 取所有 返回值: 列表,所有匹配到的字符串都会放到列表中findall和分组的关系 ret = re.findall('\d(\d)','al,b22,c345') print(ret) # \d\d 首先是两位数字,-- [22,34] ...
分类:
编程语言 时间:
2020-02-17 14:14:25
阅读次数:
68
PIL PIL其实只是python2的专利,它并没有跟随python的进化而进化。有大师为此,专门写了一个针对python3的pillow模块。 所以,如果需要安装python3对应的PIL,应该选择安装pillow。 cv2 在windows命令窗口输入pip install cv2后出现:Cou ...
分类:
其他好文 时间:
2020-02-17 12:32:50
阅读次数:
136
原理图 源代码 /* Main.c file generated by New Project wizard * * Created: 周日 2月 16 2020 * Processor: LPC1114FBD48/301 * Compiler: GCC for ARM */ #include <L ...
分类:
其他好文 时间:
2020-02-16 12:49:22
阅读次数:
81
#-*-coding:utf-8-*- import os import time import win32gui import win32api import win32con from PIL import ImageGrab #os.startfile("D:\\artcut6\\Prog\\ ...
1 from PIL import Image, ImageDraw, ImageFont 2 3 font_size = 7 #This var can change the Word's blank size. 4 text = "我的小猪!" #filled with those word 5 ...
分类:
编程语言 时间:
2020-02-14 16:37:58
阅读次数:
135