码迷,mamicode.com
首页 >  
搜索关键字:python windows服务    ( 136859个结果)
GET RESTful With Python
Python调用RESTful:http://blog.akiban.com/get-restful-with-python/本文就是参考该英文做了一下试验,后续补充一下翻译。This post will take a look at our REST API by creating a Pytho...
分类:编程语言   时间:2014-09-19 19:07:05    阅读次数:286
CentOS6.5 64位系统安装32位python
CentOS6.5 自带gcc 4.4.7和python 2.6.6提醒:我使用的是root用户,如果非root用户,就在指令前面都加上sudo吧首先保证gcc可以将代码编译成32位,使用yum安装32位编译环境#yum install libstdc++-devel.i686 glibc.i686...
分类:编程语言   时间:2014-09-19 19:06:45    阅读次数:190
Python requests
一个最简化的例子payload = {'wd': 'google', 'rn': '100'}r = requests.get("http://www.baidu.com/s", params=payload)print r.urlu'http://www.baidu.com/s?rn=100&wd...
分类:编程语言   时间:2014-09-19 19:05:45    阅读次数:180
python build-in function __cmp__
读王纯业前辈的笔记遇到个很坑的例子A namespace is a mapping from names to objects>>> class a: def __cmp__(self,other): if other > 0 : print 'other > 0' ;return -1 eli.....
分类:编程语言   时间:2014-09-19 18:59:45    阅读次数:188
Python 类继承,__bases__, __mro__, super
Python是面向对象的编程语言,也支持类继承。 >>> class Base: ... pass ... >>> class Derived(Base): ... pass    这样就定义了两个类,Derived继承了Base。issubclass(a,b)可以测试继承关系: >>> issubclass(Derived, Base) True    在...
分类:编程语言   时间:2014-09-19 17:41:15    阅读次数:373
Python,异常 exception
同Java一样,Pyton异常对象来表示异常情况。遇到错误后,引发异常,如果异常对象并未对处理或捕捉,程序就会用所谓的回溯(Traceback)来终止执行; >>> 1/0 Traceback (most recent call last): File "", line 1, in ZeroDivisionError: division by zero    程序可以通过rais...
分类:编程语言   时间:2014-09-19 17:37:55    阅读次数:251
解决PIL “decoder jpeg not available” 和 “ImportError: The _imaging C module is not installed”的问题
在python安装Image后发现只要加载ImageFont就出现 The _imaging C module is not installed 的提示,经百度谷歌搜索后。发现WIN系统的人都会使用网上已经编译好的一个包。而LINUX下回答都很模糊。基本如下处理即可(CENTOS 5 64bit)y...
分类:其他好文   时间:2014-09-19 17:06:55    阅读次数:165
使用nssm在windows服务器上部署nodejs
在Linux上,可以轻松的使用forever或者pm2来部署nodejs应用。但是在windows下就麻烦了,pm2明确的说支持Linux & MacOS,forever在windows下貌似问题多多: 另外还有一个选择就是iisnode,这个有空研究一下,今天先...
分类:Windows程序   时间:2014-09-19 15:48:05    阅读次数:510
[Python]How to handle the exception in Python?
This post demonstrates how to use try clause to handle the exceptions....
分类:编程语言   时间:2014-09-19 15:44:15    阅读次数:220
leetcode Reverse words in a string Python
刚接触python不久,被python的简洁强大迷倒了,在做leetcode,Reverse words in a string时,刚开始还是传统的思路想着怎么处理空格问题一直测试不通过,写的很罗嗦被师弟吐槽说你写的代码好丑,好心塞。 废话不多说直接奉上思路代码: 翻转字符串如:"Hello...
分类:编程语言   时间:2014-09-19 15:32:35    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!