07 2014 档案
摘要:F() 的执行不经过 python解释器,不经过本机内存,是生成 SQL语句的执行。# Tintin filed a news story!reporter = Reporters.objects.get(name='Tintin')reporter.stories_filed += 1report...
阅读全文
摘要:现在的自己已经不怕mysql,已经熟悉了sql“搜索优化专家有时候都无法顾全所有,更何况ORM”两种方法执行 sql原生语句tablename.objects.raw() - 这样的语句,只能执行 select,只能执行查询执行 update, insert 等操作from django.db im...
阅读全文
摘要:简洁测试:# python -m cProfile test.py代码注入:# -*- coding: utf-8 -*- class test(object): pass class test1(test): pass class test2(test1): pass print...
阅读全文

浙公网安备 33010602011771号