# 字典默认值报错
d= i.get('key', default = None)
get() takes no keyword arguments


# 直接输入默认值,就不报错了
d= i.get('key', 0)

  

相关文章: