#-*- coding:utf-8 -*- #取一个字符串中最多出现次数的词 import re from collections import Counter my_str = """ Simple is better than complex. Complex is better than co... ...
分类:
编程语言 时间:
2018-04-10 21:51:41
阅读次数:
459
博客转载自:https://cstheory.stackexchange.com/questions/11855/how-do-the-state-of-the-art-pathfinding-algorithms-for-changing-graphs-d-d-l A lot of pathfin ...
分类:
编程语言 时间:
2018-04-10 19:43:25
阅读次数:
265
Boolean源码比较简单。 1 public final class Boolean implements java.io.Serializable, 2 Comparable<Boolean> 3 { 4 /** 5 * The {@code Boolean} object correspond ...
分类:
编程语言 时间:
2018-04-07 01:18:02
阅读次数:
223
写在前面的 这个人第一次尝试开发并发布一个 vue 的组件,该组件实现了类似 ios 手机淘宝客户端 -> 消息界面中消息的滑动删除功能等,如下为该组件的文档。 一个 Vue 的滑动按钮组件,有关滑动方面的处理借鉴 better-scroll 的实现。 在线例子 起步 安装 npm i --save ...
分类:
其他好文 时间:
2018-03-28 14:22:06
阅读次数:
2218
The Zen of Python, by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is better than complicated.Flat is better than nested.Sparse
分类:
编程语言 时间:
2018-03-26 10:46:05
阅读次数:
163
来源:https://www.awaimai.com/873.html 歪麦博客 最近负责一个项目,用了 Yii Framework 的 MVC 框架,刚开始自以为结构很稳健。 但是随着对业务逻辑理解的深入,才开始意识到问题的严重。 我错误地理解了 MVC 中的 Controller,想当然地根据以 ...
分类:
Web程序 时间:
2018-03-24 14:57:01
阅读次数:
202
ps命令:查看当前系统进程状态 ps -a 显示当前所有进程ps -ax 显示没有控制终端的进程ps -u better 查看用户better的进程ps aux|less 通过cpu和内存来过滤进程ps aux --sort -pcpu 根据cpu来升序排序ps aux --sort -pmem 根 ...
分类:
系统相关 时间:
2018-03-19 16:45:11
阅读次数:
301
It is not enough to have a good mind. The main thing is to use it well. 头脑聪明还不够,重要的是好好运用。 From Rene Descartes. My colleagues have always brought me so ...
分类:
其他好文 时间:
2018-03-18 21:37:43
阅读次数:
148
《 python 标准库 》上这么一句话: [python] view plain copy with open('filename', 'wt') as f: f.write('hello, world!') [python] view plain copy [python] view plain ...
分类:
编程语言 时间:
2018-03-17 16:14:49
阅读次数:
361
智能指针的实现代码来源博客:《http://blog.csdn.net/to_be_better/article/details/53570910》 修改:添加 get()函数,用以获得原始指针(raw pointer)。 其余思路来源《Effective C++》 智能指针的实现代码如下: 引用计 ...
分类:
编程语言 时间:
2018-03-16 12:11:23
阅读次数:
203