Little update
This commit is contained in:
parent
980019c8b9
commit
ec027665a9
|
@ -0,0 +1,9 @@
|
|||
def escribir_en_fichero(variable):
|
||||
with open('resources/salida.txt', 'w') as archivo:
|
||||
archivo.write(f"El valor de la variable es: {variable}\n")
|
||||
print("El valor ha sido escrito en el fichero 'salida.txt'.")
|
||||
|
||||
|
||||
mi_variable = 42
|
||||
|
||||
escribir_en_fichero(mi_variable)
|
|
@ -0,0 +1,11 @@
|
|||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Página 1</title>
|
||||
</head>
|
||||
<BODY>
|
||||
<a href="2.html">Ir a página 2</a>
|
||||
<br>
|
||||
<a href="index.html">Volver</a>
|
||||
</BODY>
|
||||
</html>
|
|
@ -0,0 +1,11 @@
|
|||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Página 2</title>
|
||||
</head>
|
||||
<BODY>
|
||||
<a href="1.html">Ir a página 1</a>
|
||||
<br>
|
||||
<a href="index.html">Volver</a>
|
||||
</BODY>
|
||||
</html>
|
|
@ -0,0 +1,9 @@
|
|||
<html lang="es">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Inicio</title>
|
||||
</head>
|
||||
<BODY>
|
||||
<a href="1.html">Ir a página 1</a>
|
||||
</BODY>
|
||||
</html>
|
|
@ -0,0 +1 @@
|
|||
El valor de la variable es: 42
|
Loading…
Reference in New Issue