In a deck of cards, every card has a unique integer. You can order the deck in any order you want. Initially, all the cards start face down (unreveale ...
分类:
其他好文 时间:
2020-06-22 13:13:01
阅读次数:
57
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator. Return the quotient after dividi ...
分类:
其他好文 时间:
2020-06-21 19:56:30
阅读次数:
47
执行该页代码时,发现快捷键如下,mac操作该快捷键并不方便,可修改成自己设定的快捷键。 在PyCharm->Preferences,keymap->Other->Run context->configuration操作即可。 ...
分类:
系统相关 时间:
2020-06-20 19:12:10
阅读次数:
58
1、定义 compile(pattern, flags=0) ** 正则匹配规则: \w*o\w* \w* 表示匹配由大小写英文字bai母数字和下划线组成的0个或多个du字符o 表示匹zhi配字符o\w*o\w* 表示匹配含有o的字dao符串(不管o在首字母还是在尾字母还是在中间) 2、与finda ...
分类:
其他好文 时间:
2020-06-19 15:39:23
阅读次数:
40
1、forEach 标签(用于循环容器) foreach元素的属性主要有item,index,collection,open,separator,close。 item:集合中元素迭代时的别名, index:集合中元素迭代时的索引 open:常用语where语句中,表示以什么开始,比如以'('开始 ...
分类:
其他好文 时间:
2020-06-19 10:36:51
阅读次数:
43
线程池定义 线程池顾名思义是事先创建若干可执行的线程放入一个池(容器)中,需要的时候从池中获取线程不用自行创建,使用完毕不需要销毁线程而放回池中,从而减少创建和销毁对象的开销. 线程池优点 降低资源消耗提高响应速度提高线程的可管理性 如何设计线程池 简陋版 设计 1.首先要有一个池子(容器)2.池子 ...
分类:
编程语言 时间:
2020-06-18 22:13:58
阅读次数:
65
出现问题 配置了两个不同的docker-compose.yml,使用了相同的网段,导致了在运行第二个yml文件时命令行报错目标网段已存在,报错如下: Creating network "v2_dev" with driver "bridge" ERROR: Pool overlaps with ot ...
分类:
其他好文 时间:
2020-06-18 19:58:35
阅读次数:
131
python抽象基类 collections.abc 1. tuple 特性: 不可变, 可迭代对象 拆包: user_tuple = ('name', 29,175) name,age,height = user_tuple name,*other = user_tuple ...
分类:
编程语言 时间:
2020-06-18 11:05:11
阅读次数:
61
跳转指令 (1)无条件跳转 JMP (2)根据 CX、ECX 寄存器的值跳转 JCXZ:CX 为 0 则跳转) JECXZ:ECX 为 0 则跳转) (3)根据 EFLAGS标志位跳转 JE: 等于则跳转 JNE: 不等于则跳转 JZ:为 0 则跳转 JNZ:不为 0 则跳转 JS:为负则跳转 JN ...
分类:
其他好文 时间:
2020-06-18 10:56:10
阅读次数:
68
导航 (返回顶部) 1. arch-audit -h 2. Use 3. Pacaudit(AUR) 1. arch-audit -h 2. Use 3. Pacaudit(AUR) 1. arch-audit -h $ arch-audit -h USAGE: arch-audit [FLAGS] ...
分类:
其他好文 时间:
2020-06-18 01:07:57
阅读次数:
67