12 2020 档案
摘要:原理和禁用方法 # 1.原理 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <style type="text/css"> /* 最简单的实现禁止复
        阅读全文
            
摘要:简单的函数封装 def thread_it(func, *args): t = threading.Thread(target=func, args=args) t.setDaemon(True) try: t.start() except Exception as e: raise e def c
        阅读全文
            
摘要:区别【apply】【map】【apply_async】【map_async】 【map】各个进程执行顺序确定,当前进程阻塞 【map_async】各个进程执行顺序确定,当前进程不阻塞 【apply】各个进程执行顺序不确定,当前进程阻塞 【apply_async】各个进程执行顺序不确定,当前进程不阻塞
        阅读全文
            
摘要:基本 # 1. 【python字典】转json格式【str】 import json dic = {'a': 1, 'b': 2, 'c': 3} str1 = json.dumps(dic, sort_keys=True, indent=4, separators=(',', ':')) # 有换
        阅读全文
            
摘要:post http://cishan.chinanpo.gov.cn/biz/ma/csmh/a/csmhaDoSort.html?aaee0102_03=&field=aaex0131&sort=desc&flag=0 def charity_organization(): """ 慈善中国-慈善
        阅读全文
            
摘要:https://github.com/myide/django-sso
        阅读全文
            
摘要:实时动态图: https://echarts.apache.org/examples/zh/editor.html?c=dynamic-data
        阅读全文
            
摘要:view.py 中 def reportDetailAEQV(request): # return render(request, "app/reportAEQV.html", {"report": ReportInfo.objects.order_by("-id")}) return render
        阅读全文
            
摘要:https://www.bilibili.com/video/BV1aE411F7KC?p=8
        阅读全文
            
摘要:list,tuple,str都是有序序列 https://blog.csdn.net/Alice_lanniste/article/details/51606452
        阅读全文
            
摘要:指定源 pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package pip install -i https://pypi.douban.com/simple django==1.11.4 ubuntu #1. 安装pip
        阅读全文
            
摘要:官网 https://www.chartjs.org/docs/latest/axes/cartesian/time.html 方式1 if ($('#runExport').length) { $.ajax({ url: '/report/reportInfo/', method: 'get', 
        阅读全文
            
摘要:sql新建 CREATE DATABASE IF NOT EXISTS dbdemo; USE dbdemo; CREATE TABLE categories( cat_id int not null auto_increment primary key, cat_name varchar(255)
        阅读全文
            
摘要:django执行离线ORM操作,方法1 import os if __name__ == '__main__': os.environ.setdefault("DJANGO_SETTINGS_MODULE", "orm_demo.settings") import django django.set
        阅读全文
            
摘要:httpie 可以用来调试http pip install httpie # POST 使用表单数据 http --form POST http://127.0.0.1:8000/snippets/ code="print 123" { "id": 3, "title": "", "code": "
        阅读全文
            
摘要:range 不是迭代器 https://www.cnblogs.com/amize/p/14020050.html type 类 不管是Python自带的像“int”、“list”等类对象,还是自定义的类对象(注意:是类对象,不是实例对象),都是属于type类。 #1. type 类定义的方法 (简
        阅读全文
            
摘要:request # request 使用 # 1 request.POST # 只能处理表单(form)数据,只能处理“POST”方法. - a = request.POST.get('a', 0) 获取提交表单的a的数据 - 客户端:curl -X POST -d "a=11" -d "b=12"
        阅读全文
            
摘要:python 获取url相关的数据 # 分组命名 url(r'^image/(?P<path>.*)/$', serve, {"document_root": MEDIA_ROOT}), # 分组命名 urlpatterns = [ url(r'^snippets/$', views.snippet
        阅读全文
            
摘要:gentelella:(使用过) https://github.com/ColorlibHQ/gentelella https://mp.weixin.qq.com/s/FH-hpomI0Ms1gPzPiXrwiA
        阅读全文
            
摘要:https://www.cnblogs.com/xiaogongjin/p/11854755.html config_db.yaml: db: ip: localhost port: 3306 table: table_name uname: root passwd:
        阅读全文
            
摘要:https://blog.csdn.net/ppppfly/article/details/51086122 ''' 新建项目 ''' django-admin.py startproject HelloWorld ''' 配置项目 ''' #1.配置HTML文件的TEMPLATE TEMPLATE
        阅读全文
            
摘要:按下 ⌘Command + ⇧Shift + P(Windows 为 Ctrl + Shift + P) 输入命令 Capture full size screenshot(只输前几个字母就能找到),敲下回车,Chrome 就会自动截取整个网页内容并保存至本地。
        阅读全文
            
浙公网安备 33010602011771号