随笔分类 - python
摘要:因为jupyter notebook 通过anaconda或mini anaconda安装,启动jupyter notebook 记得通过conda启动,从windows shell终端无法打开。
阅读全文
摘要:#在写python脚本时遇到AttributeError: 'NoneType' object has no attribute 'append' a=[] b=[1,2,3,4] a = a.append(b) 执行一次后发现a的类型变为了NoneType。 下次执行时就会出现如题所示的错误。 把
阅读全文
摘要:Jupyter notebook如何打印多个结果 from IPython.core.interactiveshell import InteractiveShell InteractiveShell.ast_node_interactivity='all' InteractiveShell.ast
阅读全文
摘要:作用:是控制绘图不显示 在导入matplotlib库后,且在matplotlib.pyplot库被导入前加“matplotlib.use(‘agg’)”语句。 注意matplotlib.use('agg')必须在本句执行import matplotlib.pyplot as plt前运行
阅读全文

浙公网安备 33010602011771号