Discuss / Python / 我想问廖大大,既然list跟tuple都能实现这样一个功能,直接用函数写不是更方便吗?为什么还要创建一个类呢?

我想问廖大大,既然list跟tuple都能实现这样一个功能,直接用函数写不是更方便吗?为什么还要创建一个类呢?

Topic source

没太理解原因

廖雪峰

#2 Created at ... [Delete] [Delete and Lock User]

函数写不出来


  • 1

Reply