以下の内容はhttps://shuzo-kino.hateblo.jp/entry/2020/03/27/235448より取得しました。


ctypeライブラリでC言語めいたメモリ領域の確保を行う

実際のところ

from ctypes import *

p = create_string_buffer(b"Hi", 10) # 10文字分確保し先頭にHiをいれる
print( repr(p.raw) )
#>>> b'Hi\x00\x00\x00\x00\x00\x00\x00\x00'

参考もと

docs.python.org




以上の内容はhttps://shuzo-kino.hateblo.jp/entry/2020/03/27/235448より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14