单一职责原则(SRP:Single responsibility principle)又称单一功能原则,面向对象五个基本原则(SOLID)之一。 它规定一个类应该只有一个发生变化的原因。 该原则由罗伯特·C·马丁(Robert C. Martin)于《敏捷软件开发:原则、模式和实践》一书中给出的。 ...
分类:
其他好文 时间:
2018-10-28 11:12:33
阅读次数:
126
Description Farmer John's N (1 <= N <= 50,000) cows (numbered 1..N) are planning to run away and join the circus. Their hoofed feet prevent them from ...
分类:
其他好文 时间:
2018-10-28 00:51:41
阅读次数:
206
A character string is said to have period k if it can be formed by concatenating one or more repetitionsof another string of length k. For example, th ...
分类:
其他好文 时间:
2018-10-28 00:47:45
阅读次数:
159
"Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can ...
分类:
其他好文 时间:
2018-10-27 21:03:27
阅读次数:
123
asset_all = eval(input("请输入总资产:"))car_dict = {}# dict_list = {# "电脑":{"single_price":"单价","num":"个数"}## }goods = [ {"name":"电脑","price": 1999}, {"name ...
分类:
其他好文 时间:
2018-10-27 19:50:57
阅读次数:
104
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-10-27 15:22:19
阅读次数:
117
引用第三方库的jar文件,都有可能会触发这个错误。解决方案如下: 参考《[Android]Cannot fit requested classes in a single dex file. Try supplying a main-dex list.》 一、在app的build.gradle中添加 ...
分类:
其他好文 时间:
2018-10-27 13:16:46
阅读次数:
660
Multi-Dimensional Recurrent Neural Networks The basic idea of MDRNNs is to replace the single recurrent connection found in standard RNNs with as many... ...
分类:
Web程序 时间:
2018-10-26 22:11:37
阅读次数:
324
使用Executor java.util.concurrent CachedThreadPool FixedThreadPool SingleThreadExecutor 参考 Java编程思想(第4版) 656页开始 Thinking in Java(第四版 ) 1120页开始 ...
分类:
编程语言 时间:
2018-10-26 19:32:59
阅读次数:
177
1、说明 GLUT_SINGLE 指定单缓存窗口 GLUT_DOUBLE 指定双缓存窗口 2、原理 GLUT_SINGLE单缓冲,屏幕显示调用glFlush(),将图像在当前显示缓存中直接渲染,会有图形跳动(闪烁)问题 GLUT_DOUBLE双缓冲,屏幕显示调用glutSwapBuffers(),将 ...
分类:
其他好文 时间:
2018-10-26 17:43:53
阅读次数:
177