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())
以上Python代码,运行结果是?( )
My name is Alice and I am 30 years old.
My name is Person and I am 30 years old.
My name is Alice and I am 0 years old.
My name is 30 and I am Alice years old.