我在 python 中有 try-except 块,当发生异常时我什么也不想做。我的代码如下:
for i in range(len(grid)):
for j in range(len(grid[i])):
try:
count = count > int(grid[i][j]) ? count : int(grid[i][j])
except:
//Do nothing here
当异常被捕获时,我如何什么都不做。
谢谢。