下面的两个案例描述了我的困境。我想了解代码何时更稳定。
案例A
from sys import argv
a = float( argv[1] )
b = float( argv[2] )
if a == 0.:
exit(1)
else:
print b / a
exit( 0 )
案例B
from sys import argv
a = float( argv[1] )
b = float( argv[2] )
if a == 0.:
exit(1)
print b / a
exit( 0 )