Skip to content

Instantly share code, notes, and snippets.

@yuua
Created November 28, 2013 08:55
Show Gist options
  • Save yuua/7688999 to your computer and use it in GitHub Desktop.
Save yuua/7688999 to your computer and use it in GitHub Desktop.
#coding:utf-8
from turtle import *
def main():
for i in range(2):
moji(i)
def moji(i):
if i == 1:
up()
goto(-20,280)
down()
write("うまい")
up()
goto(0,270)
down()
write("棒")
else:
up()
goto(-35,290)
down()
waku()
def waku():
fillcolor('yellow')
begin_fill()
for i in range(1,5):
if i % 2 == 0:
forward(100)
right(90)
else:
forward(45)
right(90)
end_fill()
if __name__ == "__main__":
main()
raw_input("type enter")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment