发上等愿,结中等缘,享下等福;择高处立,寻平处住,向宽处行

Brick walls are there for a reason :they let us prove how badly we want things

代码改变世界

推荐排行榜

python 二维码识别包 pyzbar zxing使用简介

2019-07-26 17:01 by kowme, 7748 阅读, 收藏,
摘要: 一、Python下二维码识别包的使用详情 在python下二维码识别,目前主要有三个模块:zbar 、zbarlight、zxing。 未使用zbarlight,原因是zbarlight和zbar的dll相同,二维码识别准去率没提升。另外,该包的pip安装存在一些问题未解决。 1、安装包: pip 阅读全文

python 判断回文字符串的方法

2019-05-06 15:32 by kowme, 7166 阅读, 收藏,
摘要: # -*- coding:utf-8 -*- # palindrome str : 回文字符串:一个字符串,不论是从左往右,还是从右往左,字符的顺序都是一样的(如abba,等) def is_palindrome_1(tmp_str): for i in range(len(tmp_str)): if tmp_str[i] != tmp_str[-(i+1)]: ... 阅读全文

python列表排重:列表排重并计算字符出现的次数

2014-08-24 16:06 by kowme, 830 阅读, 收藏,
摘要: 这段代码主要关注两点:1、字典的key是唯一值 2、count函数的使用 阅读全文

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things