Commit 730ecea0 by BellCodeEditor

auto save

parent aba9f575
Showing with 7 additions and 3 deletions
import turtle import turtle
import random
a=random.randint(1,2)
pen = turtle.Turtle() pen = turtle.Turtle()
pen.color('sienna') pen.color('sienna')
# 画布大小 # 画布大小
w = turtle.Screen() w = turtle.Screen()
w.bgcolor('wheat') # wheat小麦 if a==1:
w.bgcolor('beige')# beige米白
else:
w.bgcolor('wheat')# wheat小麦
pen.hideturtle()
# 移动到起点 # 移动到起点
pen.left(90) pen.left(90)
pen.up() pen.up()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment