2016-09-23 9 views

答えて

0
with open(filename) as f: 
    d = {tuple(x.split(':')[0].strip().split(',')): float(x.split(':')[1].strip()) for x in f} 

をタプルABCDEFGHIJKLMNOPQRSTUVWXYZ理解。 https://www.python.org/dev/peps/pep-0274/

関連する問題