1
0
mirror of https://github.com/pyscript/pyscript.git synced 2022-05-01 19:47:48 +03:00

fix indentation error, and clarify the purpose of the demo

This commit is contained in:
Antonio Cuni
2022-04-27 10:07:59 +02:00
parent 67bfff6698
commit ec19bfe47a

View File

@@ -4,7 +4,7 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Svelte app</title> <title>Simple script</title>
<link rel="icon" type="image/png" href="favicon.png" /> <link rel="icon" type="image/png" href="favicon.png" />
<link rel="stylesheet" href="../build/pyscript.css" /> <link rel="stylesheet" href="../build/pyscript.css" />
@@ -13,10 +13,12 @@
</head> </head>
<body> <body>
Hello world! <br>
This is the current date and time, as computed by Python:
<py-script> <py-script>
from datetime import datetime from datetime import datetime
now = datetime.now() now = datetime.now()
now.strftime("%m/%d/%Y, %H:%M:%S") now.strftime("%m/%d/%Y, %H:%M:%S")
</py-script> </py-script>
</body> </body>
</html> </html>