出现错误 np.ones((1,dim/2)) 报错 TypeError: 'float' object cannot be interpreted as an integer 错误分析 排查错误位置dim/2 出错dim/2 不是整数改用:dim//2