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 163 views
2 answers 230 views
3 answers 290 views
...