![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python学习笔记
Do_Your_Best
这个作者很懒,什么都没留下…
展开
-
python问题:IndentationError:expected an indented block错误解决
原文地址:http://hi.baidu.com/delinx/item/1789d38eafd358d05e0ec1df Python语言是一款对缩进非常敏感的语言,给很多初学者带来了困惑,即便是很有经验的Python程序员,也可能陷入陷阱当中。最常见的情况是tab和空格的混用会导致错误,或者缩进不对,而这是用肉眼无法分别的。在编译时会出现这样的错IndentationError转载 2016-10-23 15:32:28 · 1232 阅读 · 0 评论 -
off-by-one behavior of Python
range()The range() function causes Python to start counting at the first value you give it, and it stops when it reaches the second value you provide.list 数据类型Data[a:b]数据从index a 起始循环到 b-1 而后截原创 2016-10-23 16:21:09 · 311 阅读 · 0 评论 -
Python语言下的机器学习库
Python语言下的机器学习库Python是最好的编程语言之一,在科学计算中用途广泛:计算机视觉、人工智能、数学、天文等。它同样适用于机器学习也是意料之中的事。当然,它也有些缺点;其中一个是工具和库过于分散。如果你是拥有unix思维(unix-minded)的人,你会觉得每个工具只做一件事并且把它做好是非常方便的。但是你也需要知道不同库和工具的优缺点,这样在构建系统时才能做转载 2016-10-23 17:39:15 · 814 阅读 · 0 评论 -
Python style guide
Indentation(缩进)PEP 8 recommends that you use four spaces per indentation level. Usingfour spaces improves readability while leaving room for multiple levels ofindentation on each lineLin原创 2016-10-23 17:02:13 · 395 阅读 · 0 评论