미니 프로젝트로 Python 알아가기

기본 컨텐츠 및 사용자가 직접 참여하여 만들어진 다양한 내용을 검색합니다.

def message(m1, m2): #메세지를 화면에 표시하는 함수 t.clear() t.goto(0, 100) t.write(m1, False, "center", ("",20)) t.goto(0, -100) t.wr... Read more

import turtle as t import random score = 0 #점수를 저장하는 변수 playing = False #현재 게임이 플레이 중인지 확인하는 변수 te = t.Turtle() #악당 거북이(빨간색) ... Read more

import turtle as t import random te = t.Turtle() #악당 거북이(빨간색) te.shape("turtle") te. color("red") te.speed(0) te.up() te.goto(0, 200) ts = t.T... Read more

import turtle as t import random def turn_up(): #위쪽 방향키를 눌렀을 때 호출되는 함수. t.left(2) #거북이를 왼쪽으로 2도 돌립니다. def turn_down(): #아래... Read more

import random import time #단어 리스트: 여기에 단어를 추가하면 문제에 나옵니다. w = ["cat", "dog", "fox", "monkey", "mouse", "panda", "frog", "snake", "wolf"] n = 1 ... Read more

import random def make_question(): a = random.randint(1, 40) #1~40 사이의 임의의 수를 a에 저장합니다. b = random.randint(1, 20) #1~20 사이의 임의의 수를 b에 저장... Read more

5 returned results.