misc
This commit is contained in:
parent
c013387b96
commit
346da23927
3 changed files with 28 additions and 9 deletions
|
|
@ -1,11 +1,11 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python2
|
||||
|
||||
import sys
|
||||
|
||||
loadfile = sys.stdin
|
||||
|
||||
if len(sys.argv) == 1:
|
||||
print "No command to run"
|
||||
print("No command to run")
|
||||
sys.exit(1)
|
||||
|
||||
if len(sys.argv) == 3:
|
||||
|
|
@ -26,7 +26,7 @@ def div(x,y):
|
|||
|
||||
lis = []
|
||||
for line in loadfile:
|
||||
if line.strip() <> "":
|
||||
if line.strip() is not "":
|
||||
x = float(line)
|
||||
lis.append(x)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue