Browse Source

更新 'tt.py'

hzhu 7 years ago
parent
commit
9ad6cf1446
1 changed files with 8 additions and 0 deletions
  1. 8 0
      tt.py

+ 8 - 0
tt.py

@@ -24,3 +24,11 @@ def f(i,s,S = None):
24 24
         e = '%s%s%s'%(c,a,d)
25 25
         S.append(eval(e))
26 26
         return f(i+1,s,S)
27
+
28
+x = raw_input()
29
+s = ""
30
+while x != '=\n':
31
+    s += x
32
+    x = raw_input() + '\n'
33
+
34
+print f(0,toList(s))