码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
python-re模块
python re模块中的用法:1,compile: re.compile(strPattern[, flag])pattern=re.compile(r"(.*?)")得到的是一个pattern对象,属性有:pattern: 编译时用的表达式字符串。flags: 编译时用的匹配模式。数字形式。gr...
分类:编程语言   时间:2014-08-24 16:39:02    阅读次数:308
Linux(Centos)——下升级python3.3
CentOS下的Python版本一般都比较低,很多应用都需要升级python来完成。我装的centOS的默认的python版本是V2.4.3,但运行node.js需要的版本是2.5以上。 1。下载python3.3安装包:wget http://www.python.org/ftp/python/3...
分类:编程语言   时间:2014-08-24 16:38:52    阅读次数:221
CentOS——yum命令运行错误解决办法
问题:[root@name user]# yumFile "/usr/bin/yum", line 30except KeyboardInterrupt, e:^原因:这是因为yum采用python作为命令解释器,这可以从/usr/bin/yum文件中第一行#!/usr/bin/python发现。而...
分类:其他好文   时间:2014-08-24 16:35:02    阅读次数:194
Javascript AMD学习
我们知道在其它编程语言中, 都有包(命令空间)的概念, 帮助我们更好的管理代码结构. 如java中的package, python中的module. 但是在js语言中, 在一个页面执行环境内, 所有引入的外部的js文件都会在同一个global上下文中执行, 做不到几点: 不能动态加载我们只需要的模块...
分类:编程语言   时间:2014-08-24 15:26:32    阅读次数:217
pyqt学习基础 4 -插曲- python 正则表达式学习
# python 正则表达式学习 ## 资源来自 > 学习资源来自[ubuntu wiki]( http://wiki.ubuntu.org.cn/Python%E6%AD%A3%E5%88%99%E8%A1%A8%E8%BE%BE%E5%BC%8F%E6%93%8D%E4%BD%9C%E6%8C%87%E5%8D%97) ## 正则表达式介绍...
分类:编程语言   时间:2014-08-24 14:17:12    阅读次数:226
集体智慧编程--勘误表(1-4章)
最近在工作之余的时间在阅读集体智慧编程这本书,在随书码字的过程中遇到的一些问题,就在这里记录一下:(注:下面的页码针对于英文的非影印版)chapter1 标题:没什么说的,浏览下就好。chapter2 提供推荐:1.书上的源码是基于python 2.x,而在3.x中print是被当作一个函数处理,所...
分类:其他好文   时间:2014-08-24 12:52:22    阅读次数:572
Codeforces 460 D. Little Victor and Set
暴力+构造 If r?-?l?≤?4 we can all subsets of size not greater than k. Else, if k?=?1, obviously that answer is l. If k?=?2, answer is 1, because xor of numbers 2x and 2x?+?1 equls 1. If k?≥...
分类:其他好文   时间:2014-08-24 11:40:22    阅读次数:233
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-08-24 11:32:02    阅读次数:164
Hackerrank--Savita And Friends(最小直径生成树MDST)
题目链接After completing her final semester, Savita is back home. She is excited to meet all her friends. HerNfriends live in different houses spread acro...
分类:其他好文   时间:2014-08-24 11:29:42    阅读次数:327
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!