📌  相关文章
📜  在python代码示例中检查字典是否为空

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

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