Комментарии:
I got one more python wepon..thanks sir.
ОтветитьIt's only real advantage over if/elif is readability due to the nesting. Though it may be better performance wise as well I've never tested.
Ответитьit's very useful when you're creating a menu in pygame
ОтветитьI think this is unnecessary. I used case in Bash. Python is simple and clear, and this is a very good approach. If is enough.
ОтветитьI would love to be always your the first viewer
ОтветитьKeep being amazing
Ответить