Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
pygame_lesson1_2
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
6942d371
authored
Oct 22, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
490e3842
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
1 deletions
2344.py
dhw.py
py.py
snake.py
你就是狗.py
2344.py
0 → 100644
View file @
6942d371
print
(
'你个小垃圾'
)
\ No newline at end of file
dhw.py
0 → 100644
View file @
6942d371
ss
=
int
(
input
(
'你今年几岁'
))
xb
=
int
(
input
(
'你是男是女(男的输1,女的输-1)'
))
if
ss
<
12
:
ss
=
ss
*
0.134
elif
ss
<
20
:
ss
=
ss
*
0.135
elif
ss
<
30
and
xb
==
1
:
ss
=
ss
*
0.08
elif
ss
<
30
and
xb
==-
1
:
ss
=
ss
*
0.086
elif
ss
<
40
and
xb
==
1
:
ss
=
ss
*
0.047
elif
ss
<
40
and
xb
==-
1
:
ss
=
ss
*
0.0495
elif
ss
<
70
:
ss
=
ss
*
0.04
else
:
ss
=
ss
*
0.056789
ss
=
ss
-
ss
*
0.46
xb
=
xb
/
16
sh
=
ss
+
xb
print
(
'你的身高应该是'
+
str
(
sh
)
+
'米'
)
py.py
0 → 100644
View file @
6942d371
age
=
"12"
print
(
""
)
\ No newline at end of file
snake.py
View file @
6942d371
...
...
@@ -2,7 +2,7 @@ import pygame
from
pygame
import
locals
pygame
.
init
()
# 创建一个窗口
pygame
.
display
.
set_mode
(
660
,
480
)
pygame
.
display
.
set_mode
(
(
660
,
480
)
)
while
True
:
for
event
in
pygame
.
get
:
if
event
.
type
==
locals
.
QUIT
:
...
...
你就是狗.py
0 → 100644
View file @
6942d371
age
=
12
age
=
12
print
(
"1"
+
age
+
"1"
)
\ 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