django----class命名格式(函数空两行)及“peb8 expected two blank lines”的驼峰命名法...

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):

函数格式规范:前空两行

驼峰命名法,大驼峰,小驼峰

转载于:https://www.cnblogs.com/qibaiqi/p/9259449.html

你可能感兴趣的:(开发工具,python)