DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
converting string key to int py
d = {'1':'145' , '2':'254' , '3':'43'} d = {int(k):v for k,v in d.items()}
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#converting
#string
#key
#int
#py
ADD COMMENT
Topic
COMMENT
Name
1+9 =
Submit