python #프로그래밍 #공부1 파이썬 숫자맞추기게임 파이썬 숫자 맞추기 게임입니다. 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 다음 반응형