b不可以为0,如果b等于0,输出“除零错误”
a=float(input('Enter a: ')) b=float(input('Enter b: ')) if(b): c=a/b print('%.2f'%c) else: print('除零错误')