Python初始化key为变量的字典 key = 'name' value = 'wangming' d = {key: value} print(d) output: {'name': 'wangming'} (●'◡'●)