Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / pygame_lesson9_diy1

  • This project
    • Loading...
  • Sign in
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 105f85b3 authored a year ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent e70a29d4
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 2 deletions
  • 1.py
1.py
View file @ 105f85b3
......@@ -2,10 +2,10 @@ class Hero:
def __init__(self, name, hp, attack):
self.level = 1
self.name = name
self.name = hp
self.hp = hp
self.attack = attack
yase = Hero("后羿",40000,50000)
houyi = Hero("妲己",0.1,1)
houyi = Hero("妲己",40000,1)
print("后羿的血量为:",yase.hp)
print("妲己的血量为:",yase.hp)
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment