li=[1,2,3,4,5,6,3,2,1] s2 = set(li) print(set(li)) #difference()去除相同项,生成一个新的集合,删除 s3=s2.difference([1,2,3,11]) set1 = {1,44,87,23,55} set2 = {1,44,88,... ...
分类:
编程语言 时间:
2018-05-04 17:10:46
阅读次数:
263
What is the difference between Processor, Core, Logical Processor ? Processor : It’s the physical components that comes with server, responsible of al ...
分类:
其他好文 时间:
2018-05-04 15:24:49
阅读次数:
157
1.交集 用intersection或者&都可以 2.并集 用union或者|都可以 3.差集 用difference或者-都可以 ...
分类:
其他好文 时间:
2018-05-03 19:43:25
阅读次数:
167
Yu Zhou likes to play Go with Su Lu. From the historical research, we found that there are much difference on the rules between ancient go and modern ...
分类:
其他好文 时间:
2018-04-30 19:51:11
阅读次数:
151
The boiling point of a liquid becomes higher as the pressure increases. The difference between liquid density r L and vapor density r V at the equilib ...
分类:
其他好文 时间:
2018-04-27 13:29:44
阅读次数:
162
这篇文章的作者是 David Corbacho,伦敦的一名前端开发工程师。之前我们有一篇关于”节流”和”去抖”的文章:The Difference Between Throttling and Debouncing(译文:节流(Throttling)和去抖(Debouncing)的区别),但是Dav ...
分类:
其他好文 时间:
2018-04-24 17:27:34
阅读次数:
715
给定一个 24 小时制(小时:分钟)的时间列表,找出列表中任意两个时间的最小时间差并已分钟数表示。示例 1:输入: ["23:59","00:00"]输出: 1备注: 1.列表中时间数在 2~20000 之间。 2.每个时间取值在 00:00~23:59 之间。详见:https://leetcode ...
分类:
其他好文 时间:
2018-04-23 00:11:34
阅读次数:
539
首先,sns = Simple Notification Service,sqs = Simple Queue Service sns与sqs有什么不同? (ref:https://stackoverflow.com/questions/13681213/what-is-the-difference ...
分类:
编程语言 时间:
2018-04-16 21:31:34
阅读次数:
825
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1. Now, given an integer arra ...
分类:
其他好文 时间:
2018-04-15 20:57:27
阅读次数:
171
使用服务发现的时候提到了两种注解,一种为@EnableDiscoveryClient,一种为@EnableEurekaClient,用法上基本一致,今天就来讲下两者,下文是从stackoverflow上面找到的对这两者的解释: 原文地址为:What’s the difference between ...
分类:
编程语言 时间:
2018-04-12 20:52:56
阅读次数:
1220