摘要: # -*- coding: utf-8 -*- """ Created on Thu Sep 28 14:05:35 2017 @author: HBB """ import numpy as np import matplotlib.pyplot as plt x=np.linspace(-np.pi,np.pi,256,endpoint=True) c,s=np.cos(x),np.s... 阅读全文
posted @ 2017-09-28 15:44 hbb360 阅读(9964) 评论(0) 推荐(0) 编辑
摘要: import numpy as np from numpy.linalg import * lst= np.eye(3) print(lst) ''' [[ 1. 0. 0.] [ 0. 1. 0.] [ 0. 0. 1.]] ''' lst1=np.array([[1,2],[3,4]]) # 矩阵的逆 print(inv(lst1)) # print(lst.invent... 阅读全文
posted @ 2017-09-27 21:30 hbb360 阅读(1520) 评论(0) 推荐(0) 编辑
摘要: # 两个数据的操作 lst1=np.array([10,20,30,40]) lst2=np.array([4,3,2,1]) print(lst1+lst2) # 和 print(lst1-lst2) # 差 print(lst1*lst2) # 乘 print(lst1/lst2) # 除 print(lst1**2) # 平方 # 点乘 print(lst1.reshap... 阅读全文
posted @ 2017-09-27 20:35 hbb360 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 可以先求出shape 求出 ndim,即可得到维度,也是秩。0维所有的数据。一维数据有两块。二维数据有四列。 求最大和最小: 数据的拼接,分离和复制 阅读全文
posted @ 2017-09-27 20:32 hbb360 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 提取信息是关键 阅读全文
posted @ 2017-07-23 11:51 hbb360 阅读(217) 评论(0) 推荐(0) 编辑
摘要: THML Tree 阅读全文
posted @ 2017-07-23 10:32 hbb360 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 煲汤的原理 阅读全文
posted @ 2017-07-22 23:33 hbb360 阅读(304) 评论(0) 推荐(0) 编辑
摘要: requests库的使用 阅读全文
posted @ 2017-07-22 17:21 hbb360 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 字符的定义,操作 阅读全文
posted @ 2017-07-20 13:21 hbb360 阅读(734) 评论(0) 推荐(0) 编辑
摘要: 集合的基本操作:新增;移除;复制;求长度(没有修改?); 集合的关系运算:交集,并集,差集(两个集合位置有影响),对称差集。 阅读全文
posted @ 2017-07-19 22:46 hbb360 阅读(588) 评论(0) 推荐(0) 编辑