4 ms·
Python has a \N escape sequence. It inserts a Unicode character by name. For example, '\N{PILE OF POO}' is the Unicode string containing a single USV, the p
by deathanatos 2y ago
Python has a \N escape sequence. It inserts a Unicode character by name. For example,
'\N{PILE OF POO}'
is the Unicode string containing a single USV, the pile of poop emoji.
Much more self-documenting than doing it with a hex sequence with \u or \U.