码迷,mamicode.com
首页 >  
搜索关键字:python queue pipe    ( 144597个结果)
和我一起学python,初识python (life is short ,we need python)
作者:tobecrazy 出处:http://www.cnblogs.com/tobecrazy 欢迎转载,转载请注明出处。thank you!由于项目需要(并非因为life is short),开始学习python。1.python 是什么 和perl一样,python是一种脚本语言。由于语法简....
分类:编程语言   时间:2014-06-27 15:47:59    阅读次数:234
Red hat Linux 安装Node.js 源码安装
1、 下载源码包http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz2、准备安装环境,>python2.6, gcc, g++ python redhat自带了不用装, gcc: yum install -y gcc gcc-c++3、 ta...
分类:Web程序   时间:2014-06-27 14:55:37    阅读次数:224
《ruby编程语言》笔记 1
赋值:ruby支持并行赋值,即允许在赋值表达式中出现多余一个值和多于一个的变量:x,y=1,2a,b=b,ax,y,z=[1,2,3](python同样可以正常上面的语句)。Methods in Ruby are allowed to return more than one value, and ...
分类:编程语言   时间:2014-06-27 13:30:46    阅读次数:225
getrrdinfo.py
#!/usr/bin/env python# coding=gbkimport sysimport osimport timeif __name__== '__main__': filename = sys.argv[1] nowtime = int(time.time()) st...
分类:其他好文   时间:2014-06-27 13:28:10    阅读次数:148
python基础学习11(核心编程第二版)部分
#-*-coding:utf-8-*-#====================#File:python#Author:python#Date:2014#====================__author__='Administrator'#执行环境#可调用对象"""许多的python对象都是...
分类:编程语言   时间:2014-06-27 13:01:47    阅读次数:219
Python 字典中一键对应多个值
#encoding=utf-8 print '中国' #字典的一键多值 print'方案一 list作为dict的值 值允许重复' d1={} key=1 value=2 d1.setdefault(key,[]).append(value) value=2 d...
分类:编程语言   时间:2014-06-27 13:00:23    阅读次数:212
Python基于比较的排序
排序是算法学习中最基本的问题。1.平均时间复杂度均为O(N2)的排序1.1 插入排序插入排序对少量元素的排序非常有效。工作机制就像打牌一样,为了将牌插入到已排好序的牌中,需要将牌与手中的牌从右向左进行比较。def insertionSort(alist): n=len(alist) fo...
分类:编程语言   时间:2014-06-27 12:07:54    阅读次数:338
Vertica数据库常用管理命令汇总
1.查询数据库是否有等待select * from resource_queues where node_name=(select node_name from nodes order by node_name limit 1) order by queue_entry_timestamp desc...
分类:数据库   时间:2014-06-27 12:03:53    阅读次数:680
c++ STL:队列queue、优先队列priority queue 的使用
说明:本文全文转载而来,原文链接:http://www.cppblog.com/wanghaiguang/archive/2012/06/05/177644.htmlC++ Queues(队列)C++队列是一种容器适配器,它给予程序员一种先进先出(FIFO)的数据结构。1.back() 返回一个引用...
分类:编程语言   时间:2014-06-27 11:17:33    阅读次数:345
Python url_escape
escape.py# -*- coding: utf8 -*-import sysif type('') is not type(b''): def u(s): return s bytes_type = bytes unicode_type = str bas...
分类:编程语言   时间:2014-06-27 11:10:20    阅读次数:480
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!