def undate_nameself name# 方法名 selfname = name 什么意思
The method update_name is used to update the name attribute of an object. The self.name = name line assigns the value of the name parameter to the name attribute of the object.
原文地址: https://www.cveoy.top/t/topic/hLOa 著作权归作者所有。请勿转载和采集!