Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson15_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
e628a987
authored
Oct 30, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b6e890cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
1 deletions
1.py
diy1.py
1.py
0 → 100644
View file @
e628a987
import
turtle
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
left
(
90
)
turtle
.
forward
(
100
)
turtle
.
left
(
90
)
turtle
.
forward
(
100
)
turtle
.
left
(
90
)
turtle
.
forward
(
100
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
200
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
right
(
90
)
turtle
.
forward
(
100
)
turtle
.
done
()
\ No newline at end of file
diy1.py
View file @
e628a987
...
@@ -12,7 +12,7 @@ class Hero(object):
...
@@ -12,7 +12,7 @@ class Hero(object):
print
(
"
%
s对
%
s发起攻击,造成
%
s点的伤害,
%
s还剩下
%
s血量"
%
(
self
.
name
,
dr
.
name
,
self
.
attack
,
dr
.
name
,
dr
.
hp
))
print
(
"
%
s对
%
s发起攻击,造成
%
s点的伤害,
%
s还剩下
%
s血量"
%
(
self
.
name
,
dr
.
name
,
self
.
attack
,
dr
.
name
,
dr
.
hp
))
else
:
else
:
print
(
"
%
s已阵亡"
%
(
dr
.
name
))
print
(
"
%
s已阵亡"
%
(
dr
.
name
))
exit
()
yase
=
Hero
(
"垭瑟"
)
yase
=
Hero
(
"垭瑟"
)
houyi
=
Hero
(
"后羿"
)
houyi
=
Hero
(
"后羿"
)
...
...
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