how to reference an attribute from one class using another class

前端 未结 0 1692
深忆病人
深忆病人 2020-12-11 10:18

Here is my code

import random

class Player_Character:
    def __init__(self, hp, maxhp, ac, THAC0):
        self.hp = int(hp)
        self.maxhp = int(maxhp)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题