摘要: F函数,用于操作对象的某一列的值 from django.db.models import F, Q from .models import Fruit fruit = Fruit.objects.get(id=1) fruit.count += 1 等同于 fruit.count= F("coun 阅读全文
posted @ 2021-07-17 16:55 x-dai 阅读(92) 评论(0) 推荐(0)