Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6512f8bc
authored
Jun 23, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
ab358914
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
94 additions
and
8 deletions
111.py
112
123.py
task1.py
正方形于与半圆
预测卷2(1) copy
111.py
0 → 100644
View file @
6512f8bc
print
(
"齐天大圣"
,
"VS"
,
"六耳猕猴"
)
112
0 → 100644
View file @
6512f8bc
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
123.py
View file @
6512f8bc
...
...
@@ -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
)
task1.py
0 → 100644
View file @
6512f8bc
#data=input('今天是星期几')
#if data=='星期一':
#print('今天学钢琴')
#elif data=='星期三':
#print('今天学')
#elif data=='星期六':
#print('今天学英语')
#else:
#print('今天
正方形于与半圆
View file @
6512f8bc
impor
t turtle
impor
t turtle
import turtle
turtle.goto(50,-50)
turtle.color('black')
turtle.
pen
color('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
预测卷2(1) copy
0 → 100644
View file @
6512f8bc
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment