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:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user