码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
sys.argv用法
argv是在脚本内部使用,旨在接受命令传参比如,一个脚本argv.py,代码里面有,sys.argv[1],,sys.argv[2],那么运行这个脚本时,必须在后面跟两个参数,用空格隔开,如:python argv.py hello world 示例如下:首先编辑脚本 argv.py#coding:...
分类:其他好文   时间:2014-06-18 14:35:13    阅读次数:191
(转)python set 用法
转载自:http://hi.baidu.com/????_xu/blog/item/5b9650c513bd3f049d163d8b.htmlpython的set和其他语言类似, 是一个 基本功能包括关系测试和消除重复元素. 集合对象还支持union(联合),intersection(交), dif...
分类:编程语言   时间:2014-06-18 14:30:05    阅读次数:243
python2.7中可以使用到的一些模块地址
1、reportlab:由很多部分组成且允许用户使用多种方法创建输出,地址:下载ReportLabhttps://pypi.python.org/simple/reportlab/http://www.reportlab.com/software/opensource/rl-toolkit/down...
分类:编程语言   时间:2014-06-18 14:22:27    阅读次数:313
namenode未启动
1、问题:start-all.sh结果jps发现namenode没有启动,其它进程都启动2、查看日志,没有namenode生产的日志3、奇了,检查其它进程的日志,都在重新连接namenode Zzzzzzz.....4、记得虚拟机是直接关机的,未执行stop-all.sh5、删除tmp目录(metd...
分类:其他好文   时间:2014-06-18 13:49:33    阅读次数:252
Django学习笔记——安装(linux环境)
1. 下载安装Djangopip install Django==1.6.5测试是否安装成功>>> import django>>> djan.VERSION>>> django.VERSION(1, 6, 5, 'final', 0)2. 安装数据库MySQL说明:使用python连接到MySQL...
分类:系统相关   时间:2014-06-18 13:10:48    阅读次数:288
OS | monolithic kernel & microkernel
A monolithic kernel is a kernel where all services (file system, VFS, device drivers, etc) as well as core functionality (scheduling, memory allocatio...
分类:其他好文   时间:2014-06-18 12:45:23    阅读次数:361
[LeetCode] Word Break II
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all such po...
分类:其他好文   时间:2014-06-17 21:15:35    阅读次数:211
用python.twisted.logfile每天记录日志,并用不记录stdout中的内容
#导入的头from twisted.python import logfrom twisted.python.logfile import *#开始记录,输入日志名和存放的路径,setStdout为0不记录stdout的内容,默认setStdout=1,记录print的输出log.startLog....
分类:编程语言   时间:2014-06-17 21:09:45    阅读次数:332
JavaScript Patterns 4.9 Configuration Objects
Passing a large number of parameters is not convenient. A better approach is to substitute all the parameters with only one and make it an object.
分类:编程语言   时间:2014-06-17 20:40:07    阅读次数:185
[数据结构与算法分析(Mark Allen Weiss)]二叉树的插入与删除 @ Python
二叉树的插入与删除,来自Mark Allen Weiss的《数据结构与算法分析》。# Definition for a binary tree nodeclass TreeNode: def __init__(self, x): self.val = x self...
分类:编程语言   时间:2014-06-17 14:25:01    阅读次数:291
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!