Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
DELGADO VALENCIA, JORGE
ptavi-p2
Commits
e914b4ff
Commit
e914b4ff
authored
Sep 29, 2015
by
muris2016
Browse files
Estructura mejorada
parent
175871f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
calcplus.py
View file @
e914b4ff
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from
sys
import
argv
import
sys
import
calcoohija
import
calcoo
...
...
@@ -14,9 +14,9 @@ def operating(calculator, operation, numbers):
if
__name__
==
"__main__"
:
script
,
filename
=
argv
file
=
open
(
filename
)
script
,
filename
=
sys
.
argv
calculator
=
calcoohija
.
CalculadoraHija
()
file
=
open
(
filename
)
for
line
in
file
.
readlines
():
operation
=
line
.
split
(
','
)[
0
]
numbers
=
line
.
split
(
','
)[
1
:]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment