Commit bd9c79f3 by BellCodeEditor

save project

parent a7abd31a
Showing with 38 additions and 16 deletions
import turtle as t n=int(input('头数'))
t.goto(0,0) w=n*20
t.setx(100) print()
x=150 print('n'+'头牛产'+'w'+'千克')
for i in range(2): \ No newline at end of file
t.penup()
t.forward(50)
t.pendown()
#t.setx(x)
x+=100
t.setx()
t.done()
\ No newline at end of file
...@@ -20,5 +20,4 @@ while True: ...@@ -20,5 +20,4 @@ while True:
print('你还有'+str(i)+'次机会') print('你还有'+str(i)+'次机会')
else: else:
print('您的在账号被锁定') print('您的在账号被锁定')
exit() exit()
\ No newline at end of file
\ No newline at end of file
import turtle
t=turtle.Pen()
t.pencolor('red')
t.circle(100)
t.begin_fill()
t.left(90)
t.forward(200)
t.left(180)
t.forward(100)
t.left(90)
t.forward(100)
t.left(180)
t.forward(200)
turtle.done()
\ No newline at end of file
import turtle
t=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor('black')
color=['red','green','orange','blue']
for i in range(1,300):
t.pencolor(color[i%4])
t.forward(i)
t.right(91)
turtle.done
\ No newline at end of file
for i in range(1,10):
for j in range(1,i+1):
print(j,'*',i,'=',i*j,end=' ')
print()
\ 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