摘要: # 就是filter条件照写,但使用一个defaults 字典来来决定是新增还是更新。 ''' update_or_create 参数 update_or_create(defaults=None, **kwargs) defaults是用来更新的, kwargs是用来查询的 '''update_o 阅读全文
posted @ 2020-07-30 14:10 XuMou 阅读(260) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: UTF-8 -*- ''' @Project -> File :CMDB -> collect_windows_info.py @IDE :PyCharm @Author :XuMou @Date :2020/7/30 12:57 ''' import platform 阅读全文
posted @ 2020-07-30 13:03 XuMou 阅读(2843) 评论(0) 推荐(0) 编辑