题海让大学四年没有难题
白天模式登陆

题目详情

单选题 What will be the output of the following Python code? class change: def __init__(self, x, y, z): self.a = x + y + z x = change(1,2,3) y = getattr(x, 'a') setattr(x, 'a', y+1) print(x.a)

A. 0

B. Error

C. 7

D. 6

Python程序设计(双语)课程封面

学科:Python程序设计(双语)

时间:2025-04-27 07:01:01

Copyright © 2022 津ICP备2021001502号