这是我的两分钱,for 循环将完成这项工作:d = {} #empty dictionaryalpha = 'abcdefghijklmnopqrstuvwxyz'for i in range(26): d[alpha[i]] = i #assigns the key value as alphabets and corresponding index value from alpha string as the value for the keyprint(d) #instant verification that the dictionary has been created properly