简易计算器 #简易计算器,蠢新一枚,功能尚不完善,本为个人练习,仅供参考 while 1: a = input('请输入第一个运算数:').strip()#可输入前后带空格的数字 if a.lower() == 'exit':#不区分大小写的实现 break c = input('请输入运算符(仅限+,-,*,/,**):').strip() if c.lower() == 'exit': break b = input('请输入第二个运算数:').strip() if b.lower() ==…