#版本一
result="""
******************
计算器
******************
"""
print(result)
r = input("请输入运算公式:")
r = eval(r)
print("运算结果:"+str(r))
#版本二
import turtle
#标题
turtle.write("*"*30,font=('Arial',18,'normal'))
turtle.penup()
turtle.goto(60,-60)
turtle.pendown()
turtle.color("orange")
turtle.write("计算器",font=('Arial',28,'normal'))
turtle.penup()
turtle.goto(0,-120)
turtle.pendown()
turtle.write("*"*30,font=('Arial',18,'normal'))
result = turtle.textinput("计算器","请输入算式")
turtle.penup()
turtle.goto(0,-140)
turtle.pendown()
turtle.write(result+"="+str(eval(result)),font=('Arial',18,'normal'))
print(result,eval(result))