Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson2_diy1
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
ad19119c
authored
Jul 17, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
25e89fe8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletions
1ql-of-oeifjnoinql-of-oeifjnoin
j'a'te'h'FQJNQ'q'ni'do
jiji.py
snake.py
1ql-of-oeifjnoinql-of-oeifjnoin
0 → 100644
View file @
ad19119c
j'a'te'h'FQJNQ'q'ni'do
0 → 100644
View file @
ad19119c
jiji.py
0 → 100644
View file @
ad19119c
import
random
a
=
100
b
=
random
.
randint
(
0
,
200
)
print
(
'随机数是'
,
b
)
if
b
>
a
:
print
(
"随机数大于100"
)
if
a
>
b
:
print
(
'随机数小于100'
)
\ No newline at end of file
snake.py
View file @
ad19119c
import
pygame
from
pygame
import
locals
from
pygame
import
locals
# 初始化pygame,为使用硬件做准备
# 初始化pygame,为使用硬件做准备
pygame
.
init
()
pygame
.
init
()
...
...
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