Commit 6512f8bc by BellCodeEditor

save project

parent ab358914
print("齐天大圣","VS","六耳猕猴")
import turtle
turtle.pensize(5)
turtle.speed(5)
turtle.color('black')
turtle.up()
turtle.goto(0,-100)
turtle.down()
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(100,180)
turtle.end_fill()
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.circle(100,180)
turtle.end_fill()
turtle.goto(0,100)
turtle.up()
turtle.home()
turtle.hideturtle()
turtle.done()
\ No newline at end of file
......@@ -2,12 +2,17 @@ import pygame
from pygame import locals
pygame.init()
screen=pygame.display.set_mode((660,480))
FPECLOCK=pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
exit()
y+=30
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(food,(210,120))
screen.blit(background,(0,0))
screen.blit(right,(240,120))
screen.blit(food,(360,300))
pygame.display.updata()
\ No newline at end of file
FPECLOCK.tick(3)
#data=input('今天是星期几')
#if data=='星期一':
#print('今天学钢琴')
#elif data=='星期三':
#print('今天学')
#elif data=='星期六':
#print('今天学英语')
#else:
#print('今天
import turtle
import turtle
import turtle
turtle.goto(50,-50)
turtle.color('black')
turtle.pencolor('black')
turtle.fillcolor('green')
turtle.pensize(3)
turtle.speed(6)
turtle.begin_fill()
turtle.down()
turtle.begin_fill()
turtle.left(90)
turtle.forward(100)
turtle.left(90)
......@@ -21,4 +21,24 @@ turtle.circle(50,180)
turtle.end_fill()
turtle.up()
turtle.home()
turtle.hideturtle()
\ No newline at end of file
turtle.hideturtle()
a=int(input('小明的苹果是'))
b=int(input('小红的苹果是'))
c=int(input('小组的人数是'))
print('每个人拿到的苹果是',(a+b)//c)
print('剩余不够分的苹果是',(a+b)%c)
\ No newline at end of file
import turtle
import turtle
turtle.goto(50,-50)
turtle.color('black')
turtle.fillcolor('green')
turtle.pensize(3)
turtle.speed(6)
turtle.begin_fill()
turtle.down()
turtle.left(90)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)
turtle.end_fill()
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(50,180)
turtle.end_fill()
turtle.up()
turtle.home()
turtle.hideturtle()
\ 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