1. a = float(input("请输入a值:"))
    2. b = float(input("请输入b值:"))
    3. if a != 0 and b != 0:
    4. print(a / b)
    5. else:
    6. print(a * b)