Commit 6421d450 by BellCodeEditor

save project

parent 7eaed43a
Showing with 36 additions and 0 deletions
k = input("请输入正方形的边长。")
k = int(k)
while True:
if k = 0 or k<0:
print("数字要大于0呦。")
else:
print("输入成功")
break
q=k*4
w=k*k
print("周长是:"q)
print("面积是:"w)
5
bianliang="Hallo world"
dizhi=id(bianliang)
print(dizhi)
d=5
import turtle
iwd=turtle.Pen
iwd.pencolour("pink")
iwd.left(105)
for i in range(d):
iwd.circle(75,90)
iwd.left(90)
iwd.circle(75,90)
iwd.left(60)
iwd.down()
iwd.hideturtle()
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