![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习
luoweipeter
这个作者很懒,什么都没留下…
展开
-
python实现排序算法目录
1.堆排序def sift(Data,low,high): ptrParent=low ptrChild=low*2+1 while ptrChild<=high: if ptrChild+1<=high and Data[ptrChild]<Data[ptrChild+1]: ptrChild=ptrChild+1 if Data[ptrParent]<D原创 2013-11-24 16:06:29 · 558 阅读 · 0 评论 -
Python的包管理器工具pip的使用手册
基础功能#安装一个第三方库pip install 第三方库名称pip install 第三方库名称=版本号#卸载一个第三方库pip uninstall 第三方库名称#搜索一个第三方库(搜索速度超慢)pip search 第三方库名称#查看已经安装了哪些第三方库pip list用国内镜像源增速PIP 命令增速原创 2014-05-13 23:54:03 · 1722 阅读 · 0 评论 -
python 比较单词的相似度
资源来自:python search technology: word similarity主要是python的两个库:1、python-Levenshtein2、原创 2014-07-23 20:28:43 · 5013 阅读 · 0 评论 -
Python 二进制/十进制等转换
To 十进制二进制: >>> int('110', 2)-> 6八进制: >>> int('10', 8)-> 8十六进制: >>> int('10', 16)-> 16>>> int('1A', 16)-> 26To 十六进制:十进制: >>> hex(12)-> ‘0xc’二进制: >>> hex(0b100)-> ‘0x4’八进转载 2014-07-23 22:29:04 · 2644 阅读 · 0 评论