Cristopher Zani

Avatar
  • 活动总数 2
  • 最后的活动
  • 成员加入日期
  • 关注 0 名用户
  • 关注者数 0 名用户
  • 投票数 0
  • 订阅数 1
  • 创建于

    How to add fields in a constructor

    已回答
    This is my code: class Ship: def __int__(self, name, weight): self.name = name self.weight = weightcosta = Ship("") when I try to add the arguments to the variable costa the prog...
    • 2 个关注者
    • 1 条评论
    • 0 票