计算机 判断题 标准 ★ 精品

类与对象基础 — 计算机判断题

Python 程序设计(大学通用) 常用库与面向对象初步 AI 三重审校通过

题目
阅读以下程序,判断结论是否正确: class Card: def __init__(self, text): self.text = text def rename(self, text): text = self.text def read(self): return self.text card = Card("初始") card.rename("更新") 结论:调用 card.rename("更新") 后,card.read() 的返回值是 "更新"。