How to convert Unicode char array to list in Python

1 Answer

0 votes
from array import array

arr = array("u", "python java")

lst = "".join(arr.tolist())
print(lst)


'''
run:

python java

'''

 



answered Oct 27, 2018 by avibootz

Related questions

1 answer 155 views
2 answers 219 views
3 answers 262 views
...