str=‘abcde’
ascll = np.fromstring(str, dtype=np.uint8)
结果[97 98 99 100 101]
python将字符串转换成ascll码 np.fromstring
最新推荐文章于 2024-04-28 00:25:38 发布
str=‘abcde’
ascll = np.fromstring(str, dtype=np.uint8)
结果[97 98 99 100 101]