一个菜鸟问题,但在这个 numpy 数组中:
array(['22', '38', '26', '35', '35', '', '54', '2', '27', '14', '4', '58', '20', '39', '14'], dtype='|S82')
“|S82”是什么意思?
最佳答案
每the docs它定义了数据类型的字节顺序、种类和大小。在这种情况下:
byte-order: | not applicable
kind: S (byte-)string
size: 82 (characters long)
关于Python数据类型: What does '|S...' Mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34909463/