Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67bfff6 commit ec19bfeCopy full SHA for ec19bfe
pyscriptjs/examples/simple_script.html
@@ -4,7 +4,7 @@
4
<meta charset="utf-8" />
5
<meta name="viewport" content="width=device-width,initial-scale=1" />
6
7
- <title>Svelte app</title>
+ <title>Simple script</title>
8
9
<link rel="icon" type="image/png" href="favicon.png" />
10
<link rel="stylesheet" href="../build/pyscript.css" />
@@ -13,10 +13,12 @@
13
</head>
14
15
<body>
16
+ Hello world! <br>
17
+ This is the current date and time, as computed by Python:
18
<py-script>
- from datetime import datetime
- now = datetime.now()
19
- now.strftime("%m/%d/%Y, %H:%M:%S")
+from datetime import datetime
20
+now = datetime.now()
21
+now.strftime("%m/%d/%Y, %H:%M:%S")
22
</py-script>
23
</body>
24
</html>
0 commit comments