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

update simple script to reduce verbosity

This commit is contained in:
Fabio Pliger
2022-04-21 12:26:12 -05:00
parent cad87e6616
commit c698f29634

View File

@@ -13,11 +13,10 @@
</head> </head>
<body> <body>
<div id="outputDiv" class="font-mono" style="background-color:yellow"></div> <py-script>
<py-script output="outputDiv"> 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>