以下Python代码的运行结果是什么

eu667506 单选题 共 个子题
class Person():
    def __init__(self, name, age):
        self.name = name
        self.age = age
    def introduce(self):
        return f"My name is {self.name} and I am {self.age} years old."
p = Person("Alice", 30)
print(p.introduce())
A

My name is Alice and I am 30 years old.

B

My name is Person and I am 30 years old.

C

My name is Alice and I am 0 years old.

D

My name is 30 and I am Alice years old.

正在加载题目数据…
已答 /
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析
讨论
发布
登录后参与讨论 立即登录
发布讨论需先绑定并验证手机号 去绑定手机号
加载中…
我
我
回复 @
回复 @
发送
还没有人讨论,来发表第一条吧