📜  如何在python代码示例中创建一个类

📅  最后修改于: 2022-03-11 14:45:26.287000             🧑  作者: Mango

代码示例6
#NOTES
class PartyAnimal:
      def Party():
      #blahblah

an=PartyAnimal()

an.Party()# this is same as 'PartyAnimal.Party(an)'