public Form1() { InitializeComponent(); //注册鼠标事件 this.renderView.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnRenderWindow_MouseCli ...
判断json对象时JSONArray还是JSONObject 使用的fastjson Object object = js.get("guid"); if (object instanceof JSONArray) { System.out.println("JSONArray"); }else{ ...
分类:
Web程序 时间:
2020-11-27 11:30:51
阅读次数:
13
class MagicDictionary(object): def __init__(self): """ Initialize your data structure here. """ self.mydict = {} def buildDict(self, dictionary): """ ...
分类:
其他好文 时间:
2020-11-26 15:16:42
阅读次数:
9
void gridView1_MouseDown(object sender, MouseEventArgs e) { GridHitInfo info; Point pt = winGridView1.gridView1.GridControl.PointToClient(Control.Mous ...
分类:
其他好文 时间:
2020-11-26 15:06:38
阅读次数:
5
private void treeListDs_FocusedNodeChanged(object sender, FocusedNodeChangedEventArgs e) { treeListDsNode = e.Node; string v = e.Node.GetValue("GROUP_ ...
分类:
其他好文 时间:
2020-11-26 14:52:49
阅读次数:
5
a、数据库资源是非常昂贵的,用完了应该尽快关闭它。Connection, Statement, ResultSet等JDBC对象都有close方法,调用它就好了。 b、养成在代码中显式关闭掉ResultSet,Statement,Connection的习惯,如果你用的是连接池的话,连接用完后会放回池 ...
分类:
数据库 时间:
2020-11-26 14:29:23
阅读次数:
10
前言 在日常编码的过程中,我们经常会使用Thread.sleep、LockSupport.park()主动阻塞线程,或者使用synchronized和Object.wait来阻塞线程保证并发安全。此时我们会发现,对于Thread.sleep和Object.wait方法是会抛出InterruptedE ...
分类:
编程语言 时间:
2020-11-26 14:24:53
阅读次数:
7
node类 class Node{ private int v; private Object k; private Node next; private Node pre; public Node(Object key,int value) { this.v = value; this.k = k ...
分类:
其他好文 时间:
2020-11-25 13:01:35
阅读次数:
15
机器学习算法与自然语言处理出品@公众号原创专栏作者刘聪NLP学校|中国药科大学药学信息学硕士知乎专栏|自然语言处理相关论文前几天写了一篇短文本相似度算法研究的文章,不过里面介绍的方法基本上都是基于词向量生成句子向量的方法。今天在这里就介绍一下传统算法TF-IDF是如何计算短文本相似度的。TF-IDF是英文TermFrequency–InverseDocumentFrequency的缩写,中文叫做词
分类:
其他好文 时间:
2020-11-25 12:59:04
阅读次数:
10
#工作总结 ##一、论文阅读 ###1.1RGBT Salient Object Detection: A Large-scale Dataset and Benchmark ####1.1.1简介 现在有很多基于RGB-D的显著性目标检测,但深度信息并不是一直有用的,当物体和镜头垂直的时候,同一个 ...
分类:
Web程序 时间:
2020-11-25 12:47:54
阅读次数:
9