When you just want to do a try-except without handling the exception, how do you do it in Python?
(如果您只是想尝试 - 除非不处理异常,您如何在Python中执行此操作?)
Is the following the right way to do it?
(以下是正确的方法吗?)
try:
shutil.rmtree(path)
except:
pass
ask by Joan Venge translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…