随笔分类 -  Python

学习Python
摘要:报错信息 : Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy. 阅读全文
posted @ 2018-11-05 09:21 今夕何夕兮 阅读(7759) 评论(0) 推荐(1)
摘要:"Decision Tree" [TOC] Pre: 如下图所示,决策树包含判断模块、终止模块。其中终止模块表示已得出结论。 相较于KNN,决策树的优势在于数据的形式很容易理解。 相关介绍 1. "奥卡姆剃刀原则:" 切勿浪费较多的东西,去做‘用较少的的东西,同样可以做好的事情’。 2. "启发法: 阅读全文
posted @ 2018-10-01 00:04 今夕何夕兮 阅读(426) 评论(0) 推荐(0)
摘要:3. Longest Substring Repeating Character Difficulty:Medium The link: https://leetcode.com/problems/longest substring without repeating characters/ Des 阅读全文
posted @ 2018-09-29 00:02 今夕何夕兮 阅读(252) 评论(0) 推荐(0)
摘要:2. Add Two numbers Difficulty:Medium The Link https://leetcode.com/problems/add two numbers/ Description Solutions: Solution A: Brute force attack (暴力 阅读全文
posted @ 2018-09-28 17:30 今夕何夕兮 阅读(179) 评论(0) 推荐(0)
摘要:1 Two Sum Difficulty: Easy The Link: https://leetcode.com/problems/two sum/description/ Description : Solutions Solution A: 暴力解法 two loop runtime:7496 阅读全文
posted @ 2018-09-28 17:27 今夕何夕兮 阅读(186) 评论(0) 推荐(0)
摘要:if \_\_name\_\_ == '\_\_main\_\_': make a script both importable and executable Don't BiuBiu, show me your code : 直接执行上述代码,将在屏幕上打印we are in __main__ 说 阅读全文
posted @ 2018-08-15 10:13 今夕何夕兮 阅读(124) 评论(0) 推荐(0)
摘要:一提到数字图像处理,可能大多数人就会想到matlab,但matlab也有自身的缺点: 1、不开源,价格贵 2、软件容量大。一般3G以上,高版本甚至达5G以上。 3、只能做研究,不易转化成软件。 因此,我们这里使用python这个脚本语言来进行数字图像处理。 要使用python,必须先安装python 阅读全文
posted @ 2017-09-21 12:21 今夕何夕兮 阅读(778) 评论(0) 推荐(0)
摘要:都知道python是对格式要求很严格的,写了一些python但是也没发现他严格在哪里,今天遇到了IndentationError: unexpected indent错误我才知道他是多么的严格。 以后遇到了IndentationError: unexpected indent你就要知道python编 阅读全文
posted @ 2017-08-06 07:54 今夕何夕兮 阅读(918) 评论(0) 推荐(0)
摘要:一直以来都想好好学习Python,但是每次学习了从基础感觉学了一会就感觉没意思。今天学习一下爬虫,也算是自己学python的目的吧,但是在学习过程中遇到很多困难,但幸好遇到了一篇好博文,分享给大家:http://www.cnblogs.com/fnng/p/3576154.html 源码: 阅读全文
posted @ 2017-06-20 15:25 今夕何夕兮 阅读(309) 评论(0) 推荐(0)