跟着书本敲得,不清楚为什么会这样,搜索过没找打,问题可能偏小白,勿怪。
from numpy.random import randndata = {i: randn() for i in range(7)}