LogIn E-mail
설계이야기
[turtle]def polygon2(n,a)
# 18 JMJS    19.11.11 10:10

import turtle as t

def polygon(n):
        for x in range(n):
                t.forward(50)
                t.left(360/n)

def polygon2(n,a):
        for x in range(n):
                t.forward(a)
                t.left(360/n)

polygon(3)
polygon(5)

t.up()
t.forward(100)
t.down()

polygon2(3,75)
polygon2(5,100)

게시물: 22 건, 현재: 1 / 1 쪽
[1]
번호 제       목 작성자 등록일 방문
23  모두의 파이썬 - 20일만에배우는 프로그래밍 기초 JMJS 20.1.8 98
22  python -m pip install -U pip JMJS 19.11.25 113
21  get =lambda i,m ... JMJS 19.11.13 122
20  2차원 리스트, 튜플 JMJS 19.11.13 99
19  [turtle]def polygon3(n,c,d) JMJS 19.11.11 106
18  [turtle]def polygon2(n,a) JMJS 19.11.11 111
17  def factorial(n) JMJS 19.11.11 110
16  def sum_func(n) JMJS 19.11.11 118
15  def hello() fun1(a) fun2(a,b) JMJS 19.11.11 118
14  while sum JMJS 19.11.11 95
13  random calculation JMJS 19.11.11 101
12  turtle random JMJS 19.11.11 105
11  import time time.time JMJS 19.11.11 108
10  turtle begin_fill end_fill JMJS 19.11.11 110
9  if else JMJS 19.11.11 105
8  input JMJS 19.11.11 111
7  list JMJS 19.11.11 120
6  turtle triangle JMJS 19.11.11 111
5  for range JMJS 19.11.11 96
4  모듈 사용하기 JMJS 19.11.11 119
3  import 파이썬 모듈 가져다 쓰기 JMJS 19.11.11 112
1  print 줄바꿈 JMJS 19.11.11 146
[1]