我想在Python中把一个numpy uint8数组转换为字符串。
import numpy as np
arr = np.array([98, 111,111,107])
print(arr.view('c')) # I can see the output [b'b' b'' b'o' b'' b'o' b'' b'k' b'']
我想获得book?有什么指示吗?
|
|
苦闷的围巾 · const (C++) | ...· 1 年前 · |
|
|
老实的打火机 · ifstream::rdbuf - C++ ...· 1 年前 · |
|
|
傻傻的凳子 · 我们为什么推荐在Json中使用string表 ...· 2 年前 · |
|
|
潇洒的斑马 · Type definitions and ...· 2 年前 · |
|
|
犯傻的企鹅 · 区块链(一)----哈希与区块链_前续区块哈 ...· 2 年前 · |