파이썬 #QT #로또1 파이썬(QT) 로또 출력 예제 import sys from PyQt5 import(uic) from PyQt5.QtWidgets import QApplication, QMainWindow from random import random form_class = uic.loadUiType("myqt03.ui")[0] class WindowClass(QMainWindow, form_class): def __init__(self): super().__init__() self.setupUi(self) self.pb.clicked.connect(self.myclick) def myclick(self): arr = list(range(1,45+1)) for i in range(100) : ran = int(random()*45) a = arr[0].. 2023. 6. 28. 이전 1 다음