python机器学习-chapter2_2
•fig, axes = plt.subplots(1, 3, figsize=(10, 3))
plt.subplots()用来构建一张图,其中参数1和3分别代表子图的行数和列数,一共有 1x3 个子图像。
figsize=(10,3)用来设置子图的宽度和高度。
函数返回一个figure图像和子图axes的array列表。
•python中zip()函数
a = (1, 2, 3) b = (4, 5, 6) zip(a, b) >>>[(1, 4),(2, 5),(3, 6)] c = (4 ,5, 6, 7, 8) zip(a, c) >>>[(1, 4),(2, 5),(3, 6)]
相关推荐
jaybeat 2020-11-17
机器学习之家 2020-11-10
mori 2020-11-06
jaybeat 2020-11-02
changyuanchn 2020-11-01
gracecxj 2020-10-30
xceman 2020-10-23
hkshao 2020-10-18
changyuanchn 2020-10-15
sherpahu 2020-10-15
playoffs 2020-10-13
playoffs 2020-10-13
Pokemogo 2020-10-05
changyuanchn 2020-09-28
yonezcy 2020-09-27
qiujiahao 2020-09-15
jaybeat 2020-08-26
jaybeat 2020-08-20
Hannah 2020-08-19