526互联
首页
Ai
Java
Python
Android
Mysql
JavaScript
Html
CSS
match-case
Python的match-case语法
Python 3.10版本在2021年10月发布,新增了match-case语法。其实就是对应别的开发语言的switch-case语法。 例子 def http_error(status): match status: case 400: print("Bad request") case 404: ......
语法
match-case
Python
match
case
更新时间 2023-03-31
共1篇 :1/1页
首页
上一页
1
下一页
尾页