Commit 60d9b420 by BellCodeEditor

auto save

parent 63154e46
Showing with 41 additions and 8 deletions
i = 1 # 行
j = 1 # 列
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式
for i in range(10):
for j in range(1,i+1):
print(j,"×",i,"=",(j*i),end=" ")
print()
\ No newline at end of file
# a = int(input('请输入圆的半径:'))
# b = 2*3.14*a
# c = 3.14*a*a
# d = a*2
# print('周长:%.2f\n'%b)
# print('面积:%.2f\n'%c)
# print('直径:%.2f\n'%d)
from turtle import *
fillcolor('red')
up()
goto(0,-200)
down()
circle(200)
up()
goto(0,50)
circle(30)
down()
up()
goto(-100,50)
dot(40,'blue')
up()
fd(400)
down()
dot(40,'blue')
up()
goto(0,50)
down()
left(180)
circle(50,steps=3)
up()
goto(-150,-70)
down()
goto(0,-170)
goto(150,-70)
goto(-150,-70)
begin_fill()
end_fill()
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