Python NameError: name is not defined but can't capture the error

前端 未结 0 1140
猫巷女王i
猫巷女王i 2020-12-04 05:56
def strornum(a):
    try:
        return(a/1)
    except Exception:
        return("ERROR")
    
bob=strornum("W")
print(bob)

Th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题