摘要:
使用命令行 执行脚本 from django.core.management.base import BaseCommand from django.db import transaction from apps.db.models import AdminMenu class Command(Ba 阅读全文
摘要:
很多开发者 不遵从开发规范 甚至搞不清楚 各种对象之间关系 先说分层 领域层 domain DO 持久层 persistent PO 数据访问 data Access ADO 业务层 business BO 转换层 transfer TO 视图层 view VO 从数据库获取数据 domain 对应 阅读全文
摘要:
class MyClass: class_variable = "This is a class variable" @staticmethod def static_method(): print("This is a static method") @classmethod def class_ 阅读全文