Commit c49540fd by BellCodeEditor

auto save

parent a0302f4b
Showing with 14 additions and 0 deletions
import random
class a:
def start(self,name,gongji,hp,hpmax):
self.name=name
self.gongji=gongji
self.hp=hp
self.hpmax=hp
def huifu(hpmax):
self.hp+=random(1,3)
if self.hp>=self.hpmax:
self.hp=self.hpmax
pass
print("结束")
\ No newline at end of file
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