From 323fb8dc4462289ffdcf81cb621a42f80e0b93b6 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 20 Jan 2022 16:49:49 +0800 Subject: [PATCH] save project --- a.py | 23 +++++++++++++++++++++++ b.py | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 a.py create mode 100644 b.py diff --git a/a.py b/a.py new file mode 100644 index 0000000..9e1cdf7 --- /dev/null +++ b/a.py @@ -0,0 +1,23 @@ +import turtle as t +t.penup() +t.forward(100) +t.left(90) +t.forward(100) +t.left(90) +t.pendown() +for i in range(4): + t.forward(200) + t.left(90) +t.penup() +t.forward(100) +t.left(90) +t.forward(100) +t.right(90) +t.forward(50) +t.left(90) +t.fillcolor("blue") +t.pendown() +t.begin_fill() +t.circle(50) +t.end_fill() +t.done() \ No newline at end of file diff --git a/b.py b/b.py new file mode 100644 index 0000000..24004a0 --- /dev/null +++ b/b.py @@ -0,0 +1,4 @@ +a=6#长方形的长 +b=3#长方形的宽 +s=a*b#长方形的面积 +print("长方形的面积为:"+str(s))#输出长方形的面积 \ No newline at end of file -- libgit2 0.25.0