直接上代码吧#-*-coding:utf-8import osif os.path.exists('d:\\cpickle.data'): os.remove('d:\\cpickle.data')import cPickle as Pshoplist=['apple','banana','...
分类:
编程语言 时间:
2014-07-07 00:09:58
阅读次数:
475
-- 表的结构 `ecs_account_log`CREATE TABLE IF NOT EXISTS `ecs_account_log` (`log_id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增ID号',`user_id...
分类:
其他好文 时间:
2014-07-06 22:11:06
阅读次数:
365
今天import a project, 编译时提示Type R is already defined error, google, stackoverflow, 找到一个solution,"The type R is already defined"That's the message you ge...
分类:
其他好文 时间:
2014-07-06 18:04:39
阅读次数:
168
mysql创建自定义函数与存储过程一 创建自定义函数 在使用mysql的过程中,mysql自带的函数可能不能完成我们的业务需求,这时就需要自定义函数,例如笔者在开发过程中遇到下面这个问题mysql表结构如下DROP TABLE IF EXISTS `test`;CREATE TABLE `test....
分类:
数据库 时间:
2014-07-06 15:04:01
阅读次数:
271
存储过程&Function编号类别ORACLEMYSQL注释1创建存储过程语句不同create or replace procedure P_ADD_FAC(id_fac_cd IN ES_FAC_UNIT.FAC_CD%TYPE)isDROP PROCEDURE IF EXISTS `SD_USE...
分类:
其他好文 时间:
2014-07-06 14:21:16
阅读次数:
186
Given a string S,
find the longest palindromic substring in S.
You may assume that the maximum length of S is
1000, and there exists one unique longest palindromic substring.
给定一个字符串S,找出其中的最长回文...
分类:
其他好文 时间:
2014-07-06 00:15:15
阅读次数:
240
Given a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjace...
分类:
其他好文 时间:
2014-07-05 21:30:45
阅读次数:
175
php_memcached.dll csdn资源
memcached在windows7上的安装问题
错误:
通过cmd命令行进入到D:\webEve\memcached(下载后的解压目录)
运行 memcached.exe -d install
报错“ failed to install service or service already ins...
bootsect部分已经执行完成,程序也跳转到setup部分:
start:
! ok, the read went well so we get current cursor position and save it for
! posterity.
mov ax,#INITSEG ! this is done in bootsect already, but...
mov...
分类:
系统相关 时间:
2014-07-03 18:38:19
阅读次数:
329
/*1.创建数据库*/create database if not exists test_01;/*2.查询所有数据库*/show databases;/*3.使用数据库 */use test_01;/*4.创建表*/create table if not exists BaseUser( ...
分类:
数据库 时间:
2014-07-02 14:11:25
阅读次数:
194