1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 4-1 ÀÔ·Â ¼ýÀÚ¿¡ µû¶ó ÅÍƲ ±×·¡ÇÈÀ» Á¦¾îÇغ¸ÀÚ, 99ÂÊ # import turtle t = turtle.Turtle() t.shape("turtle") t.penup() t.goto(100, 0) t.write("x°¡ yº¸´Ù Å©´Ù.") t.goto(-100, 0) t.write("y°¡ xº¸´Ù Å©´Ù.") t.goto(0, 100) t.write("µÎ ¼ö´Â °°´Ù.") t.goto(0, 0) t.pendown() x = int(turtle.textinput("", "ù ¹ø° ¼ýÀÚ¸¦ ÀÔ·ÂÇϽÿÀ: ")) y = int(turtle.textinput("", "µÎ ¹ø° ¼ýÀÚ¸¦ ÀÔ·ÂÇϽÿÀ: ")) if x > y : t.goto(100, 0) if x == y : t.goto(0, 100) if x < y : t.goto(-100, 0) turtle.done() | cs |