1 # -*- coding: utf-8 -*- 2 from django.db import models 3 # Create your models here. 4 class Gene_Group(models.Model):
出现错误:
"class names should use camelcase convention"&"peb8,expected two blank lines.found1"
修改为:
1 # -*- coding: utf-8 -*- 2 from django.db import models 3 4 5 # Create your models here. 6 class GeneGroup(models.Model):
函数格式规范:前空两行
驼峰命名法,大驼峰,小驼峰