pythonではNull文字(\0)はただの文字

めもめも。

Null文字(\0)は、C言語では、文字列の終端をあらわす。

pythonでは、ただの文字。

>>> foo = "a\0b\0c\0"
>>> foo
'a\x00b\x00c\x00'
>>> len(foo)
6