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 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 4-9 ÀÔ·ÂÀ» ¹Þ¾Æ¼ µµÇü ±×¸®±â¸¦ Çغ¸ÀÚ, 111ÂÊ # import turtle t = turtle.Turtle() t.shape("turtle") s = turtle.textinput("", "µµÇüÀ» ÀÔ·ÂÇϽÿÀ: ") if s == "»ç°¢Çü": s = turtle.textinput("", "°¡·Î: ") w = int(s) s = turtle.textinput("", "¼¼·Î: ") h = int(s) t.forward(w) t.left(90) t.forward(h) t.left(90) t.forward(w) t.left(90) t.forward(h) # ³ª¸ÓÁö ºÎºÐÀº ¿©·¯ºÐÀÌ ¿Ï¼ºÇØ º¸¼¼¿ä. turtle.done() | cs |