题目详情
单选题 以下哪个代码片段正确地定义了一个类的方法
A. `def my_method(self):`
B. `my_method = def(self):`
C. `def Person.my_method(self):`
D. `Person def my_method(self):`
学科:Python程序设计
时间:2025-06-06 08:01:57
相关题目
相关作业