Browse Source

删除 'b.py'

hzhu 7 years ago
parent
commit
da15e8bf30
1 changed files with 0 additions and 28 deletions
  1. 0 28
      b.py

+ 0 - 28
b.py

1
-import re
2
-s=[]
3
-o1=raw_input()
4
-s.append(o1)
5
-for i in range(1,10):
6
-    o2=raw_input()
7
-    if o2 != '=':
8
-        o3=list(o2)
9
-        o4=s+o3
10
-    else:
11
-        break
12
-if '+' in o4:
13
-    a=o4.index('+')
14
-elif '-' in o4:
15
-    a=o4.index('-')
16
-elif '*' in o4:
17
-    a=o4.index('*')
18
-elif '/' in o4:
19
-    a=o4.index('/')
20
-if o4[a] == '+':
21
-    o=float(o4[a-2])+float(o4[a-1])
22
-elif o4[a] == '-':
23
-    o=float(o4[a-2])-float(o4[a-1])
24
-elif o4[a] == '*':
25
-    o=float(o4[a-2])*float(o4[a-1])
26
-elif o4[a] == '/':
27
-    o=float(o4[a-2])/float(o4[a-1])
28
-print o