摘要: python中的空格和tab键不能混用,如果则会报类似如下的错误: IndentationError: unindent does not match any outer indentation level 解决办法是统一成tab或者空格,在Pycharm中的解决办法,选中所有文本,然后通过如下图统 阅读全文
posted @ 2019-07-21 20:49 技术研究与问题解决 阅读(3219) 评论(0) 推荐(0)
摘要: python 3.0以后, reduce已经不在built-in function里了, 要用它就得from functools import reduce. reduce的用法 reduce(function, sequence[, initial]) -> valueApply a functi 阅读全文
posted @ 2019-07-21 20:09 技术研究与问题解决 阅读(431) 评论(0) 推荐(0)