码迷,mamicode.com
首页 >  
搜索关键字:python pip    ( 138295个结果)
CentOS yum 源的配置与使用
CentOS yum 源的配置与使用一、yum 简介 yum,是Yellow dog Updater, Modified 的简称,是杜克大学为了提高RPM 软件包安装性而开发的一种软件包管理器。起初是由yellow dog 这一发行版的开发者Terra Soft 研发,用python 写成,那时还....
分类:其他好文   时间:2014-09-20 16:16:38    阅读次数:420
python基础
1,judgment in deciding(if...:,if..else:,if else...else:),loop(for...:,while True...:)break,continue;2,搞定python内置核心类型tuple(以下标数据序索引数据,元素不可更改),dict{与tup...
分类:编程语言   时间:2014-09-20 15:18:47    阅读次数:276
吃午饭前,按书上的代码写会儿--Hunt the Wumpus第一个版本
有空就要慢慢练起~~~~脑袋动起来是很快乐的事儿。。。。:)《易学PYTHON》演练一遍。from random import choicecave_numbers = range(1,21)wumpus_location = choice(cave_numbers)player_location ...
分类:其他好文   时间:2014-09-20 15:15:27    阅读次数:182
python __setattr__, __getattr__, __delattr__,__getattribute__
参考资料           __setattr__、__getattr__和__delattr__以及__getattribute__可以拦截对对象属性的访问;        >>> s = Something() >>> s.age = 3 set 'age' = 3 >>> s.age 3 注意到,s.age并没有调用__getattr__,是因为...
分类:编程语言   时间:2014-09-20 10:05:47    阅读次数:188
[leetcode] Combinations @ Python [ask for help]
https://oj.leetcode.com/problems/combinations/Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If ...
分类:编程语言   时间:2014-09-20 09:58:07    阅读次数:204
[leetcode]Next Permutation @ Python
原题地址:https://oj.leetcode.com/problems/next-permutation/题意:Implement next permutation, which rearranges numbers into the lexicographically next greater...
分类:编程语言   时间:2014-09-20 07:44:56    阅读次数:241
Nginx+Django+Uwsgi架构部署
随着IT不断发展,用户对网站的体验也越来越高,做为一名Linux运维攻城师,就得学习更多知识,网络、系统、硬件、开发等等知识。尤其是近期自动化运维的不断发展,更多的基础运维工程师开始不断的升华自己,提升自己,学习更多开发知识来满足企业的发展。目前自动化开发运维主要..
分类:其他好文   时间:2014-09-20 02:29:17    阅读次数:221
第6章 Web客户端访问
获取web页面#!/usr/bin/envpython importsys,urllib2 req=urllib2.Request(sys.argv[1]) fd=urllib2.urlopen(req) whileTrue: data=fd.read(1024) ifnotlen(data): break sys.stdout.write(data)首先建立了一个urllib2.Request对象,该对象用URL做参数。然后调用urlopen得到..
分类:Web程序   时间:2014-09-20 02:22:57    阅读次数:332
python读书笔记之函数
函数的定义def square_sum(a+b) c = a**2+b**2 print c函数的功能是求两个数的平方和return 可以返回多个值,相当于返回一个tuplereturn a,b,c在Python中,当程序执行到return的时候,程序将停止执行函数内余下的语句。return并不.....
分类:编程语言   时间:2014-09-20 02:16:06    阅读次数:255
Python读书笔记之基本数据类型
变量不需要声明>>>a = 10>>>print a>>>print type(a)10 回收变量名>>>a = 1.3>>>print a,type(a)1.3 基本数据类型a=10 # int 整数a=1.3 # float 浮点数a=True # 真值 (True/False)a='Hello...
分类:编程语言   时间:2014-09-20 01:09:36    阅读次数:202
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!