求解怎么用Python get 这个class的值
展开全部
class NewStory():
def __init__(self,guid,title,subject,summary,link):
self._guid=guid
self._title=title
self._subject=subject
self._summary=summary
self._link=link
def getGuid(self):
return self._guid
def getTitle(self):
return self._title
def getSubject(self):
return self._subject
def getSummary(self):
return self._summary
def getLink(self):
return self._link
def __init__(self,guid,title,subject,summary,link):
self._guid=guid
self._title=title
self._subject=subject
self._summary=summary
self._link=link
def getGuid(self):
return self._guid
def getTitle(self):
return self._title
def getSubject(self):
return self._subject
def getSummary(self):
return self._summary
def getLink(self):
return self._link
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询