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
         e = '%s%s%s'%(c,a,d)
24
         e = '%s%s%s'%(c,a,d)
25
         S.append(eval(e))
25
         S.append(eval(e))
26
         return f(i+1,s,S)
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))