最近在面试,好多的面试题,笔试题,有的笔试题搜百度搜不到点子上的 这个刚开始看着很简单,后面说要排序,想起了用Collections里面自定义的比较器 代码: public class StringDemo { public static void main(String[] args) { Str ...
                            
                            
                                分类:
其他好文   时间:
2019-11-30 19:11:37   
                                阅读次数:
125
                             
                    
                        
                            
                            
                                package test; import java.util.*; public class test17 { public static void main(String[] args) { //一个整型数组里除了两个数字之外,其他的数字都出现了两次。 // 请写程序找出这两个只出现一次的数字。  ...
                            
                            
                                分类:
编程语言   时间:
2019-11-30 13:39:41   
                                阅读次数:
122
                             
                    
                        
                            
                            
                                    一、File与Directory 二、读取文件(StreamReader) 1 class Program 2 { 3 static void Main(string[] args) 4 { 5 //从指定盘下读取.txt文件 6 string sdick=@"C:\"; 7 string[] fi ...
                            
                            
                                分类:
其他好文   时间:
2019-11-30 13:39:10   
                                阅读次数:
91
                             
                    
                        
                            
                            
                                    values_list("gender","id",flat=True) # 这样会报错,只能取一个字段 'flat' is not valid when values_list is called with more than one field. 另一张表通过related_name__属性名( ...
                            
                            
                                分类:
其他好文   时间:
2019-11-29 00:35:17   
                                阅读次数:
142
                             
                    
                        
                            
                            
                                437. Path Sum III Easy Easy Easy You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a give ...
                            
                            
                                分类:
其他好文   时间:
2019-11-28 11:44:00   
                                阅读次数:
62
                             
                    
                        
                            
                            
                                最近比较闲,年底了,项目也进入尾声;每天就是维护一下系统,整理整理文档,整理知识点,这样才觉得有点意思; 问题 在使用Linq的where()查询的时候,不知道大家是怎么动态组装多个查询条件时,是怎么做的?我是这样做的,请看下面代码; 方法一: 1.1 Expression的扩展类 1.2 实例化代 ...
                            
                            
                                分类:
其他好文   时间:
2019-11-26 19:22:01   
                                阅读次数:
370
                             
                    
                        
                            
                            
                                一.增加数据-Create 1.类名.objects.create(属性=值,属性=值) Myomodel.objects.create(name="TeacherCang",age=15) 2.d={"属性":"值"} obj=类名(**d) obj.save() d={"name":"Money ...
                            
                            
                                分类:
其他好文   时间:
2019-11-25 22:04:02   
                                阅读次数:
88
                             
                    
                        
                            
                            
                                一、 hutools 依赖 centos7 <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>4.5.7</version> </dependency> FileUtil.co ...
                            
                            
                                分类:
移动开发   时间:
2019-11-25 11:51:27   
                                阅读次数:
150
                             
                    
                        
                            
                            
                                    F2. Wrong Answer on test 233 (Hard Version) Your program fails again. This time it gets "Wrong answer on test 233" . This is the harder version of the ...
                            
                            
                                分类:
其他好文   时间:
2019-11-25 00:15:57   
                                阅读次数:
68
                             
                    
                        
                            
                            
                                哈夫曼编码与哈夫曼树 哈夫曼编码:又称霍夫曼编码,是一种编码方式,哈夫曼编码是可变字长编码(VLC)的一种。Huffman于1952年提出一种编码方法,该方法完全依据字符出现概率来构造异字头的平均长度最短的码字,有时称之为最佳编码,一般就叫做Huffman编码(有时也称为霍夫曼编码)。 哈夫曼树:给 ...
                            
                            
                                分类:
其他好文   时间:
2019-11-24 13:38:13   
                                阅读次数:
67