SyntaxError: Non-ASCII character '\xe5' in file new.py on line 46, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
把汉字删掉
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
升级numpy或者把np_resource = np.dtype([("resource", np.ubyte, 1)])改成np_resource = np.dtype([("resource", np.ubyte, (1,))])