Commit 323fb8dc by BellCodeEditor

save project

parent 3447e0ad
Showing with 29 additions and 0 deletions
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
a=6#长方形的长
b=3#长方形的宽
s=a*b#长方形的面积
print("长方形的面积为:"+str(s))#输出长方形的面积
\ No newline at end of file
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