相关疑难解决方法(0)

Python:一次尝试多个除外

在Python中,是否可以except为一个try语句提供多个语句?如 :

try:
 #something1
 #something2
except ExceptionType1:
 #return xyz
except ExceptionType2:
 #return abc
Run Code Online (Sandbox Code Playgroud)

python syntax exception-handling

162
推荐指数
1
解决办法
9万
查看次数

标签 统计

exception-handling ×1

python ×1

syntax ×1