def calculate(self):
''' "="??????????????? '''
try:
self.display.text = str(eval(self.display.text)) # ??????? ??eval("5 + 10")??15???
self.clear_bool = True
print('????')
except:
# ?????????'=’??????????????
print('error?????')
#class Calculator2(BoxLayout):
# def __init__(self, **kwargs):
# super(Calculator2, self).__init__(**kwargs)
评论列表
文章目录