码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
hust 1075 Every String Left Behind
题目描述Elenore has a list of strings that she wants to put in a file. She could just put them all into a file in order, but she wants to minimize the siz...
分类:其他好文   时间:2014-05-17 01:33:55    阅读次数:257
快速排序算法
快速排序算法。python实现。 1 # -*- coding: utf8 -*- 2 3 import random 4 5 def partition(mylist, low, high): 6 pivotkey = mylist[low] 7 while low = piv...
分类:其他好文   时间:2014-05-17 01:25:40    阅读次数:305
一道超级坑爹的水题(ACdream oj 无耻的出题人)
A - 无耻的出题人 Time Limit: 2000/1000 MS (Java/Others)      Memory Limit: 65536/32768 KB (Java/Others)  Submit Status Problem Description 听到X神要参加比赛,只会Fibnacci数的出题人被吓得哭晕在厕所。为了防止X神AK(ALL KI...
分类:其他好文   时间:2014-05-13 16:01:26    阅读次数:234
ZOJ3671:Japanese Mahjong III
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:其他好文   时间:2014-05-13 14:59:51    阅读次数:356
ZOJ3669:Japanese Mahjong I
Mahjong is a game of skill, strategy and calculation and involves a certain degree of chance. In this problem, we concentrate on Japanese Mahjong, a variation of mahjong. For brief, all of the word ma...
分类:其他好文   时间:2014-05-13 13:54:14    阅读次数:463
linux 自动化运维之Cobbler
一、Cobbler简介1.Cobbler概述Cobbler由python语言开发,是对PXE和Kickstart以及DHCP的封装。融合很多特性,提供了CLI和Web的管理形式。更加方便的实行网络安装。同时,Cobbler也提供了API接口,使用其它语言也很容易做扩展。它不紧可以安装物理机,同时也支持kvm、xen虚拟化、..
分类:系统相关   时间:2014-05-13 13:10:11    阅读次数:758
【原创】用第三方语言编写PostgreSQL 存储函数
在PostgreSQL里,所有的存储函数需求都可以用PLPGSQL来实现。同时也支持用第三方语言来编写,这个就得看自己哪个方面熟练了。不过要注意的一点是PLPGSQL的效率怎么着都比其他第三方语言来的高效。比如,简单的插入表的存储函数:CREATEORREPLACEFUNCTIONytt.insert_plpgsql(f_n..
分类:数据库   时间:2014-05-13 12:26:06    阅读次数:416
Golang的errno
在C中,出错信息一般通过errno来处理,一般有两种方式,一种是用标准的errno全局变量,另一种是自己定义错误码,然后在出错时返回错误码。但这里就涉及到一个线程安全的问题。那在Golang中是如何处理的呢?Golang和Python一样支持多值返回。和C一样,Golang也可以通过返回错误..
分类:其他好文   时间:2014-05-13 12:08:35    阅读次数:699
自动化运维平台之系统自动化安装Cobbler系统使用详解
一、简介Cobbler是一个快速网络安装linux的服务,而且在经过调整也可以支持网络安装windows。该工具使用python开发,小巧轻便(才15k行python代码),使用简单的命令即可完成PXE网络安装环境的配置,同时还可以管理DHCP、DNS、以及yum仓库、构造系统ISO镜像。Cobbler支持命令行..
分类:其他好文   时间:2014-05-13 11:57:24    阅读次数:458
HDU3920:Clear All of Them I(状态压缩)
Problem Description Acmers have been the Earth Protector against the evil enemy for a long time, now it’s your turn to protect our home.   There are 2 * n enemies in the map. Your task is to clear a...
分类:其他好文   时间:2014-05-13 11:29:40    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!