1. 学习
  2. /
  3. 课程
  4. /
  5. Intermediate Object-Oriented Programming in Python

Connected

练习

Using the @property decorator

Now that you've practiced working with a class that implements descriptors, you'll get to build your own using the @property decorator. Good luck!

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • Use the @property decorator to begin the process of creating a descriptor for the email attribute; this method will return the email address inside of an f-string.