点击运行
import numpy as np s = b'Hello World' a = np.frombuffer(s, dtype = 'S1') print(a)
运行结果 :
正在执行...