Django的视图 简单的视图 我们将在 myapp 创建一个简单的视图显示: "welcome to yiibai !" 查看如下的视图 ? from django.http import HttpResponse def hello(request): text = """<h1>welcome ...
分类:
其他好文 时间:
2021-04-05 12:18:07
阅读次数:
0
概述 HttpSession是由javaWeb提供的,session是服务器对象,保存在服务器端 HttpSession是Servlet三大域对象之一,所以他也有setAttribute(),getAttribute(),removeAttribute() HttpSession底层依赖Cookie ...
分类:
Web程序 时间:
2021-04-05 12:14:19
阅读次数:
0
task1 print("hey,u")print("hey","u")x=1y=2z=3print(x,y,z)print("x=%d,y=%d,z=%d"%(x,y,z))print("x={},y={},z={}".format(x,y,z))print(f"x={x},y={y},z={z} ...
分类:
其他好文 时间:
2021-04-05 12:13:30
阅读次数:
0
报错原因:当使用union或union all时查询出的字段的排序规则不同。 解决方法: select column(列名) collate utf8_unicode_ci(排序规则)from table(表名) union/union all select column(列名) collate u ...
分类:
其他好文 时间:
2021-04-05 12:09:21
阅读次数:
0
一、数据集简介 二、MNIST数据集介绍 三、CIFAR 10/100数据集介绍 四、tf.data.Dataset.from_tensor_slices() 五、shuffle()随机打散 六、map()数据预处理 七、实战 import tensorflow as tf import tenso ...
分类:
其他好文 时间:
2021-04-05 12:08:27
阅读次数:
0
一、测试 import tensorflow as tf from tensorflow import keras from tensorflow.keras import datasets import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # x ...
分类:
其他好文 时间:
2021-04-05 12:07:04
阅读次数:
0
## 1. 下载node [node官网](https://nodejs.org/en/) ## 2. 安装镜像 npm install -g mirror-config-china ## 3. 下载项目git clone https://******.git ## 4. 安装项目依赖 npm i ...
分类:
Web程序 时间:
2021-04-05 12:02:01
阅读次数:
0
二叉树的遍历 前序遍历 LeetCode.144. 二叉树的前序遍历 二叉树的前序/中序/后序遍历的非递归描述一般适合用深度优先搜索 (DFS, depth-first search), 并使用栈的数据结构. 版本1 递归 from typing import List class Node: de ...
分类:
其他好文 时间:
2021-04-05 11:47:20
阅读次数:
0
回溯法 全排列 LeetCode.46. 全排列 给定一个没有重复数字的序列, 返回其所有可能的全排列. 示例: 输入: [1,2,3] 输出: [ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ] from typing import L ...
分类:
其他好文 时间:
2021-04-05 11:44:36
阅读次数:
0
BEGIN MERGE PGENIUS..DISC_CLS_FND AS TARGET USING (SELECT SEQ,ISVALID, DISC_ID, DISC_CLS_CODE,DECLAREDATE FROM #INSERTED_DISC_CLS WHERE DISC_TYPE=2) A ...
分类:
其他好文 时间:
2021-04-02 13:37:34
阅读次数:
0