I have the following code:
stru = "۰۱۲۳۴۵۶۷۸۹" strlist = stru.decode("utf-8").split() print strlist[0]
my conclusion:
۰۱۲۳۴۵۶۷۸۹
But when I use:
print strlist[1]
I get the following traceback :
IndexError: list index out of range
My question is : how can I split my string ? Of course, remember that I got a string from function , consider its variable ?
python string unicode utf-8 unicode-string
Persiangulf
source share