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
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
25e89fe8
Hide 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
This diff is collapsed.
Click to expand it.
j'a'te'h'FQJNQ'q'ni'do
0 → 100644
View file @
ad19119c
This diff is collapsed.
Click to expand it.
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
This diff is collapsed.
Click to expand it.
snake.py
View file @
ad19119c
import
pygame
from
pygame
import
locals
# 初始化pygame,为使用硬件做准备
pygame
.
init
()
...
...
This diff is collapsed.
Click to expand it.
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