Commit 159f18af by BellCodeEditor

auto save

parent 458c0c34
Showing with 18 additions and 0 deletions
a=int(input("请输入一个三位数:"))#输入数字
print("百:"+str(a//100)+" "+"十:"+str(a%100//10)+" "+"个:"+str(a%100%10))#打印
\ No newline at end of file
import turtle#导入模块
pen=turtle.Pen()
pen.color("black","blue")#设置颜色
for i in range(4):#画正方形
pen.forward(200)
pen.left(90)
pen.penup()#抬笔
pen.goto(200/2,200/2-50)#移动
pen.pendown()#落笔
pen.begin_fill()#开始填充
pen.circle(50,360)#画圆
pen.end_fill()#结束填充
pen.hideturtle()#隐藏画笔
turtle.done()#保存画布
\ 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