demo_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])
C:\Users\My Name>python demo_memoryview.py
<memory at 0x03348FA0>
72
101