摘要:        
Python标准异常总结 AssertionError 断言语句(assert)失败 AttributeError 尝试访问未知的对象属性 EOFError 用户输入文件末尾标志EOF(Ctrl+d) FloatingPointError 浮点计算错误 GeneratorExit generator    阅读全文
posted @ 2018-03-13 20:16
听风。
阅读(371)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一、简单介绍Matplotlib 1、Matplotlib是一个强大的Python绘图和数据可视化的工具包 2、安装方法:pip install matplotlib 3、引用方法:import matplotlib.pyplot as plt 4、绘图函数:plt.plot() 5、显示图像:pl    阅读全文
posted @ 2018-03-13 19:38
听风。
阅读(630)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.递归函数 在函数内部,可以调用其他函数。如果一个函数在内部调用自身本身,这个函数就是递归函数。 举个例子,我们来计算阶乘n! = 1 x 2 x 3 x ... x n,用函数fact(n)表示,可以看出: fact(n) = n! = 1 x 2 x 3 x ... x (n-1) x n =    阅读全文
posted @ 2018-03-13 15:36
听风。
阅读(6579)
评论(0)
推荐(1)
        

浙公网安备 33010602011771号