除零错误与整除取余 2.6
Python
if num2 != 0:
quotient = num1 / num2
print(f"{num1} ÷ {num2} = {quotient}")
else:
print("错误:除数不能为0!")