Hi!

Have a look to the Python-Cookbook at ActiveState.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/410692

This is a recipe for simulating a switch.

HTH Ewald

铁石 wrote:
>   I know this may seem to be stupid.
> but as I found that there's no 
> switch-case control flow in python,
> an I just can't remember( or know) any 
> method to make such a control flow.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to