Commit 79989bcc by BellCodeEditor

auto save

parent 81be376a
import turtle
pen=turtle.Pen()
for in range(5):
pen.forward(400)
pen.right(144)
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.fillcolor("yellow")
pen.begin_fill()
for i in range(3):
pen.forward(200)
pen.right(100)
pen.end_fill()
turtle.done()
\ No newline at end of file
#今天的题目:三角形三条边分别为a,b,c,其中a=3,b=4,c=5,
#请分别求出该三角形的面积S和周长C(此三角形为直角三角形)。
a=3
b=4
c=5
print(b*c/2)
print(a+b+c)
\ No newline at end of file
for i in range(10):
print("悟空",end="\t")
\ No newline at end of file
i=1
while i<=100:
if(i%2)!=0:
print(i)
i+=1
\ 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