import msthtry:math.sqrt(-1)except _as errprint(err)
except ValueError as err
#另外, import math
ValueError