Stella981 Stella981
3年前
Python将字符串转换成ObjectId类型
MongoDB自动生成的_id是ObjectId类型的。我需要将MongoDB的_id存到ElasticSearch中,而ElasticSearch又只能存String类型的_id,所以就涉及到两种类型的转换。ObjectId类型—→String类型这个非常简单
Stella981 Stella981
3年前
Efficient Graph
<p<span</span转自:https://blog.csdn.net/ttransposition/article/details/38024557commentBox</p<divid"article\_content"class"article\_contentclearfixcsdntrackingstatistics
Wesley13 Wesley13
3年前
16进制显示文件内容
include <iostreaminclude <stdio.husing namespace std;define BUFF_SIZE 20int main (){FILE fp;fp  fopen("epp370p0190_0408.13
Stella981 Stella981
3年前
Codeforces 492A
include<iostreaminclude<cmathinclude<cstdlibinclude<algorithminclude<stringinclude<string.hinclude<cstringusing namespace 
Wesley13 Wesley13
3年前
Java Map
publicclassPerson{publicstaticvoidmain(Stringargs){Map<Integer,StringmapnewHashMap<Integer,String();map.put
Stella981 Stella981
3年前
Angular2记录
对象转Observableimport'rxjs/add/observable/of'Observable.of(1,2,3)http请求后做处理import{map,catchError}from'rxjs/operators'
Stella981 Stella981
3年前
Highcharts的使用(2个Y轴&折线图)
后台页面:List<Map<String,StringlistsaleService.getSaleAndBuyer();StringBufferdateArraynewStringBuffer();StringBuffersaleArraynewStringBuffer();StringBufferbuyerA
Wesley13 Wesley13
3年前
Java中数组与集合的相互转换
数组与List的相互转换List转数组:采用集合的toArray()方法数组转List:采用Arrays的asList()方法数组转换为集合注意:在数组转集合的过程中,要注意是否使用了视图的方式直接返回数组中的数据。以Arrays.asList()为例,它把数组转换成集合时,不能使用其修改集
Wesley13 Wesley13
3年前
JUC四个函数式接口
publicclassDemo01{publicstaticvoidmain(Stringargs){Function<String,Integerfunctions{returns.length();};
Wesley13 Wesley13
3年前
C#
使用随机数产生一组大乐透号码1\.C代码1Console.WriteLine("大乐透红色球");2List<intlistRednewList<int();3