llnhhycom 最近的时间轴更新
llnhhycom

llnhhycom

V2EX 第 212720 号会员,加入于 2017-02-02 09:49:01 +08:00
llnhhycom 最近回复了
2017-02-03 10:54:34 +08:00
回复了 llnhhycom 创建的主题 Python 面向对象中类应该如何设计?
@814084764 你可以看下我的 Account 类,所有和账号有关的都在 Account 类中:
user = Account(uid=1)

user.nickname // 用户昵称
user.email // 用户邮箱
...
...
user.links() // 用户发布的所有链接
user.link()[0].title // 用户发布的链接的标题
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2851 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 06:52 · PVG 14:52 · LAX 23:52 · JFK 02:52
Developed with CodeLauncher
♥ Do have faith in what you're doing.