DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
string list to list
import ast l1 = ['aa','bb','cc'] s = str(l1) ast.literal_eval(s) >>> ['aa','bb','cc']
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#string
#list
#list
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit