N
N
nano_e_t_42015-10-20 00:46:57
Python
nano_e_t_4, 2015-10-20 00:46:57

How to handle unicode in python?

Hello.
plz tell me, who knows - how to change the case of the first character in python (the string is presented in unicode) without converting it to a string? Pts it is necessary in unicode
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey K, 2015-10-20
@mututunus

u'строка'.capitalize()

M
Maxim Moseychuk, 2015-10-20
@fshp

a = u'добрый вечер'
b = a[0].upper() + a[1:]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question