Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Gregorio
ptavi-p2
Commits
f6c814ef
Commit
f6c814ef
authored
Oct 07, 2015
by
Gregorio
Browse files
El nombre del fichero debería tomarse de la shell
parent
757ce1fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
calcplus.py
View file @
f6c814ef
import
calcoohija
import
sys
def
main
():
pass
...
...
@@ -12,8 +12,7 @@ class CalculadoraPlus(calcoohija.CalculadoraHija):
if
__name__
==
'__main__'
:
OperacionTotal
=
0
NombreFichero
=
"OPERACIONES.CSV"
ListaOperaciones
=
[
"Operando1,Operando2,Operacion"
]
NombreFichero
=
sys
.
argv
[
1
]
Calculadora
=
CalculadoraPlus
()
Calculadora
.
leerfichero
(
NombreFichero
)
for
line
in
Calculadora
.
fichero
:
...
...
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