码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
Recover Binary Search Tree
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:其他好文   时间:2014-05-17 11:30:21    阅读次数:247
python mysql 查询返回字典结构
cur = self.conn.cursor(MySQLdb.cursors.DictCursor)加上MySQLdb.cursors.DictCursor可以返回字典结构{列名:值}class MYSQL(): def __init__(self,host,user,pwd,db): ...
分类:数据库   时间:2014-05-16 19:18:34    阅读次数:419
IOS 7 viewForHeaderInSection 的section从1开始而不是从0开始
【问题】 (UIView *) tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section 方法中的section貌似从1开始而不是从0【思路】程序中虽然设置了self.tableView.sectionH...
分类:移动开发   时间:2014-05-16 08:54:30    阅读次数:521
navigationController基本设置
//设置导航栏的文字self.navigationItem.title=@"功效";//设置导航栏的颜色self.navigationController.navigationBar.barTintColor= [UIColororangeColor];//设置导航栏上字体颜色 [self.na.....
分类:其他好文   时间:2014-05-16 08:11:48    阅读次数:247
shell note
死循环while :do# do somethingdone
分类:其他好文   时间:2014-05-16 06:16:36    阅读次数:227
[Erl_Question04]为什么有了rpc还有net_kernel:connect/1?
问题描述:RPC(Remote Procedure Call)远程程序调用:如果要给另一个节点发信息:可以简单写成:call(Msg,Node) -> {server,Node}!{self(),Msg}, receive {ok,Res} -> Resend.ser...
分类:Web程序   时间:2014-05-14 13:24:12    阅读次数:450
Python常用函数及说明
基本定制型C.__init__(self[, arg1, ...]) 构造器(带一些可选的参数)C.__new__(self[, arg1, ...]) 构造器(带一些可选的参数);通常用在设置不变数据类型的子类。C.__del__(self) 解构器C.__str__(self) 可打印的字符输出...
分类:编程语言   时间:2014-05-14 12:26:48    阅读次数:435
spring-note-01
所需jar包:bean: 1 package com.myspring.bean; 2 3 public class User { 4 private String id; 5 private String name; 6 7 public String getId() ...
分类:编程语言   时间:2014-05-14 08:55:20    阅读次数:364
iOS toolbar
初学ios,对toolbar初步了解:self.navigationItem.title=@"显示工具栏"; // 显示工具栏 //self.navigationController.toolbarHidden = NO; [self.navigationController se...
分类:移动开发   时间:2014-05-13 19:51:16    阅读次数:350
arcengine note:
1.释放文件锁定:C#中确保没有引用后调用GC.Collect();2.rasterExtractValuesToPoints中点数据在sde中不可用,点数据保存为本地shp文件后可用;
分类:其他好文   时间:2014-05-13 10:26:51    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!