코딩7 파이썬 숫자맞추기게임 파이썬 숫자 맞추기 게임입니다. import tkinter as trimport tkinter.messagebox as wmsgimport random#게임만들기a=[random.randint(0,9) for r in range(4)]def init(): global a a=[random.randint(0,9) for r in range(4)] def click1(): strike=0 ball=0 b=input1.get() if b.isdecimal(): if len(b)==4: c=list(map(int, list(str(b)))) .. 2025. 1. 19. 이전 1 2 다음 728x90 반응형