Python - Unicode

Card Puncher Data Processing

About

unicode is an object type unicode.

See also: Python - Encoding and Unicode

Type

>>> type(u'myUnicode')
<type 'unicode'>

Conversion

Float

>>> unicode('%.3f' % 1)
u'1.000'

Function

Split

split() can be called directly on a unicode or str object. For example,

>>> u'split,me'.split(',')
[u'split', u'me']

Documentation / Reference





Discover More
Card Puncher Data Processing
Python - String (str type)

in Python A string literal is a sequence data type. Strings in Python are: sequence with characters as elements Each character in a string has a subscript or offset (id). The number starts at...



Share this page:
Follow us:
Task Runner