from decimal import Decimal try: a = float(input()) b = float(input()) print((Decimal(a / b).quantize(Decimal('0.01'), rounding='ROUND_HALF_UP'))) except ZeroDivisionError as e: print('除零错误')
欢迎分享,转载请注明来源:内存溢出
from decimal import Decimal try: a = float(input()) b = float(input()) print((Decimal(a / b).quantize(Decimal('0.01'), rounding='ROUND_HALF_UP'))) except ZeroDivisionError as e: print('除零错误')
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)