首页 > 技术文章 > 优雅判空

PythonOrg 2021-05-07 18:34 原文

1.Optional

orElse
orElseThrow
ifPresent
ofNullable()
of()
map()

推荐阅读