Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_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
fcb2fd35
authored
Nov 03, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a1ae26ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
0 deletions
JIUY.PY
ghfh.py
jhf.py
sv.py
去打包好.py
JIUY.PY
View file @
fcb2fd35
...
@@ -14,3 +14,5 @@ print(yase.attack)
...
@@ -14,3 +14,5 @@ print(yase.attack)
ghfh.py
0 → 100644
View file @
fcb2fd35
class
hero
:
def
__init__
(
self
,
name
,
hp
,
attack
):
self
.
mingzi
=
name
self
.
xueliang
=
hp
self
.
gongji
=
attack
yase
=
hero
(
"夜色"
,
100
,
200
)
yase
.
mingzi
=
"呼呼的胡"
yase
.
xueliang
=
300
print
(
"血量是"
+
str
(
yase
.
xueliang
))
print
(
"名字是"
+
str
(
yase
.
mingzi
))
print
(
"攻击是"
+
str
(
yase
.
gongji
))
jhf.py
0 → 100644
View file @
fcb2fd35
class
cake
:
def
__init__
(
self
,
naiyou
,
shuiguo
,
chicun
):
self
.
you
=
chess
self
.
shuiguo
=
fruit
self
.
chicun
=
size
cake1
=
cake
(
"pure"
,
"apple"
,
30
)
print
(
"尺寸"
+
str
(
cake1
)
\ No newline at end of file
sv.py
0 → 100644
View file @
fcb2fd35
class
hero
:
def
__init__
(
self
,
name
,
hp
,
attack
):
self
.
mingzi
=
name
self
.
xueliang
=
hp
self
.
gongji
=
attack
yase
=
hero
(
"夜色"
,
100
,
200
)
yase
.
mingzi
=
"呼呼"
print
()
\ No newline at end of file
去打包好.py
0 → 100644
View file @
fcb2fd35
t
=
input
(
"请出拳(石头/剪刀/布)"
)
t
=
input
(
"请出拳(石头/剪刀/布)"
)
print
(
"玩家出拳:"
+
t
)
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