摘要:
Python 中没有 switch/case 语法,如果使用 if/elif/else 会出现代码过长、不清晰等问题。 而借助字典就可以实现 switch 的功能 def case1(): # 第一种情况执行的函数 print('This is the case1') def case2(): # 阅读全文
posted @ 2021-12-21 20:06
尤利阳
阅读(12773)
评论(0)
推荐(1)
[00:00.00]This [00:04.01]is [00:08.02]lyric