显示下一条  |  关闭

刘鑫的博客

非主流~时尚

 
 
 
 
 
 

[置顶] python下载糗事百科修改版

2008-11-12 10:08:48 阅读130 评论1 122008/11 Nov12

#encoding:utf-8
#进行了一些优化
import sqlite3,urllib2,re,glob,os

_database='db.sqlite3'
_cn=sqlite3.connect(_database)
c=_cn.cursor()

findById='select * from qiu where id=?'
findByStatus='select * from qiu where status=?'
findContentNotEmpty='select * from qiu where content<>""'

作者  | 2008-11-12 10:08:48 | 阅读(130) |评论(1) | 阅读全文>>

[置顶] python用穷举法解决寻路问题

2008-10-2 10:03:13 阅读103 评论0 22008/10 Oct2

??下面是我用Python穷举路径的问题
??问题:若有nXm的矩阵,希望找出从(1,1,)到(n,m)所有路径的组合,以1表示向右,0表示向左,列举出所有的可能情况,不许向左和向上走

#!/usr/bin/env python
#coding=utf-8
import sys
sys.setrecursionlimit(150000)


def combine(n,m,result=None):
?? ?if result==None:
?? ? ? ?result=[]
?? ? ? ?result.append([1]*n+[0]*m)

作者  | 2008-10-2 10:03:13 | 阅读(103) |评论(0) | 阅读全文>>

Chapter 2

2008-11-26 12:18:05 阅读38 评论1 262008/11 Nov26

Pecuniary Emulation

In the sequence of cultural evolution the emergence of a leisure class coincides with the beginning of ownership. This is necessarily the case, for these two institutions result from the same set of economic forces. In the inchoate phase of their development they are but different aspects of the same general facts of social structure.

It is as elements

作者  | 2008-11-26 12:18:05 | 阅读(38) |评论(1) | 阅读全文>>

大话西游

2008-11-25 20:42:12 阅读52 评论1 252008/11 Nov25

删掉所有和你有关的图片,不知道心里的记忆是不是也随着去了

听着大话西游的音乐,想到的还是你

在校园里,看到穿白色羽绒服的想到,看到同学影子也像你,

逝去的还能回来么

我想你

大话西游很悲剧,每次心情不好的时候,都想回来看一次

作者  | 2008-11-25 20:42:12 | 阅读(52) |评论(1) | 阅读全文>>

Chapter 1

2008-11-24 11:05:36 阅读36 评论0 242008/11 Nov24

Chapter One (CONT'D)

It is here assumed that in the sequence of cultural evolution primitive groups of men have passed from an initial peaceable stage to a subsequent stage at which fighting is the avowed and characteristic employment of the group. But it is not implied that there has been an abrupt transition from unbroken peace and good-will to a later or higher phase of life in which

作者  | 2008-11-24 11:05:36 | 阅读(36) |评论(0) | 阅读全文>>

微软与郑码

2008-11-23 22:56:04 阅读74 评论0 232008/11 Nov23

因被诉10年白用“郑码输入法”构成侵权,微软公司麻烦缠身。此案还未了结,微软公司却反过来把国家知识产权局专利复审委员会诉至法院,要求撤销郑码输入法的专利权。昨天上午,北京市一中院一审判决驳回了微软的诉讼请求。

   郑码输入法由《英华大辞典》主编郑易里先生及其女儿郑珑共同发明,获得中国发明专利。1992年,北京中易中标电子信息技术公司获得郑易里及郑珑的专利 授权。1994年,微软进入中国时试图找出一款汉字输入法加入Windows操作系统,服务中国用户。1995年9月20日,中国电子工业部和微软签署 《Windows95中文版项目标准规范合作协议书》,微软确定在Windows3.2和Windows95中优先使用郑码输入法和中易字库。

   2008年1月15日, 郑码输入法版权所有方中易公司起诉美国微软公司在十多年的时间内违法使用郑码输入法,侵犯相关知识产

作者  | 2008-11-23 22:56:04 | 阅读(74) |评论(0) | 阅读全文>>

很神准的心理测试【测试了的确很准】

2008-11-23 22:13:51 阅读108 评论1 232008/11 Nov23

这是一个流传甚广的心理测试,几乎每一个做过测试的人都说很神准。这49个神秘的瓶子,代表了49种不同的性格。

请凭直觉,从下面49个瓶子中,选出一个来(注意,只能选择一个):

很神准的心理测试【测试了的确很准】 - liuxin9023 - 刘鑫的博客
【0号瓶】灵性解救瓶
你是一个神秘的人,与上天有所连结。你可能有很强的第六感或者灵通的能力。

作者  | 2008-11-23 22:13:51 | 阅读(108) |评论(1) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
 

北京市 海淀区 天蝎座

 发消息  写留言

 
python大鳄!!!!!!!
 
近期心愿LaTex学习中...
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 

日历

 
 
模块内容加载中...
 
 
 
 
 

天气

 
 
模块内容加载中...
 
 
 
 
 
 
 
博友列表加载中...
 
 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 

发现好博客

 
 
列表加载中...
 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

创建博客 登录  
 关注