温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有

The example using match keyword isn't complete · Issue #95986 · python/cpython · GitHub

来源:github.com

Documentation The Other Key Features in What’s New In Python 3.10 contains the following code snippet: from enum import Enum class Color(Enum): RED = 0 GREEN = 1 BLUE = 2 match color: case Color.RED: print(

以上为公开页面信息摘要,完整内容请前往原网站阅读。

前往原网站阅读全文

热门推荐记录