switch case in python doesn't work; need another pattern

后端 未结 9 1525
臣服心动
臣服心动 2020-12-10 20:28

I need a help with a code here, i wanted to implement the switch case pattern in python so like some tutorial said , i can use a dictionary for that but here is my problem:<

9条回答
  •  难免孤独
    2020-12-10 21:26

    Ah never mind, this explained it. I was thinking of elif http://bytebaker.com/2008/11/03/switch-case-statement-in-python/

提交回复
热议问题