异常处理

修改报名名单

https://www.nowcoder.com/practice/a7f5738b05564534a3daae0d14c890d3

entry_form = ("Niuniu", "Niumei")
print(entry_form)
try:
    entry_form[1] = "Niukele"
except TypeError:
    print("The entry form cannot be modified!")

Review the knowledge of python exception handling: https://www.runoob.com/python/python-exceptions

全部评论

相关推荐

昨天 13:50
门头沟学院 Java
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务