关于作者

Discuss / Python / object() takes no parameter

object() takes no parameter

Topic source

爱維她命-C

#1 Created at ...

class Student(object): def init(self,name,score): self.name=name self.score=score def print_score(self): print('%s:%s'%(self.name,self.score)) bart=Student("cbk",100) bart.print_score()


  • 1

Reply

WARNING: You are using an old browser that does not support HTML5. Please choose a modern browser (Chrome / Microsoft Edge / Firefox / Sarafi) to get a good experience.