python
bosswanghai
这个作者很懒,什么都没留下…
展开
-
python_琐碎
python原创 2016-12-24 15:37:27 · 267 阅读 · 0 评论 -
python
python原创 2016-12-24 15:37:49 · 197 阅读 · 0 评论 -
python绘图
python绘图matplotlibMatplotlib 可能是 Python 2D-绘图领域使用最广泛的套件,它提供了一整套和matlab相似的命令API,十分适合交互式地进行制图使用 import matplotlib.pyplot as plt plt.bar(left = 0,height = 1) plt.plot([1,2,3,4]) # 划线函数 plt.ylabel('some原创 2016-12-24 15:38:20 · 274 阅读 · 0 评论 -
python 面向对象
一、组成:方法和属性。 类定义: class MyClass(): def say(self): print("hello") test=MyClass() test.say() 2. 属性: self.attr = value 普通属性: self.attr=value 静态属性:原创 2016-12-24 15:52:03 · 265 阅读 · 0 评论