摘要: ``` import os import sys import time import myconfig b = ['123'] a = os.path.abspath(myconfig.__file__) print(a) b[-1]=os.path.getmtime(a) print(b) while True: a = os.path.abspath(myconfig.__fi... 阅读全文
posted @ 2017-03-02 17:51 Dus 阅读(1484) 评论(0) 推荐(0) 编辑
摘要: Python自动化之django orm之Q对象 什么是Q对象? Encapsulates filters as objects that can then be combined logically (using and ) 关联查询 Poll.objects.get( Q(pub_date=da 阅读全文
posted @ 2017-03-02 17:49 Dus 阅读(457) 评论(0) 推荐(0) 编辑