码迷,mamicode.com
首页 >  
搜索关键字:import datetime    ( 72129个结果
asp.net 根据当前时间获取本周、上周、下周的周一、周日日期
//本周周一日期,返回结果格式:2014-5-5 0:00:00public static DateTime GetMondayDate(){ DateTime dt=DateTime.Now; int today=(int)dt.DayOfWeek; if(dt.DayOfWeek.Tost...
分类:Web程序   时间:2014-05-08 18:37:12    阅读次数:367
黑马程序员 内存管理之proterty,autorelease
#import @interface Person : NSObject{ Book * _book; int _age;}/* oc对象 1.@property能制动生成setter和getter方法 2.retain告诉编译器自动生成setter里的retain 3.atomic:低性能(默认情...
分类:其他好文   时间:2014-05-08 18:33:51    阅读次数:303
iOS 引导页
// GuideViewController.h// Created by l.h on 14-5-6.#import @interface GuideViewController : UIViewController@end //// GuideViewController.m// Cr...
分类:移动开发   时间:2014-05-08 18:17:49    阅读次数:640
java实现——030最小的k个数
1.O(nlogk)海量数据 1 import java.util.TreeSet; 2 3 public class T030 { 4 public static void main(String[] args){ 5 int[] data = {4,5,1,6,2,7,...
分类:编程语言   时间:2014-05-08 18:07:12    阅读次数:422
java线程
package com.test; import java.util.Date; /** * @author libt * @version 创建时间:2014-5-08上午11:39:37 * 开了三个线程。一个timeThread,一个thread2,一个main thread。...
分类:编程语言   时间:2014-05-08 17:54:05    阅读次数:368
黑马程序员 block,protocol
#import // 利用typedef创建blocktypedef int (^MyBlock) (int,int); // 表示遵守协议@protocol MyProtocol /* 1.reqiured:要求实现方法,不实现方法编译器会发出警告 2.optional:不要求实现方法 3.默.....
分类:其他好文   时间:2014-05-08 17:40:55    阅读次数:225
亲身体验MySQL的索引对搜索性能的提升
1,创建一个user表,包含两列name,phone 2,用python(你喜欢的任何语言)插入100W条记录(lz的笔记本比较老,大概用了1分钟吧): #!/usr/bin/env python # -*- coding:utf-8 -*- import MySQLdb conn = MySQLdb.connect(host='localhost',user='root',db='mi...
分类:数据库   时间:2014-05-08 15:52:43    阅读次数:393
java输入输出
1、import java.io.*;//写进文档,然后又在显示器显示出来。public class fileinputstream{public static void main(String[] args) throws IOException {DataOutputStream out = n...
分类:编程语言   时间:2014-05-08 15:40:06    阅读次数:376
java实现——007用两个栈实现队列
1 import java.util.Stack; 2 3 public class T007 { 4 public static void main(String[] args) { 5 Queue q = new Queue(); 6 q.stack1...
分类:编程语言   时间:2014-05-08 15:32:24    阅读次数:356
黑马程序员 Foundation框架之结构体
#import int main(){/* 1.NSRange/CGRange 2.NSPoint/CGPoint 3.NSSize/CGSize 4.NSRect/CGRct */// NSRange/CGRange(location,length)NSString *str = @"i love...
分类:其他好文   时间:2014-05-08 14:51:00    阅读次数:325
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!