批量插入数据 # models.py class Books(models.Model): name = models.CharField(max_length=32) price = models.DecimalField(max_digits=5, decimal_places=2) publish = models.CharField(max_length=32) # views.py def book_page(request): # 第一种方案,每循环依次,操作一下数据库,性能低 # for i in range(1000): # book = models.Books.o