<s>Human: 创建一个简单的计算器，能够解决两个数的加、减、乘、除。输入应为两个数字和一个操作符。
num1=5，num2=7，操作符=*
</s><s>Assistant: num1 = float(input("请输入第一个数字: "))
operator = input("请输入操作符(+,-,*,/): ")
num2 = float(input("请输入第二个数字: "))

if operator == "+":
    result = num1 + num2
elif operator == "-":
    result = num1 - num2
elif operator == "*":
    result = num1 * num2
elif operator == "/":
    if num2 == 0:
        result = "除数不能为0"
    else:
        result = num1 / num2
else:
    result = "不支持的操作符"

print("结果为:", result)
</s>