What is "\ 00" in Python?

What does "\ 00" mean in Python? To learn more about this, I tried the following:

  • When I assign d="\00"and call print d, nothing is displayed on the screen.
  • I also tried to assign a dline with an extra interval between and at the end and then called d.replace("\00", ""), but the result was not visible.

What does it do d.replace("\00","")? Will he just search for this string "\ 00" and replace it with an empty string?

+5
source share
2 answers

Python 2, , ( 8). Python 3 0o. 00 0.

\ \00 - , 0 255. , , . "escape-", \n .

. - null.

. http://www.ascii.cl/ ASCII.

, replace , .

, . http://en.wikipedia.org/wiki/Null_character.

+16

, , . , \00 ASCII NUL.

+9

All Articles