码迷,mamicode.com
首页 >  
搜索关键字:python email from to    ( 191911个结果
python 中分支结构(switch)
可通过字典调用:{1:case1,2:case2}.get(x,lambda *args,**key:)()# 编写一个计算器 # -*- coding=utf-8 -*-def jia(x,y): return x+ydef jian(x,y): return x-ydef cheng(x,...
分类:编程语言   时间:2015-10-05 22:05:01    阅读次数:276
leetcode:Search a 2D Matrix(数组,二分查找)
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:编程语言   时间:2015-10-05 21:57:52    阅读次数:193
Part 3 ViewData and ViewBag in mvc
ViewBag and ViewData is a mechanism(机制) to pass data from controller to view.We use '@' symbol(符号) to switch between html and C# code.Both ViewData an...
分类:Web程序   时间:2015-10-05 20:42:41    阅读次数:256
Python学习笔记-1
doc string 三重引号if条件域中 数字0,空list, tuple,dictionary为False,非零数字,非空list, tuple, dictionary为True布尔环境中,0、''、{}、[]、()、None为False,其他任何东西都为真bool and a or b类似C中...
分类:编程语言   时间:2015-10-05 20:42:20    阅读次数:310
txt去重
#encoding:utf-8 obuff=[] repeat=0 path=raw_input(‘pleaseinputyourpath:‘) forlninopen(path): iflninobuff: repeat+=1 continue obuff.append(ln) print"repeatcolumnsis%s"%repeat withopen(path,‘w‘)ashandle: handle.writelines(obuff)
分类:其他好文   时间:2015-10-05 19:37:11    阅读次数:248
Part 1 some diffrence from asp.net to asp.net mvc4
Part 1 some diffrence from asp.net to asp.net mvc4In MVC URL's are mapped to controller Action MethodsIn a WebForms URL's are mapped to Physical Files...
分类:Web程序   时间:2015-10-05 18:16:41    阅读次数:154
python—zeros函数和ones函数
使用numpy.zeros,numpy.ones,numpy.eye等方法可以构造特定的矩阵例如:代码如下:>>>from numpy import *>>>a=zeros((3,4))>>>a[[0.0.0.0.][0.0.0.0.][0.0.0.0.]]>>>a=ones((3,4))>>>a[...
分类:编程语言   时间:2015-10-05 18:13:33    阅读次数:3110
(数据挖掘-入门-6)十折交叉验证和K近邻
主要内容:1、十折交叉验证2、混淆矩阵3、K近邻4、python实现一、十折交叉验证前面提到了数据集分为训练集和测试集,训练集用来训练模型,而测试集用来测试模型的好坏,那么单一的测试是否就能很好的衡量一个模型的性能呢?答案自然是否定的,单一的测试集具有偶然性和随机性。因此本文介绍一种衡量模型(比如分...
分类:其他好文   时间:2015-10-05 18:04:28    阅读次数:241
How to learn wxPython
目录 How to learn wxPython Learn Python Choose a good editor Install wxPython Read the wxPython tutorials Read the wxPython Style Guide Read the demo f....
分类:编程语言   时间:2015-10-05 18:03:49    阅读次数:280
SQL 语句基础
一 查询常量1. SELECT 学生编号, 学生姓名,性别 FROM tb_Student2. SELECT 学生姓名 AS 姓名, 性别 AS 学生性别 FROM tb_Student3. SELECT 学生姓名 姓名, 性别 学生性别 FROM tb_Student4. SELECT 学生姓名 ...
分类:数据库   时间:2015-10-05 16:44:19    阅读次数:264
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!