๐Python/๐ฉ๐ซclass
๐ฉ๐ซclass : 2week
4:Bee
2023. 9. 5. 16:00
728x90
test import turtle package
import turtle
t = turtle.Turtle()
t.color("blue")
t.goto(100,50)
t.circle(50)

print to variable
#variable print
a = "Python"
b = 10
print(a)
print(b)


data type
#data type
print("data type")
print(7+7)
print('7'+"7")
#str -> array
print("\nstr -> array")
msg = "Hello Python"
print(msg[0])
print(msg[6:8])
print(msg[11]) #n
print(msg[-1]) #n
print(msg[2:5]) #llo

[Python turtle] 01. ํ์ด์ฌ ํฐํ์ด๋? & ํฐํ ์ฌ์ฉ๋ฒ
1. Python turtle (ํ์ด์ฌ ํฐํ) ์ด๋? ํ์ด์ฌ์์ ์ฌ์ฉํ ์ ์๋ ๊ทธ๋ํฝ ๋ชจ๋์ ๋๋ค. ํฐํ(๊ฑฐ๋ถ์ด) ๋ชจ์์ ์ปค์๊ฐ ์ง๋๊ฐ ํ์ ์ ์ด์ฉํ์ฌ ํ๋ฉด์ ๊ทธ๋ฆผ์ ๊ทธ๋ฆด ์ ์์ต๋๋ค. 2. turtle ์คํํ๊ฒฝ ํ์ด์ฌ
kariu.tistory.com
728x90