原题地址:https://oj.leetcode.com/problems/unique-paths-ii/题意:Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many ...
分类:
编程语言 时间:
2014-06-15 23:33:26
阅读次数:
353
今天看了点JavaScript,里面的内容和Visual Basic的语言类似。也许大家都会说:语言嘛,都是有通用性的。这也不奇怪他和Visual Basic类似。学习了python、django、Visal Basic。都没有能够学到家是因为语言的语句是不同的但是用法也是不一样的。但是我能看懂代....
分类:
编程语言 时间:
2014-06-15 23:16:11
阅读次数:
375
http://google-styleguide.googlecode.com/svn/trunk/pyguide.html#Commentshttp://zh-google-styleguide.readthedocs.org/en/latest/google-python-styleguide/...
分类:
编程语言 时间:
2014-06-15 23:01:13
阅读次数:
216
在crontab定时执行python脚本,在shell下没有问题,在crontab中报no module,找不到安装的库。1 crond服务未启动crontab不是Linux内核的功能,而是依赖一个crond服务,这个服务可以启动当然也可以停止。如果停止了就无法执行任何定时任务了,解决的方法是打开它...
分类:
编程语言 时间:
2014-06-15 22:17:58
阅读次数:
423
原题地址: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
原题地址: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中对文件、文件夹的操作需要涉及到os模块和shutil模块。 创建文件: 1) os.mknod("test.txt") 创建空文件 2) open("test.txt",w) 直接打开一个文件,如果文件不存在则创建文件 创建目录: os.mkdir("file") 创建目录 复制文件....
分类:
编程语言 时间:
2014-06-15 21:53:58
阅读次数:
247
原题地址: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
原题地址: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
美妙的Python之Python起步 简而言之:Python 是能你无限惊喜的语言,与众不同。 1.动态类型: Python是一种动态类型语言,不须要预先声明变量的类型,变量的类型和值在赋值那一刻动态地初始化。这一点与C/C++,Java等静态类型语言全然不同,静态类型在编译阶段就...
分类:
编程语言 时间:
2014-06-15 20:18:35
阅读次数:
239