码迷,mamicode.com
首页 >  
搜索关键字:python 正则表达式 单词统计    ( 148557个结果
[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
PERL学习笔记---正则表达式的应用
使用m//匹配//这是m//(模式匹配)的一种简写。同qw//操作一样,可以使用任何成对的分隔符。因此,可以使用m(fred), m, m{fred}, m[fred],或者m,fred,, m!fred!, m^fred^,其它非成对的分隔符也可以不区分大小写:/iif(/yes/i) {#大小写...
分类:其他好文   时间:2014-06-15 20:27:15    阅读次数:278
【美妙的Python之二】Python初步
美妙的Python之Python起步 简而言之:Python 是能你无限惊喜的语言,与众不同。 1.动态类型: Python是一种动态类型语言,不须要预先声明变量的类型,变量的类型和值在赋值那一刻动态地初始化。这一点与C/C++,Java等静态类型语言全然不同,静态类型在编译阶段就...
分类:编程语言   时间:2014-06-15 20:18:35    阅读次数:239
[leetcode]Longest Substring Without Repeating Characters @ Python
原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:编程语言   时间:2014-06-15 19:51:00    阅读次数:254
学习Python编程的11个资源
转自:http://news.cnblogs.com/n/210346/1.笨办法学 Pythonhttp://learnpythonthehardway.org/book/有各种练习题你将会会学到:在所有的平台上安装 Python 编程环境写 Python 程序理解 Python 语法和文档像一个...
分类:编程语言   时间:2014-06-15 18:10:32    阅读次数:394
正则表达式30分钟入门教程 ——堪称网上能找到的最好的正则式入门教程
本教程堪称网上能找到的最好正则表达式入门教程原地址:http://www.jb51.net/tools/zhengze.html本文目标30分钟内让你明白正则表达式是什么,并对它有一些基本的了解,让你可以在自己的程序或网页里使用它。如何使用本教程最重要的是——请给我30分钟,如果你没有使用正则表达式...
分类:其他好文   时间:2014-06-15 07:27:15    阅读次数:262
Python中关于try...finally的一些疑问
最近看Vamei的Python文章,其中一篇讲异常处理的,原本看完没啥疑惑,或许是自己想的简单了。看到评论,一个园友的问题引起我的兴趣。他的问题是def func(x): try: return ++x finally: return x+1print fun...
分类:编程语言   时间:2014-06-15 06:47:20    阅读次数:228
关于在Python的注释不能用中文
在用中文进行注释的之后运行会有这样的提示:在文件头加上 #coding=utf-8这一行就可以用中文注释了
分类:编程语言   时间:2014-06-15 06:07:16    阅读次数:310
[leetcode]Add Two Numbers @ Python
原题地址:https://oj.leetcode.com/problems/add-two-numbers/题意:You are given two linked lists representing two non-negative numbers. The digits are stored i...
分类:编程语言   时间:2014-06-15 00:40:44    阅读次数:328
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!