实验5
作者:互联网
class StudentDoc: def __init__ (self,n,a,m,s): self._n=n self._a=a self._m=m self._s=s def set(self,s): self._s=s def date(self): print(f'名字: {self._a},学号:{self._n},学术{self._m}.绩点{self._s}') def score(self): print(f(self._s))
标签:__,绩点,self,实验,._,print,def 来源: https://www.cnblogs.com/cjylyk/p/14836749.html