在Python 3中,执行以下代码:
memoryview("this is a string")
产生错误:
TypeError: memoryview: str object does not have the buffer interface
我应该怎么做才能让memoryview
接受字符串,或者为了被memoryview
接受,我应该对我的字符串进行什么转换?