1、不可变(immutable):int、字符串(string)、float、(数值型number)、元组(tuple)可变(mutable):字典型(dictionary)、列表型(list)>>>person=['name',['saving',100]]>>>ly=person[:]>>> z...
分类:
编程语言 时间:
2015-05-31 19:56:41
阅读次数:
140
-(void)converseToJson{ NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; [dictionary setValue:@"Archy" forKey:@"First Name"]; [dic...
分类:
移动开发 时间:
2015-05-31 19:54:19
阅读次数:
185
概述该篇主要介绍一些常用的sql优化技巧sql优化1.select * from table_name where;建议将*改为需要的列。这对速度不会有明显的影响,主要考虑节省内存。2.like语句一般情况下不鼓励使用like操作,如果非使用不可,如何使用也是一个问题。like “%aaa%” 不会使用索引而like “aaa%”可以使用索引。3.不要在列上进行运算,无法运用索引select * f...
分类:
数据库 时间:
2015-05-31 18:33:03
阅读次数:
212
contact.h
#ifndef __CONTACT_H__
#define __CONTACT_H__
#define NAME_LEN 10
#define SEX_LEN 6
#define TELE_LEN 12
#define ADDR_LEN 20
#define MAX_PEO 1000
typedef struct PEO
{
char name[NAME_LEN...
分类:
编程语言 时间:
2015-05-31 18:31:14
阅读次数:
166
girlfriend.h
class girlfriend
{
public:
string name;
int age;
face look;
string education_background;
protected:
void making_food(boyfriend &me);
void go_shopping(boyfriend &m...
分类:
其他好文 时间:
2015-05-31 18:26:41
阅读次数:
94
1、自定义枚举类的实现,例:class Season{ //1,提供类的属性,声明为rivate final private final String name; private final String Desc; //2,声明为final的属性,在构造器中初始化,构造器为...
分类:
编程语言 时间:
2015-05-31 18:19:22
阅读次数:
121
在代码中,使用统一的注释模板,进行统一格式化处理。打开Window->Preferences->Java->Code Style->Code Templates,把codetemplates.xml导入。 /** * ${tags} *//*** @ClassName: ${type_name}* ...
分类:
其他好文 时间:
2015-05-31 18:18:32
阅读次数:
126
js转换引用json.js(将json格式转换成字符串var name = document.getElementById("name").value; var retries = document.getElementById("retries").value; var testnam...
分类:
Web程序 时间:
2015-05-31 18:11:45
阅读次数:
134
# What is the difference between utm_source, utm_campaign and utm_medium? ## utm_source: As the name suggests this custom variable allows marketers to track the source that is sending the visits. I...
分类:
其他好文 时间:
2015-05-31 17:01:28
阅读次数:
120
contact.h#ifndef __CONTACT_H__
#define __CONTACT_H__
#include
#include
#define NAME_LEN 20
#define SEX_LEN 5
#define TELE_LEN 12
#define ADDR_LEN 20
#define MAX_PEO 1000
typedef struct Peo
{
...
分类:
其他好文 时间:
2015-05-31 16:55:47
阅读次数:
124