码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
The in operator
The operators we have seen so far are all special characters like + and *, but there are a few operators that are words. in is a boolean operator that...
分类:其他好文   时间:2014-07-07 15:39:31    阅读次数:246
[leetcode] Minimum Window Substring
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
分类:Windows程序   时间:2014-07-07 15:11:15    阅读次数:278
No module named yum错误的解决办法
今天要用yum安装软件,于是yum install ***,但是报错,错误如下:There was a problem importing one of the Python modules required to run yum. The error leading to this problem...
分类:其他好文   时间:2014-07-07 14:55:42    阅读次数:350
[leetcode] Sort Colors
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, ...
分类:其他好文   时间:2014-07-07 14:54:18    阅读次数:219
python技巧31[移植python2.x到3.x]
我们都知道python从2.x升级到3.x的过程中有一些不兼容的改动,但是有时还我们不得不将2.x的程序升级到3.x。主要不兼容如下图:移植过程:1)确保存在的代码有足够的测试覆盖。从2.x到3.x的升级工作量并不是很大,但是包含了很多的微小的不兼容,必须通过测试来确保升级后的程序仍然保持原有的功能...
分类:编程语言   时间:2014-07-07 14:50:27    阅读次数:280
python类库32[多进程通信Queue+Pipe+Value+Array]
多进程通信queue和pipe的区别: pipe用来在两个进程间通信。queue用来在多个进程间实现通信。 此两种方法为所有系统多进程通信的基本方法,几乎所有的语言都支持此两种方法。1)Queue & JoinableQueuequeue用来在进程间传递消息,任何可以pickle-able的对象都可...
分类:编程语言   时间:2014-07-07 14:49:49    阅读次数:321
[leetcode] Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
分类:其他好文   时间:2014-07-07 14:48:39    阅读次数:160
python基础31[常用模块介绍]
python基础31[常用模块介绍] python除了关键字(keywords)和内置的类型和函数(builtins),更多的功能是通过libraries(即modules)来提供的。常用的libraries(modules)如下:1)python运行时服务* copy: copy模块提供了对复合(...
分类:编程语言   时间:2014-07-07 14:44:07    阅读次数:247
下载8000首儿歌的python代码
下载8000首儿歌的python的代码:#-*- coding: UTF-8 -*-from pyquery import PyQuery as pyfrom lxml import etreeimport urllibimport reimport osimport sysimport loggi...
分类:编程语言   时间:2014-07-07 14:43:22    阅读次数:216
python基础31[python IDE之Eclipse+PyDev]
一 入门IDE作为python的初学者,在语法和类库学习阶段,我们可以使用以下简单使用的IDE:1) Python SDK 自带的IDEL(Python GUI)2) Komodo-Edit3) NotePad++二 终极IDE 之 Eclipse+PyDev1 特点1)开源免费2)代码完成和调试3...
分类:编程语言   时间:2014-07-07 14:41:20    阅读次数:279
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!