Python编程中select-case语句的等效函数是什么? [英] What is the equivalent function for select-case statement in Python programming?

查看:1251
本文介绍了Python编程中select-case语句的等效函数是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的计算机科学考试中提出了一个问题,就像只使用精选案例编写程序一样。我使用python所以我需要一个帮助。



我尝试过:



我咨询了老师,但他说要使用其他编程语言,但我只喜欢使用python。

A question has been asked in my Computer Science exam , like to write a program using only select case. I use python so I need a help for it.

What I have tried:

I have consulted with teacher but he says to use other programming language which have this function but I only love to use python.

推荐答案

我建​​议你做老师说的。 Python没有select / case结构。
I would suggest you do what the teacher says. Python does not have a select/case construct.


这篇关于Python编程中select-case语句的等效函数是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆