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

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

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