Python语法出现keyerror错误解决方法

my_dict = {“key1”: “value1”, “key2”: “value2”} try: val