Commit 3e9fb2ae by BellCodeEditor

auto save

parent 05e7d622
Showing with 37 additions and 0 deletions
'''
price=[15,22,18,25]
a=0
for i in price:
a+=i
print(a)
'''
price=[15,22,18,25]
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown()
for i in range(4):
turtle.forward(200)
turtle.right(90)
turtle.penup()
turtle.home()
turtle.dot(20,"red")
turtle.penup()
turtle.goto(-40,0)
turtle.dot(20,"red")
turtle.penup()
turtle.goto(40,0)
turtle.dot(20,"red")
turtle.hideturtle()
turtle.done()
\ No newline at end of file
'''
b=6
s=a*b
print("长方形的面积为:",s)
'''
import turtle
turtle.penup()
turtle.goto(-100,100)
turtle.pendown
\ 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