728x90
반응형
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 -->
<!-- This script tag bootstraps PyScript -->
<!-- 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 : 2025-01-06 (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~^^
반응형
'개발 > Python' 카테고리의 다른 글
Ubuntu 24.04 python3 numpy install / uninstall (0) | 2025.02.17 |
---|---|
Ubuntu 24.04 python3 pip install / uninstall (1) | 2025.02.17 |
로또 번호 생성기, 로또 6/45 (0) | 2025.02.09 |
pip install lanarky 0.8.6 설치 오류 (0) | 2025.02.06 |
윈도우 로또 6/45 랜덤 생성 프로그램 (PyQt5 / pyinstaller) (0) | 2025.01.24 |