原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:
编程语言 时间:
2014-06-15 19:51:00
阅读次数:
254
转自:http://news.cnblogs.com/n/210346/1.笨办法学 Pythonhttp://learnpythonthehardway.org/book/有各种练习题你将会会学到:在所有的平台上安装 Python 编程环境写 Python 程序理解 Python 语法和文档像一个...
分类:
编程语言 时间:
2014-06-15 18:10:32
阅读次数:
394
最近看Vamei的Python文章,其中一篇讲异常处理的,原本看完没啥疑惑,或许是自己想的简单了。看到评论,一个园友的问题引起我的兴趣。他的问题是def func(x): try: return ++x finally: return x+1print fun...
分类:
编程语言 时间:
2014-06-15 06:47:20
阅读次数:
228
在用中文进行注释的之后运行会有这样的提示:在文件头加上 #coding=utf-8这一行就可以用中文注释了
分类:
编程语言 时间:
2014-06-15 06:07:16
阅读次数:
310
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:
编程语言 时间:
2014-06-15 00:40:44
阅读次数:
328
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : requestAnyURLWithCookie.py# Author : luc...
分类:
Web程序 时间:
2014-06-15 00:33:30
阅读次数:
187
About getattrPython’s getattr function is used to fetch an attribute from an object, using a string object instead of an identifier to identify the at...
分类:
编程语言 时间:
2014-06-15 00:26:18
阅读次数:
487
#!/usr/bin/env python# -*- coding: utf-8 -*-############################################## File : loginMMVOIP.py# Author : lucasysfeng# Re...
分类:
Web程序 时间:
2014-06-15 00:18:13
阅读次数:
245
一、设计模式的分类总体来说设计模式分为三大类:创建型模式,共五种:工厂方法模式、抽象工厂模式、单例模式、建造者模式、原型模式。结构型模式,共七种:适配器模式、装饰器模式、代理模式、外观模式、桥接模式、组合模式、享元模式。行为型模式,共十一种:策略模式、模板方法模式、观察者模式、迭代子模式、责任链模式...
分类:
编程语言 时间:
2014-06-14 22:41:42
阅读次数:
369
没有见过比这个更小型的库了,下面程序实现的功能:播放音乐,按空格键实现暂停和播放的切换。#coding=utf-8import mp3playimport pythoncom, pyHookinput = 0pauseFlag=1def onKeyboardEvent(event): glob...
分类:
编程语言 时间:
2014-06-14 20:09:54
阅读次数:
366