I import numpy in python and define the data type of string with ‘S’.I can understand why ‘ ’ is in the result of print(arr) because I defined it as a string. However, I don't know the reason why the results have b in front of every element. Also, I don't know the reason why | is in front of S and the meaning of 1 after S.
import numpy as np >>> arr = np.array([1 2 3, 4], dtype='s' >>>print(arr) [b'1' b'2' b'3' b'4'] >>> print(arr.dtype s1