代码示例:(标识:python_ref_memoryview)
python_ref_memoryview.py
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])
运行结果: