随笔 - 530
文章 - 0
评论 - 3
阅读 -
10098
随笔分类 - py
SpringMVC中JSP页面不显示EL表达式的原因
摘要:感谢 https://developer.aliyun.com/article/444366 在 Spring MVC 的入门项目中, 这是最常见的问题。实际上这是因为使用了 JSP 1.2 规范引起的。 1. 使用JSP 1.2 定义格式 如果您使用了 老旧的JSP 1.2描述方式, 即使用了 D
阅读全文
若干cpp的匿名函数
摘要:function<vector<int>(int,int) > dfs = [&](int x, int fa) -> vector<int> { vector<int> a = {cost[x]}; for (int y: g[x]) { if (y != fa) { auto res = dfs
阅读全文
cpp configuration for vscode
摘要:1 windows: https://www.cnblogs.com/zjh114/p/17650234.html 2 苹果的mac : 直接运行 https://zhuanlan.zhihu.com/p/103308900 调试 //cpp_.... { "configurations": [ {
阅读全文
virtual judge [Submit with your own account]
摘要:https://vjudge.net/article/2790 然后要启用开发者模式,然后就可以打开开发者工具。 (Safari–Preferences呼出首选项面板(或用快捷键 command+, 直接呼出)。 在 Advanced 菜单面板下,勾选 Show Develop Menu in me
阅读全文
python 开数组
摘要:列表推导式~ N=int(10) #二维数组 a=[[j for i in range(N)] for j in range(20)] a[1][1]=8 a[1][2]=2 for i in range(N): for j in range(N): print(a[i][j],end=' ') p
阅读全文
python trash
摘要:x,y= map(int,input().split()) print(x," ",y) 9TTXwpbgdWhtkB3 a=[32,43,21,431] a.append(3) a.remove(21) print(a) a.extend([98,21]) print(a) a.insert(0,
阅读全文
图的遍历
摘要:n=0 N=10000 all=0 go=[0]*N hd=[0]*N nxt=[0]*N def add_(x,y): global all all+=1 nxt[all]=hd[int(x)] go[all]=y hd[x]=all def dfs(x): print("%d "%(x)) i=
阅读全文