Python 3 では、次を実行します。
memoryview("this is a string")
エラーが発生します:
TypeError: memoryview: str object does not have the buffer interface
文字列を受け入れるにはどうすればよいですか、memoryview
または に受け入れられるようにするには、文字列にどのような変換を行う必要がありmemoryview
ますか?
Python 3 では、次を実行します。
memoryview("this is a string")
エラーが発生します:
TypeError: memoryview: str object does not have the buffer interface
文字列を受け入れるにはどうすればよいですか、memoryview
または に受け入れられるようにするには、文字列にどのような変換を行う必要がありmemoryview
ますか?