Last active
June 30, 2022 21:08
-
-
Save pdr-tuche/04d0dfe463881708af03b65e3ec4c8ab to your computer and use it in GitHub Desktop.
Renderização de relógio na web utilizando pyscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<!--<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" /> --> | |
<script defer src="https://pyscript.net/alpha/pyscript.js"></script> | |
<title>Document</title> | |
</head> | |
<body> | |
<h1>meu primeiro codigo pyscript</h1> | |
<py-script> | |
print ('DIA:') | |
from datetime import datetime | |
now = datetime.now() | |
now.strftime("%d/%m/%Y, %H:%M:%S") | |
</py-script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment