Stay Hungry,Stay Foolish!

摘要: Background 对于一些场景, 我们要求词典对于不存在的key,不报错,返回默认值。 dict有处理方法, get 方法 或者 setdefault方法。 但是过于繁琐。 Handling Missing Keys in Dictionaries https://realpython.com/ 阅读全文
posted @ 2022-07-07 22:34 lightsong 阅读(36) 评论(0) 推荐(0) 编辑
Life Is Short, We Need Ship To Travel