码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
Python读文件
Linux上用Python实现对文件的读取
分类:编程语言   时间:2014-06-06 10:01:46    阅读次数:261
[leetcode]Distinct Subsequences @ Python
原题地址:https://oj.leetcode.com/problems/distinct-subsequences/题意:Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subseq...
分类:编程语言   时间:2014-06-06 09:59:43    阅读次数:330
各种搜索路径问题
python中import一个模块时python解释器的搜索目录顺序:参考python帮助文档The Module Search PathWhen a module namedspamis imported, the interpreter first searches for a built-in...
分类:其他好文   时间:2014-06-06 09:45:30    阅读次数:250
js变量作用域
for(var i =0;i<100;i++) { }alert(i);//100if(true){ var i="91d"; } alert(i);//91d function add(ad1,ad2){ sum=ad1+ad2; return sum;//如果没有用...
分类:Web程序   时间:2014-06-06 09:25:07    阅读次数:256
ecmall中static变量的使用-model模型代码设计
function &m($model_name, $params = array(), $is_new = false){ static $models = array(); $model_hash = md5($model_name . var_export($params, true...
分类:其他好文   时间:2014-06-06 09:14:04    阅读次数:292
[Php.ini]PHP调用mysql_connect()函数出错:Call to undefined function mysql_connect()
初学先用appserv或xampp集成安装包,这样可以不必为单独安装apahce/mysql/php而烦恼了。最近我在自己搭建环境时,老是出现mysql扩展装不上。已经在php.ini里打开了extension=php_mysql.dll的扩展了。后来发现核心点是在WINDOWS系统下,需要的PHP...
分类:数据库   时间:2014-06-06 08:42:41    阅读次数:313
jquery获取checkbox被选中的值
只用一个循环,就可以找出被选中的checkbox的值 var s; $("[name = b]:checkbox").each(function () { if (this.checked) { s += $(this).val() + "|"; } });alert(s); 这样就可以了
分类:Web程序   时间:2014-06-06 07:27:29    阅读次数:286
[leetcode]Interleaving String @ Python
原题地址:https://oj.leetcode.com/problems/interleaving-string/题意:Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2.For example,Given:s1...
分类:编程语言   时间:2014-06-06 07:26:08    阅读次数:351
[服务器]WAMP介绍
Windows下的Apache+Mysql+Perl/PHP/Python,一组常用来搭建动态网站或者服务器的开源软件,本身都是各自独立的程序,但是因为常被放在一起使用,拥有了越来越高的兼容度,共同组成了一个强大的Web应用程序平台。随着开源潮流的蓬勃发展,开放源代码的LAMP已经与J2EE和.Ne...
分类:其他好文   时间:2014-06-06 06:42:57    阅读次数:525
Machine Learning Done Wrong【转】
1. Take default loss function for grantedMany practitioners train and pick the best model using the default loss function (e.g., squared error). In pr...
分类:其他好文   时间:2014-06-05 21:54:12    阅读次数:487
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!