```python
def check_key_in_dict(dictionary, key):
return key in dictionary
my_dict = {'a': 1, 'b': 2, 'c': 3}
key_to_check = 'a'
result = check_key_in_dict(my_dict, key_to_check)
print(result)
```
def check_key_in_dict(dictionary, key):
return key in dictionary
my_dict = {'a': 1, 'b': 2, 'c': 3}
key_to_check = 'a'
result = check_key_in_dict(my_dict, key_to_check)
print(result)
```
上一篇:如何看待经济减速1500字