先放上官方文档 jinja的模板可以与flask结合,部分模板中的内容交给变量填充,同时让html看上去更加可编程,将这些内容最直接放置在一个正常的html文件即可 以下简单介绍下jinja的模板语法 1.变量 和vue比较像,用{{}}引起来,变量允许通过 . 和下标来访问变量的属性和偏移 2.注 ...
分类:
其他好文 时间:
2019-06-18 20:03:59
阅读次数:
131
题目如下: We have a set of items: the i-th item has value values[i] and label labels[i]. Then, we choose a subset S of these items, such that: |S| <= num_ ...
分类:
其他好文 时间:
2019-06-18 14:09:50
阅读次数:
79
Problem Description: We have a set of items: the i-th item has value values[i] and label labels[i]. Then, we choose a subset S of these items, such th ...
分类:
其他好文 时间:
2019-06-17 01:16:09
阅读次数:
89
settings.py设置 ITEM_PIPELINES = { 'tets.pipelines.TetsPipeline': 300, } spider代码 xpath后缀添加.extract() parse()返回return item import scrapy from tets.items ...
分类:
Web程序 时间:
2019-06-16 11:50:05
阅读次数:
141
1 #define _for(i,a,b) for(int i = (a);i b; 7 } 8 }; 9 class Solution 10 { 11 public: 12 vector> highFive(vector>& items) 13 { 14 vector,cmp>> v(1002);... ...
分类:
其他好文 时间:
2019-06-16 00:27:20
阅读次数:
170
1 class Solution: 2 def highFive(self, items: List[List[int]]) -> List[List[int]]: 3 n = len(items) 4 dic = {} 5 for item in items: 6 ids = item[0] 7 ... ...
分类:
其他好文 时间:
2019-06-16 00:19:16
阅读次数:
139
.welcome-hero{ display: flex; align-items: center; justify-content: center; position:relative; background:url(../images/about/welcome-banner.jpg)no-re... ...
分类:
其他好文 时间:
2019-06-15 15:09:57
阅读次数:
109
python3.6+版本中,dict的键值保持插入有序。 输出结果 ...
分类:
编程语言 时间:
2019-06-14 19:51:11
阅读次数:
107
含义 扩展运算符( spread )是三个点(...)。它好比 rest 参数的逆运算,将一个数组转为用逗号分隔的参数序列。 该运算符主要用于函数调用。 array.push(...items)和add(...numbers)这两行,都是函数的调用,它们的都使用了扩展运算符。该运算符将一个数组,变为 ...
分类:
编程语言 时间:
2019-06-10 13:49:39
阅读次数:
94