摘要: pandas.Series(data=None, index=None, dtype=None, name=None, copy=False, fastpath=False) # data: 数组,Iter,字典或标量值,包含存储在系列中的数据。在0.23.0版中进行了更改:如果data是dict, 阅读全文
posted @ 2019-12-25 16:49 略略略额 阅读(151) 评论(0) 推荐(0)
摘要: import numpy as np a = np.arange(10,20,1) b = slice(1,5,2) d = a[1:5:2] e = a[2:] print(a) print(a[b]) print(d) print(e) #结果 [10 11 12 13 14 15 16 17 阅读全文
posted @ 2019-12-25 11:23 略略略额 阅读(154) 评论(0) 推荐(0)
摘要: # 单继承 class GrandP(): print('GrandP') class Father(GrandP): print('Father') class Son(Father): print('Son') Son() #结果 GrandP Father Son # 多继承 class Fa 阅读全文
posted @ 2019-12-25 09:58 略略略额 阅读(121) 评论(0) 推荐(0)