码迷,mamicode.com
首页 > 编程语言
线程同步
# -*- coding: cp936 -*-#python 27#xiaodeng#http://www.oschina.net/code/snippet_16840_1815import threading,string,timedef print_time(threadName,delay,c...
分类:编程语言   时间:2015-11-06 00:19:01    阅读次数:235
java的集合框架之一
java是一套很成熟的东西,很多商用的东西都喜欢用它,用的人多,稳定。不过一般也不怎么说起它,因为太常见了,私下里说,写java应用层得就像农民工,每一处都是搭积木,根据设计师的东西如何优雅地搭好积木,当然美其名曰,论农民工搭积木的艺术修养。不难,但是东西很多,经验在里面是一个相当重要的东西。以.....
分类:编程语言   时间:2015-11-06 00:17:10    阅读次数:210
python join
# 对序列进行操作' '.join(['hello','good','boy','doiido'])hello:good:boy:doiido # 对字符串进行操作':'.join("hello good boy doiido") h:e:l:l:o: :g:o:o:d: :b:o:y: :d:o....
分类:编程语言   时间:2015-11-06 00:14:32    阅读次数:320
java中的抽象类
java中的抽象类abstract class PlaneGraphics //平面类,抽象类{ private String shape; //形状 //构造方法,有参数 public PlaneGraphics(String shape) { this.shape=shape; }//无参数.....
分类:编程语言   时间:2015-11-06 00:13:05    阅读次数:184
javascript 模仿回车键事件
其实我的本意是,按着回车键就相当于点击了提交按钮,但是呢,直接按回车键,并没有触发,每次都需要用tab键,让input onblur之后才能触发回车键事件,大家有什么解决的方法吗
分类:编程语言   时间:2015-11-06 00:13:49    阅读次数:305
Java 继承 神奇的 " + " 号
示例程序:public class Fruit{ public String toString() { return "Fruit toString."; } public static void main(String args[]) {...
分类:编程语言   时间:2015-11-06 00:13:52    阅读次数:230
java web前端easyui(layout+tree+双tabs)布局+树+2个选项卡tabs
1.列出要实现的样式:2.实现的代码:分三大部分:1):页面主体部分:mian.vm Ks UI #parse("ui:include") ...
分类:编程语言   时间:2015-11-06 00:10:02    阅读次数:707
配置Sublime Text的Python运行环境
这其实就一句话,只要在Sumlime Text 中Python的配置文件里修改即可。步骤:1. 打开Sublime Text;2. 在菜单栏上选择“Preferences”-->“BrowsePackages”;3. 在打开的窗口中找到Python文件夹;4. 找到Python.sublim...
分类:编程语言   时间:2015-11-06 00:10:44    阅读次数:230
C语言随机数
1 #include 2 #include 3 #include 4 5 #define MAX 100 //随机数范围上限 6 #define MIN 10 //随机数范围下限 7 8 int main() 9 {10 int num,i;11 srand( time(...
分类:编程语言   时间:2015-11-06 00:10:52    阅读次数:208
2015 北京网络赛 E Border Length hihoCoder 1231 树状数组 (2015-11-05 09:30)
#1231 : Border Length时间限制:1000ms单点时限:1000ms内存限制:256MB描述Garlic-Counting Chicken is a special species living around the Lake of Peking University.A Garl...
分类:编程语言   时间:2015-11-06 00:07:00    阅读次数:358
Java 继承 不允许继承的类 不可变的类 final class
实例:public final class Address{ private final String detail; private final String postCode; //在构造方法里初始化两个实例属性 public Address() { ...
分类:编程语言   时间:2015-11-06 00:02:10    阅读次数:234
C# 定义一个学生的结构体,输入学生信息,学号,姓名,身高,按身高排序输出
class Program { //定义一个结构体 struct student//student就是我们自己造的新数据类型 { public int code;//public修饰符 ...
分类:编程语言   时间:2015-11-05 23:59:00    阅读次数:331
Spring下ActiveMQ实战
MessageQueue是分布式的系统里经常要用到的组件,一般来说,当需要把消息跨网段、跨集群的分发出去,就可以用这个。一些典型的示例就是: 1、集群A中的消息需要发送给多个机器共享; 2、集群A中消息需要主动推送,但彼此的网络不是互通的(如集群A只有过HA才能被外界访问); ...
分类:编程语言   时间:2015-11-05 23:57:29    阅读次数:646
swift 赋值判断
---恢复内容开始---.1 var name:String? = "ZZ"2 var geting = "Hello!"3 if let thisname = name{4 geting = "Hello,\(name)" //Hello,ZZ5 }6 else7 {...
分类:编程语言   时间:2015-11-05 23:57:37    阅读次数:403
spring+velocity+javamail发送模板邮件
spring+velocity+javamail发送模板邮件
分类:编程语言   时间:2015-11-05 23:57:15    阅读次数:412
冒泡排序文法树
分类:编程语言   时间:2015-11-05 23:54:34    阅读次数:269
Java 继承 反汇编 class A { } 执行结果
源代码:public class ExplorationJDKSource { /** * @param args */ public static void main(String[] args) { System.out.println(new A())...
分类:编程语言   时间:2015-11-05 23:52:03    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!