码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
iOS学习笔记---c语言第六天
函数 function命名规范:工程名第一个字母大写,变量函数名小写,不要用拼音和中文, eg:lessonFunction一、函数声明定义函数是具有特定功能的代码块 作用:模块化程序 用函数的好处:简化程序、提高开发效率、方便阅读和修改等函数定义:返回值类型 函数名(形式参数){ 语...
分类:移动开发   时间:2014-06-15 22:50:22    阅读次数:360
联系电话正则表达式
$(function () { $("#txtPhone").focus(function () { $(this).next().show().removeClass("onError").removeClass("onright").addClass("ontan").ht...
分类:其他好文   时间:2014-06-15 22:44:27    阅读次数:346
crontab常见错误(执行python脚本 no module)
在crontab定时执行python脚本,在shell下没有问题,在crontab中报no module,找不到安装的库。1 crond服务未启动crontab不是Linux内核的功能,而是依赖一个crond服务,这个服务可以启动当然也可以停止。如果停止了就无法执行任何定时任务了,解决的方法是打开它...
分类:编程语言   时间:2014-06-15 22:17:58    阅读次数:423
[leetcode]Minimum Window Substring @ Python
原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:编程语言   时间:2014-06-15 22:10:42    阅读次数:1109
怎样开发单页面app
groot.view("myview", function (vm, ve) { ve.loada = function () { require("./app/pagea.js").loadpage($("#app"), "myapp") }...
分类:移动开发   时间:2014-06-15 22:08:15    阅读次数:197
[leetcode]Merge Two Sorted Lists @ Python
原题地址:https://oj.leetcode.com/problems/merge-two-sorted-lists/题意:Merge two sorted linked lists and return it as a new list. The new list should be made...
分类:编程语言   时间:2014-06-15 21:58:31    阅读次数:238
PYTHON对文件及文件夹的一些操作
python中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目录: os.mkdir("file") 创建目录 复制文件....
分类:编程语言   时间:2014-06-15 21:53:58    阅读次数:247
js去掉字符串前后空格的五种方法(转)
出处:http://www.2cto.com/kf/201204/125943.html第一种:循环检查替换[javascript]//供使用者调用 function trim(s){ return trimRight(trimLeft(s)); } //去掉左边的空白 function trimL...
分类:Web程序   时间:2014-06-15 21:50:44    阅读次数:285
[leetcode]Permutation Sequence @ Python
原题地址:https://oj.leetcode.com/submissions/detail/5341904/题意:The set[1,2,3,…,n]contains a total ofn! unique permutations.By listing and labeling all of ...
分类:编程语言   时间:2014-06-15 21:33:16    阅读次数:270
[leetcode]Reverse Nodes in k-Group @ Python
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:编程语言   时间:2014-06-15 21:24:43    阅读次数:293
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!