//1.数组去重 var fruits = ["banana", "apple", "orange", "watermelon", "apple", "orange", "grape", "apple"]; //方法一 var arr = Array.from(new Set(fruits)) // ...
分类:
编程语言 时间:
2020-03-05 22:31:16
阅读次数:
85
package Yasuo; public class Gay { private String name; private Skill skill; public Gay() { } public Gay(String name, Skill skill) { this.name = name; ...
分类:
其他好文 时间:
2020-03-04 19:31:35
阅读次数:
109
abandon vt.遗弃,放弃,抛弃 n.放纵;沉溺 abandon doing sth. 放弃做某事 abandon one's home 离弃家园 abandon oneself to 放纵自己,使自己沉溺 with abandon 放任,无拘无束 dance with wild/gay ab ...
分类:
其他好文 时间:
2020-03-04 12:55:40
阅读次数:
77
我们可以通过Bot.friends 以及Bot.groups 来获取到所有的好友以及聊天群,这里需要注意的是,聊天群 需要保存到通讯录中 ,不然可能会出现找不到聊天群的情况。 摘自:http://www.oicqzone.com/qqjiqiao/2017122024039.html 在这里感谢一下 ...
分类:
其他好文 时间:
2020-02-27 19:25:15
阅读次数:
93
- var friends = 10 case friends when 0 p 您没有朋友 when 1 p 您有一个朋友 default p 您有 #{friends} 个朋友 等价于 > <p>您有 10 个朋友</p> 另一种块展开的写法: - var friends = 1 case fr ...
分类:
其他好文 时间:
2020-02-25 23:00:00
阅读次数:
80
1,背诵单词:vice 邪恶;恶习 drop滴;落下;微量 otherwise 另样,用别的方法 bind捆,绑,包括,束缚 eligible 符合条件的 narrative 叙述性的 叙述 tile 瓦片,瓷砖bundle 捆,包,束 mill 磨粉机,磨坊 heave (用力)举,提 gay 快 ...
分类:
其他好文 时间:
2020-02-16 23:28:48
阅读次数:
127
基础并查集~ #include<cstdio> #include<algorithm> #include<cstring> #include<unordered_map> #include<iostream> #include<string> using namespace std; const i ...
分类:
其他好文 时间:
2020-02-13 22:48:22
阅读次数:
94
大水题,dfs判连通块的数量,bfs每个点找朋友圈的最大直径~ #include<bits/stdc++.h> using namespace std; const int maxn=1014; vector<int> g[maxn]; bool visit[maxn]; int N; int ma ...
分类:
其他好文 时间:
2020-02-13 13:20:03
阅读次数:
84
Codeforces Round #611 (Div. 3) 题意:给定的一维数组中,每i个元素为f(i),f(i)有两种取值,若f(i)为0,表示第i人不知道将礼物给谁,若f(i)>=1&&f(i)<=n表示第i人将礼物送给第f(i)人,要注意题目规定每个人只能收一件礼物也只能发一件礼物给别人,而 ...
分类:
其他好文 时间:
2020-02-12 18:28:24
阅读次数:
57
People are unreasonable,illogical and self centered. Love them anyway. If you do good,people will accuse you of selfish,ulterior motives. Do good anyw ...
分类:
其他好文 时间:
2020-02-09 11:20:14
阅读次数:
89