DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
parse list from string
import ast x = '["A","B","C","D"]' x = ast.literal_eval(x) x # Returns: ['A', 'B', 'C', ' D']
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#parse
#list
#string
ADD COMMENT
Topic
COMMENT
Name
7+7 =
Submit