码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
python学习--datetime模块
import datetime, calendar date = datetime.datetime.now() 获取的为当前系统时间#1、返回昨天日期def getYesterday(): today=datetime.date.today() oneday=datetime.timedelta(...
分类:编程语言   时间:2014-08-22 19:36:59    阅读次数:333
Sewing Machine is the equipment
Undoubtely, you have seen rubber bracelets being sported on the wrists of all sorts of people. The younger crowds love them, but they are not the only...
分类:Windows程序   时间:2014-08-22 19:34:39    阅读次数:301
用Python的Supervisor进行进程监控以及自动启动
做服务器端开发的同学应该都对进程监控不会陌生,最近恰好要更换 uwsgi 为 gunicorn,而gunicorn又恰好有这么一章讲进程监控,所以多研究了下。 结合之前在腾讯工作的经验,也会讲讲腾讯的服务器监控是怎么做的。...
分类:编程语言   时间:2014-08-22 18:16:29    阅读次数:304
python 中set模块的用法
今天有个简单的小需求:求列表中每个元素的个数,实现的方法有好几种,这里我就说一个用set来实现的。#!/usr/bin/envpython fa=[1,2,3,4,5,3,2,1,1,1,1,1,1,3,3,3,3,3] fb=set(fa) foriinfb: printi,fa.count(i)首先定义了一个列表,然后将列表使用set初始化之后赋值给fb,在..
分类:编程语言   时间:2014-08-22 18:13:49    阅读次数:176
再谈javascript 获取服务器控件值的
从网上搜索了好多资料,折腾了半天,终于搞定,记下来供大家参考这个是网上找到的<scriptlanguage="javascript">functiongetvalue(){varb=document.all.rbtid.lengthvara=document.getElementById("rbtid").rows.length;//alert(b);结果为5//alert(a);结果为4//for(vari=..
分类:编程语言   时间:2014-08-22 18:08:39    阅读次数:224
Python-wingide快捷键
用惯了eclipse,这个轻量级的wingide还真是有点不适应不过看在它小的份上,自己动手吧我用的是4.01中文改个font就好edit->preferences->UserInterface在font/size的地方选个支持中文的我用的是这个nsimsun12,看着这个还算顺眼2自动补全edit->preferences->Editor-..
分类:编程语言   时间:2014-08-22 18:06:29    阅读次数:1089
python学习笔记
2014.08.22了解有关最新发布版本和相关工具的资讯,python.org网站就是一个聚宝盆。Windows安装:pythonx.x或activePythonPython是一种解释型的、面向对象的,带有动态语义的高级程序设计语言。Liunx,输入Python启动交互python解释器,Ctrl-D退出交互式解释器;1.Python一行..
分类:编程语言   时间:2014-08-22 18:05:39    阅读次数:339
【Python笔记】图片处理库PIL的源码安装步骤
前段时间项目需要对某些图片打水印,用到Python的PIL库,本文以Imaging-1.1.7为例,记录PIL库的源码编译/安装步骤。 PIL全称Python Image Library,它支持多种图片格式的处理,能为我们的应用程序代理强大的图像处理能力,如裁剪、旋转、打水印等。 从官网下载v1.1.7版本源码并解压后,cd至解压目录,读README可知,若想在应用中处理jpeg图片,需要预先...
分类:编程语言   时间:2014-08-22 17:56:09    阅读次数:278
IOS-模糊搜索UISearchBar+UISearchDisplayController
不废话上代码 想学的跟着写一遍 注释很全了。 // //  RootViewController.m //  SearchTable // //  Created by ALei on 14-8-22. //  Copyright (c) 2014年 MinjieShou. All rights reserved. // #i...
分类:移动开发   时间:2014-08-22 17:53:49    阅读次数:326
projecteuler---->problem=35----Circular primes
Problem 35 The number, 197, is called a circular prime because all rotations of the digits: 197, 971, and 719, are themselves prime. There are thirteen such primes below 100: 2, 3, 5, 7, 11, 13,...
分类:其他好文   时间:2014-08-22 17:52:39    阅读次数:185
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!