摘要:
buildscript { repositories { maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } } dependencies { classpath 'org.springframework.boot:sp 阅读全文
摘要:
文件下载地址 gradle-> wrapper- > gradle-wrapper.properties 默认安装位置 ~/. gradle 当前项目 ~/. gradle 下载地址 wget https://services.gradle.org/distributions/gradle-6.5. 阅读全文
摘要:
直接报错 error in anyjson setup command: use_2to3 is invalid. setuptools pip install "setuptools<58.0.0" 再次安装 pip install django-celery 阅读全文
摘要:
from django.conf import settings print(settings.IP_LOCAL) 阅读全文
摘要:
# coding=utf-8 import sys import os s = 'C:/Users/Desktop/lesson/python/calss1.py' m_dir = os.path.dirname(s) # 输出为 'C:/Users/Desktop/lesson/python' m 阅读全文
摘要:
####问题就是 关联类为空找不到 在或者geattr / hasattr / obj. item 会抛出异常 ####无法通过判断处理 捕获异常 try: tmp_data['demand_dept_name'] = data.demand_dept.name except Exception: 阅读全文
摘要:
as_dict(self, keys=None, exclude_keys=None): """ 将ORM对象序列化为字典 :param keys: :return: """ if not keys: keys = self.output_fields keys += ['add_datetime' 阅读全文
摘要:
import os from datetime import datetime, timedelta path = "." if __name__ == '__main__': for root, firs, files in os.walk(path): for file in files: if 阅读全文
摘要:
引入库文件 创建下载按钮 Download Demo Excel 实现转换 var data = [ ["Joa Doe", "joa@doe.com"], ["Job Doe", "job@doe.com"], ["Joe Doe", "joe@doe.com"], ["Jon Doe", "jo 阅读全文
摘要:
在ajax 返回实际上已经拿到了 服务端的数据 完成了数据的读取逻辑 fetch('http://localhost:8000/media/default/2023/02/45/\u519c\u5bb6\u4e50\u7533\u529e_ee8f4dde_5233.xlsx',{ headers: 阅读全文