![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
文章平均质量分 50
AltenLi
在模式识别/机器学习/图像处理摸爬滚打中...
展开
-
python3 windows pip安装部分包说缺失VC的解决方案
building 'lxml.etree' extensionerror: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/试试下载安装全套运行环境,微软官方的:https://download.microsoft.com/download/5/F/7/5F7ACAEB-8363-451F.原创 2020-12-31 23:55:53 · 431 阅读 · 0 评论 -
[python]json.loads 几种错误 解决方案
json.loads python错误:'utf8' codec can't decode byte ...由于需求,要用python读取网页返回json,并取得其中的数据但是却遇到以上编码的问题。终于找到了解决方案:我们只需要对字符串进行unicode化,忽略错误就行了~代码如下:str2 = unicode( str, errors='ignore')但是要注意原创 2015-01-12 13:50:50 · 39143 阅读 · 1 评论 -
[ss]安装salsa20-ctr时出现错误
salsa20.c:11:20: fatal error: Python.h: No such file or directory apt-get install python2.7-dev原创 2014-10-23 15:05:53 · 2101 阅读 · 0 评论 -
[Leetcode] Decode Ways - python
A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message containing digits, determine the total nu原创 2014-09-28 14:48:08 · 1460 阅读 · 0 评论 -
[LeetCode] Minimum Window Substring -- python
最近在用python刷leetcode的题,发现原创 2014-09-24 10:36:40 · 3098 阅读 · 0 评论 -
python的函数参数传递
在python中,strings, tuples, 和numbers是不可更改的对象,而list,dict等则是可以修改的对象。原创 2014-07-03 10:50:38 · 1122 阅读 · 0 评论 -
List去重
最近任务上有去重,随手翻了下发现有bushao转载 2014-06-10 10:05:40 · 819 阅读 · 0 评论 -
恢复百度云盘本地误删的文件脚本---python
今天被同步盘搞得焦头烂额。辛苦码的代码原创 2014-04-14 11:05:44 · 6085 阅读 · 6 评论 -
python从文件中读入中文字符
今天写了个恢复文件的脚本,结果原创 2014-04-14 11:01:15 · 1697 阅读 · 0 评论 -
python 登录微博、删除指定页微博
微博登录的js还有很多更新好快啊~之前有一次x原创 2014-05-10 16:55:59 · 1809 阅读 · 0 评论 -
Python List、Dict等的sort与sorted排序
List:我们需要对List进行排序,Python提供了两个方法对给定的List L进行排序,方法1.用List的成员函数sort进行排序方法2.用built-in函数sorted进行排序原创 2014-04-20 10:49:22 · 5117 阅读 · 0 评论