Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python: what does u'{' represent? [duplicate]

Tags:

python

When I print out a value it has a u in front of it, I think it is some type notation, what is it? Where I can find a list of such notations?

like image 863
Bin Chen Avatar asked Apr 29 '26 11:04

Bin Chen


1 Answers

It meant UNICODE string literal before Python 3.

Documentation about all these literal adornments can be found there.

like image 90
Frédéric Hamidi Avatar answered May 01 '26 01:05

Frédéric Hamidi