码迷,mamicode.com
首页 >  
搜索关键字:python paramiko threading    ( 137519个结果)
Eclipse和PyDev搭建完美Python开发环境(Windows篇)
http://blog.163.com/jackie_howe/blog/static/199491347201282272155373/1.准备工作:下载32位的JDK6 Java的开发包我也不想装这玩意儿,但是Eclipse依赖他,没办法。下载32位的Eclipse下载Python 2.x2.配...
分类:编程语言   时间:2014-08-27 21:43:38    阅读次数:313
【Python⑥】python的缩进,条件判断和循环
缩进Python的最大特色是用缩进来标明成块的代码。这点和其他语言区别很明显,比如大家熟悉的C语言里:if ( flag>= 0 ){ num+=1; flag-=1;}而在python中:if flag>= 0 : num+=1 flag-=1num+=1和flag-=...
分类:编程语言   时间:2014-08-27 20:20:08    阅读次数:252
python查询数据库小例子
Windows下面到下载MySQLdb:http://www.codegood.com/downloads# -*- coding: utf-8 -*-from datetime import *import MySQLdbimport sysFILE_C = "c_%d.html"CIDS = [...
分类:数据库   时间:2014-08-27 20:19:18    阅读次数:249
Python-列表
>>> L = ['spam', 'Spam', 'SPAM!']>>> L[0:2] = ['eat', 'more']>>> L['eat', 'more', 'SPAM!']========================================>>> L[1:2] = [4,5]>>...
分类:编程语言   时间:2014-08-27 20:15:48    阅读次数:200
机器学习相关资料
scikit-learn.org 一个开源的机器学习python工具 http://scikit-learn.org/stable/tutorial/machine_learning_map/index.html Theano - Phthon深度学习算法库 Python的科学计算库 http://...
分类:其他好文   时间:2014-08-27 20:12:08    阅读次数:247
Permutations【python】
class Solution: # @param num, a list of integer # @return a list of lists of integers def permute(self, num): length=len(num) i...
分类:编程语言   时间:2014-08-27 20:11:28    阅读次数:200
python函数zip
zip函数可接受任意序列为参数,返回一个以tuple为元素的列表:>>>a=[1,2,3] >>>b=[4,5,6] >>>zip(a,b) [(1,4),(2,5),(3,6)] >>>当两个序列元素个数不一致时,以较少的为准:>>>a [1,2,3] >>>c [7,8,9,10] >>>z..
分类:编程语言   时间:2014-08-27 19:00:38    阅读次数:198
python函数map
map(function,iterable,...)Applyfunctiontoeveryitemofiterableandreturnalistoftheresults.Ifadditionaliterableargumentsarepassed,functionmusttakethatmanyargumentsandisappliedtotheitemsfromalliterablesinparallel.Ifoneiterableisshorterthananotheritisassumedtobee..
分类:编程语言   时间:2014-08-27 18:56:28    阅读次数:219
[OpenStack] Nova中的线程模型
1) greenlet - python中的协程库 1.1) 什么是协程 (Coroutine) Coroutine Wiki http://en.wikipedia.org/wiki/Coroutine CoRoutine是在Thread基础上的再次切分. 每一个Process可以包含多个Thread, 每个线程包含多个CoRoutine在任何时刻, 同一个Threa...
分类:编程语言   时间:2014-08-27 18:51:38    阅读次数:266
linux(debian)系统django配远程连接sqlserver数据库
费了将近一天时间,终于解决,记下来留给需要的人 需要安装的: python-odbc : https://github.com/mkleehammer/pyodbc 下载后install django-pyodbc : https://pypi.python.org/pypi/django-pyodbc 下载后install unixODBC:http://www.unixodb...
分类:数据库   时间:2014-08-27 18:45:58    阅读次数:434
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!