django_orm操作MySQL数据库,批量插入数据

"def index(request):

     t = []
    
     for i in range(10000):
         t.append(models.Book(title=""第%s本书""%(i)))
    
     models.Book.objects.bulk_create(t)"
原文地址:https://www.cnblogs.com/hellozizi/p/11689797.html