Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- html = f"<html><head><title> Mis datos </title></head><body><center><h2> Nombre:{nombre}<br> </h2><h2> Fecha Nacimiento: {fn} <br></h2><h2> edad: {difd} <br> </h2><h2> Signo: {signo} <br> </h2><img src='@foto' height='200' /></center></body></html>"
- f= open(html, 'w')
- f.write(html, "r")
- f.close()
- webbrowser.open(os.path.realpath('html.html'))
- # Recuerda que dentro de comillas dobles, se usan comillas simples "Un texto 'con doble comillas'"
- # Más info sobre concatenación acá https://unipython.com/concatenacion-de-strings-y-formato-en-python/
Add Comment
Please, Sign In to add comment