728x90
반응형
import turtle as t
import math
radius = 120
circum = 2 * math.pi * radius # math package에 있는 pi 사용
area = math.pi * radius * radius
t.setup(width=600,height=600)
t.begin_fill()
t.color('red', 'yellow')
t.shape('turtle')
t.circle(radius)
t.end_fill()
t.done()

728x90
반응형
'프로그램' 카테고리의 다른 글
[파이썬] pandas 컬럼이 null 이면 다른 컬럼값 변경 (1) | 2022.09.22 |
---|---|
[파이썬] pygame 으로 원 그리기 (0) | 2022.09.20 |
[파이썬] 외부 프로그램 실행 (0) | 2022.09.18 |
[파이썬] 배열에서 항목(중복제거) 찾고 Count 하기 (0) | 2022.09.18 |
[파이썬] 폴더내의 파일명 변경 (0) | 2022.09.18 |
댓글