반응형
1. Download attached file(lotto645_v31.html)
2. Double click the downloaded file (or Downloaded file open in browser)
1. 첨부파일 다운로드(lotto645_v31.html)
2. 다운로드 파일 더블클릭 (또는 다운로드 파일 브라우저에서 열기)
html source :
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<!-- Recommended meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- PyScript CSS -->
<link rel="stylesheet" href="https://pyscript.net/releases/2024.5.2/core.css">
<!-- This script tag bootstraps PyScript -->
<script type="module" src="https://pyscript.net/releases/2024.5.2/core.js"></script>
<!-- for splashscreen -->
<style>
#loading { outline: none; border: none; background: transparent }
</style>
<script type="module">
const loading = document.getElementById('loading');
addEventListener('py:ready', () => loading.close());
loading.showModal();
</script>
<title>로또 6/45, Lotto 6/45 | v0.3.1</title>
</head>
<body>
<dialog id="loading">
<h1>Loading...</h1>
</dialog>
<h3>로또 6/45 Lotto 6/45</h3>
<p style="font-size:10px;">version : 0.3.1</p>
<p style="font-size:10px;">date : 2024-05-28 (Y-M-D)</p>
<p style="font-size:10px;">author : gangserver</p>
<form>
<input type="button" value="Refresh" onClick="window.location.reload()">
</form>
<p> </p>
<py-script>
import sys
from pyscript import display
#display(sys.version)
import random
lotto_num = range(1, 46)
for i in range(10):
idx = str(i + 1)
if i < 9:
idx = "0" + idx
display(f"Lotto 6/45 result {idx} : {sorted(random.sample(lotto_num, 6))}\n")
if i == 4:
display("=" * 35 + "\n")
</py-script>
<p> </p>
</body>
</html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<!-- Recommended meta tags -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- PyScript CSS -->
<link rel="stylesheet" href="https://pyscript.net/releases/2024.5.2/core.css">
<!-- This script tag bootstraps PyScript -->
<script type="module" src="https://pyscript.net/releases/2024.5.2/core.js"></script>
<!-- for splashscreen -->
<style>
#loading { outline: none; border: none; background: transparent }
</style>
<script type="module">
const loading = document.getElementById('loading');
addEventListener('py:ready', () => loading.close());
loading.showModal();
</script>
<title>로또 6/45, Lotto 6/45 | v0.3.1</title>
</head>
<body>
<dialog id="loading">
<h1>Loading...</h1>
</dialog>
<h3>로또 6/45 Lotto 6/45</h3>
<p style="font-size:10px;">version : 0.3.1</p>
<p style="font-size:10px;">date : 2024-05-28 (Y-M-D)</p>
<p style="font-size:10px;">author : gangserver</p>
<form>
<input type="button" value="Refresh" onClick="window.location.reload()">
</form>
<p> </p>
<py-script>
import sys
from pyscript import display
#display(sys.version)
import random
lotto_num = range(1, 46)
for i in range(10):
idx = str(i + 1)
if i < 9:
idx = "0" + idx
display(f"Lotto 6/45 result {idx} : {sorted(random.sample(lotto_num, 6))}\n")
if i == 4:
display("=" * 35 + "\n")
</py-script>
<p> </p>
</body>
</html>
Good luck~^^
* 로또 6/45 샘플 웹사이트(Lotto 6/45 sample web site) :
http://gangserver.dothome.co.kr/src/html/lotto645_v31.html
로또 6/45, Lotto 6/45 | v0.3.1
Loading... 로또 6/45 Lotto 6/45 version : 0.3.1 date : 2025-01-06 (Y-M-D) author : gangserver import sys from pyscript import display #display(sys.version) import random lotto_num = range(1, 46) for i in range(10): idx = str(i + 1) if i < 9: idx =
gangserver.dothome.co.kr
반응형
'개발 > Python' 카테고리의 다른 글
Lotto 6/45 random generation pyscript version(ver 0.3.1) (0) | 2025.09.01 |
---|---|
Lotto 6/45 random generation pyscript version(ver 0.1) (0) | 2025.03.11 |
Ubuntu 24.04 로또 6/45 랜덤 생성 프로그램 (PyQt5 / pyinstaller) (0) | 2025.03.05 |
PyTorch CPU version install (Linux - PIP) (0) | 2025.02.26 |
Ubuntu 24.04 pip install error (0) | 2025.02.17 |