with…as… try…except…和try…finally的用法:
https://blog.youkuaiyun.com/qiqicos/article/details/79200089
axis的理解
https://www.jianshu.com/p/de214abd6ee9
np.array取行列
a = arrray[:,:]
随机数和随机种子
np.random.seed(116) # 使用相同的seed,保证输入特征和标签一一对应
np.random.shuffle(x_data) #列表随机
tf.random.set_seed() #保证每次程序运行结果一致
a = tf.random_uniform([1], seed=1)
plt
from matplotlib import pyplot as plt
plt.title()
plt.xlabel()
plt.ylabel()
plt.plot(x,y或者是列表,label="xxxx"图例)画出曲线图
plt.legend()画出图例
plt.show()画出图像