码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
windows下python配置numpy、matplotlib、scipy
这两天对Python进行了研究,并且配置了numpy、matplotlib以及scipy。现对基本概念以及配置步骤介绍: 基本概念: Python      (英语发音:/?pa?θ?n/), 是一种面向对象、解释型计算机程序设计语言。专用的科学计算扩展库很多,例如如下3个十分经典的科学计算扩展库:NumPy、SciPy和matplotlib,它们分别为Python提供了快速数组处理、数...
分类:编程语言   时间:2014-06-09 23:17:32    阅读次数:429
一入python深似海--split
下面说说split函数的用法 def break_words(stuff): """This function will break up words for us.""" words = stuff.split(' ')#split('.',1) use '.' split one time return words def sort_words(wo...
分类:编程语言   时间:2014-06-08 18:19:21    阅读次数:336
一入python深似海--函数与文件
先上写干货,几个开源网站: github.com launchpad.netgitorious.orgsourceforge.netfreecode.com 今天介绍一下python函数和文件读写的知识。 函数 def print_two(*args):#That tells Python to take all the arguments to the function a...
分类:编程语言   时间:2014-06-08 10:37:23    阅读次数:277
Android自定义View(一)
一、自定义视图类继承View或者View的子类 All of the view classes defined in the Android framework extend View. Your custom view can also extend Viewdirectly, or you can save time by extending one of the exist...
分类:移动开发   时间:2014-06-08 10:11:27    阅读次数:342
A Swift Tour(4) - Objects and Classes
Objects and Classes(对象和类)用 class 关键字后面跟一个类名来创建一个class,在一个类中声明 常亮或变量,他存在于当前类的上下文,函数的方法是同样的var numberOfSides = 0 let numberOfSidesLet = 1 func...
分类:其他好文   时间:2014-06-08 00:44:09    阅读次数:383
Python的二维数组
Python一维数组初始化:>>> list=[]>>> type(list)>>> list[]Python二维数组初始化:>>> lists = [[]] * 3>>> lists[[], [], []]>>> lists[0].append(3)>>> lists[[3], [3], [3]]...
分类:编程语言   时间:2014-06-07 23:49:56    阅读次数:563
python socket
# -*- coding: utf-8 -*- import socket import sys port = 80 host = sys.argv[1] filename = sys.argv[2] soc = socket.socket(socket.AF_INET, socket....
分类:编程语言   时间:2014-06-07 23:43:22    阅读次数:320
LeetCode:Spiral Matrix I II
Spiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example, Given the following ...
分类:其他好文   时间:2014-06-07 22:57:31    阅读次数:236
python计算均值方差
用Python求均值与方差,可以自己写,也可以借助于numpy,不过到底哪个快一点呢?我做了个实验,首先生成9百万个样本:```pythonnlist=range(0,9000000)nlist=[float(i)/1000000 for i in nlist]N=len(nlist)```第二行是...
分类:编程语言   时间:2014-06-07 22:48:05    阅读次数:1623
LeetCode:Minimum Path Sum
题目链接 Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its p...
分类:其他好文   时间:2014-06-07 21:59:08    阅读次数:344
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!