主页
Python
Python memoryview() 函数
demo_ref_memoryview
运行 ❯
×
更改方向
保存代码
更改主题
x = memoryview(b"Hello") print(x) #return the Unicode of the first character print(x[0]) #return the Unicode of the second character print(x[1])
<memory at 0x03348FA0>
72
101