From 2e48d93e440f0a68a0be7873dc2b96a94d154a63 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Mon, 15 Aug 2022 11:37:41 +0800 Subject: [PATCH] save project --- sam.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sam.py b/sam.py index b6b06b1..6369b75 100644 --- a/sam.py +++ b/sam.py @@ -1,10 +1,15 @@ import turtle +len=40 +screen=turtle.Screen() +screen.bgcolor("light blue") pen=turtle.Pen() -pen.write("春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。\n",font=("Times",20,"normal")) pen.left(45) -pen.forward(100) -pen.circle(50,180) +pen.forward(2*len) +pen.circle(len,180) pen.right(90) -pen.circle(50,180) -pen.forward(100) +pen.circle(len,180) +pen.forward(2*len) +pen.penup() +pen.goto(100,0) +pen.write("春眠不觉晓,\n处处闻啼鸟。\n夜来风雨声,\n花落知多少。\n",font=("Times",20,"normal")) turtle.done() \ No newline at end of file -- libgit2 0.25.0