📜  python 检查字典是否为空 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:52.186000             🧑  作者: Mango

代码示例2
empty_dict = {}
 
if empty_dict:
    print('Dictionary is not empty!')
else:
    print('Dictionary is empty!')