View Single Post
Old 05-07-2019, 03:53 AM
ogun ogun is offline
Registered User
Join Date: Sep 2013
Posts: 15
The canonical way would probably be something like:
# $language = "python"
# $interface = "1.0"
AssignStr = ["","24","blahblah"]

Dict_Param = dict(zip(KeyStr, ValueStr))
Though it looks like you are parsing a csv file, in which case I would probably look into the csv module available in the standard library, more specifically the DictReader class. See here for details:
Reply With Quote