int StrDistance(string A,int startA,int endA,string B,int startB,int endB){ if(startA > endA){ // 字符串A和B到末尾 if(startB > endB){ return 0; ... ...
分类:
其他好文 时间:
2018-11-24 20:59:56
阅读次数:
176
元组: 与列表一样,元组也是序列,唯一的差别在于元组和字符串一样,是不能修改的 创建元组: 跟列表一样,只不过括号为:() 还可以将一些值用逗号分隔,就能自动创建一个元组 空元祖用()表示 只包含一个元素的元组有点特殊,必须在元素后面加逗号 tuple函数: 跟list很像,讲一个序列作为参数,并转 ...
分类:
编程语言 时间:
2018-11-24 20:59:47
阅读次数:
165
1 void Calculate(int a) 2 { 3 int pa = a; 4 int count = 0; 5 int b[20] = {0}; 6 7 //将pa按位存储到数组b 8 while(pa > 0) 9 { 10 b[count++] = pa%10; 11 pa = pa/... ...
分类:
其他好文 时间:
2018-11-24 20:59:33
阅读次数:
219
摘要:让Spring应用从配置到运行更加快速,演示DIY Spring Boot 框架时,如何配置端口号,如何添加日志。 Spring Boot 框架帮助开发者更容易地创建基于Spring的应用程序和服务,使得开发者能够快速地获得所需要的Spring功能。 提供了非功能性的大型项目类特性,如(如内嵌 ...
分类:
编程语言 时间:
2018-11-24 20:59:24
阅读次数:
219
抓取策略: 抓取策略是当应用程序需要在(Hibernate实体对象图的)关联关系间进行导航的时候,Hibernate如何获取关联对象的策略。Hibernate的抓取策略是Hibernate提升性能的一种手段,可以在获取关联对象的时候,对发送的语句进行优化,但是往往抓取策略需要和延迟加载一起使用来提升 ...
分类:
Web程序 时间:
2018-11-24 20:59:16
阅读次数:
215
int LCS(char *a,char *b) { if(a==NULL || b==NULL) return 0; int len_a = strlen(a); int len_b = strlen(b); int f[M][N]; for(int i=1;i f[i-1][j] ? f[i][... ...
分类:
其他好文 时间:
2018-11-24 20:59:05
阅读次数:
144
企业级Memcached服务应用实践 Memcached服务 一, Memcached介绍 1.1 Memcached与常见同类软件对比 (1)Memcached是什么? Memcached是一个开源的,支持高性能,高并发的分布式内存缓存系统,由C语言编写,总共2000多行代码。从软件名称上看,前3 ...
分类:
系统相关 时间:
2018-11-24 20:58:58
阅读次数:
165
alien.py alien_invasion.py bullet.py button.py game_functins.py game_stats.py scoreboard.py settings.py ship.py 开始界面 运行界面 代码来自《Python编程:从入门到实践》 ...
分类:
其他好文 时间:
2018-11-24 20:58:44
阅读次数:
138
1 public class MapperTool 2 { 3 private static volatile MapperTool mapper = null; 4 private static object syncRoot = new Object(); 5 public static rea ...
分类:
移动开发 时间:
2018-11-24 20:58:33
阅读次数:
221
/// /// 获取一个类指定的属性值 /// /// object对象 /// 属性名称 /// public static object GetPropertyValue(object info, string field) { try... ...
分类:
其他好文 时间:
2018-11-24 20:58:25
阅读次数:
218
1 int N = 3; 2 int V = 5; 3 int C[4] = {0,1,2,3}; 4 int W[4] = {0,60,100,120}; 5 int f[N][V]; 6 //memset(f,0,sizeof(int)*N*V); 7 for(int i=0;i (f[i-1]... ...
分类:
其他好文 时间:
2018-11-24 20:58:06
阅读次数:
167
https://leetcode.com/problems/permutation-sequence/ The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of t ...
分类:
其他好文 时间:
2018-11-24 20:57:57
阅读次数:
154
EF 查询的两种 写法。 linq 方法 或者 lambda方法 其中 ,只有tolist()的时候,才会真正的 在数据库中执行。 如果没有 tolist 方法,那么province1是 iqueable类型 ...
分类:
其他好文 时间:
2018-11-24 20:57:48
阅读次数:
126
https://blog.csdn.net/qq_29349715/article/details/79730786 python协程只能运行在事件循环中,但是一旦事件循环运行,又会阻塞当前任务。所以只能在当前进程中再开一个线程,这个线程的主要任务是运行事件循环,就是event_loop,因为他是一 ...
分类:
编程语言 时间:
2018-11-24 20:57:35
阅读次数:
368
busybox是什么? (1)busybox是Linux上的一个应用程序(application),即只有一个ELF文件头。 (2)它整合了许多Linux上常用的工具和命令(utilities), 如rm, ls, gzip, tftp等。对于这些工具和命令,busybox中的实现可能不是最全的,但 ...
分类:
移动开发 时间:
2018-11-24 20:57:25
阅读次数:
976