Commit 7de0a760 by BellCodeEditor

save project

parent 22354288
Showing with 15 additions and 0 deletions
class Hero:
def __init__(self,mz,sm,gj):
self.mz= mz
self.sm=sm
self.gj=gj
def one():
yase.sm-yase.sm+100
yase.gj-yase.gj+120
houyi=Hero('后羿',249,160)
houyi.one()
print('生命为'houyi.sm)
print('攻击为'houyi.gj)
\ 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