- 博客(4)
- 收藏
- 关注
原创 attributeerror :module ‘numbers’has no attribute integral
调用matplotlib出现attributeerror :module ‘numbers’has no attribute integral错误。原因是:自己编写过一个名为numbers的代码文件。在调用matplotlib时,出现了混乱,把自己编写的numbers 的文件删除后就可以执行了。...
2018-05-26 08:22:41 1197 6
原创 matplotlib调用出错
代码如下:import matplotlib.pyplot as pltsquares = [1, 4, 9, 16, 25]plt.plot(squares)plt.show()运行结果:D:\anaconda\python.exe "E:/Python编程从入门到精通配套资料/Self-taught Python/mpl_squares.py"1234[1, 2, 3, 4, 5][2...
2018-05-26 08:01:30 4924 2
原创 pycharm中在子类中添加一个父类没有的属性
class Car(): """一次模拟汽车的简单尝试""" def __init__(self, make, model, year): """初始化描述汽车的属性""" self.make = make self.model = model self.year = year self.odo
2018-05-15 08:29:22 2348 7
原创 利用python对SQL Server执行日期操作
数据库all_data下的表car_table有列Time_Normal,数据格式为2017-09-08 23:58:51.0000000 ,想要实现的操作是:五分钟一个阶段,一天分为288个阶段, 把对应的时段填写到列period中。 ...
2018-05-01 15:54:14 2083
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人