您的位置:首页 > 编程语言 > Python开发

学习笔记(03):实用主义学Python(小白也容易上手的Python实用案例)-增量录制中:抽象之类...

2020-07-20 04:17 681 查看

立即学习:https://edu.csdn.net/course/play/27211/379056?utm_source=blogtoedu

  • class People(object): def __init__(self, name, age): self.name = name
  • self.age = age
  • def talk(self):
      print (f' Hello, My name is {self.name}') 
    • pring(f' 很高兴认识你')
  • p1 = People('二两’ , 30)
  •  
  • 内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
    标签: 
    相关文章推荐