python 判断字典是否为空

my_dict = {}  
  
if not bool(my_dict):  
    print("Dictionary is empty")
原文地址:https://www.cnblogs.com/sea-stream/p/9981655.html