From 9c12a117d0be2a3871cf2ca9e987204080c90ba7 Mon Sep 17 00:00:00 2001 From: gavin <2861484755@qq.com> Date: Sat, 1 Apr 2017 16:44:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug=EF=BC=9A=E5=B0=86self.x?= =?UTF-8?q?=20=3D=200=20=20=E4=BF=AE=E6=94=B9=E4=B8=BA=20=20self.x=20=3D?= =?UTF-8?q?=20'0'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc.py b/calc.py index bffda30..63dc5a4 100644 --- a/calc.py +++ b/calc.py @@ -95,7 +95,7 @@ class Calc(QMainWindow): elif value in "+-*/": if self.x is None: - self.x = 0 + self.x = '0' if self.x and self.y and self.operator: self.calculate() self.operator = value -- Gitee