- list to string
- array to string
Python
- Python 2
Python
Copy
mylist = [10,"test",10.5]
print( type(mylist) )
print( mylist )
# <type 'list'>
# [10, 'test', 10.5]
mystr = str(mylist)
print( type(mystr) )
print( mystr )
# <type 'str'>
# [10, 'test', 10.5]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.