题目链接:https://www.acwing.com/problem/content/4/ 题目描述: 解题思路:与前两个背包问题类似(题目链接:https://www.cnblogs.com/ygsr/p/14502222.html) 与前两个题比,这个题多添加一个for循环用来读取物品个数。 ...
from rest_framework.exceptions import ValidationError # ... raise ValidationError(detail="size must be either 'large' or 'small'") DRF catches these e ...
分类:
其他好文 时间:
2021-03-10 13:08:25
阅读次数:
0
HashMap 源码分析 0. 前置知识 0.1 位运算 0.2 哈希值、哈希表、哈希函数 哈希值 通过一定的散列算法,把一个不固定长度的输入,转成一个固定长度的输出,输出的结果我们称之为哈希 map中,hash就是一个int值 哈希表: 存储哈希值的数组 -- 存取散列值(哈希值)的一个容器 哈希 ...
分类:
其他好文 时间:
2021-03-10 13:04:15
阅读次数:
0
水平虚线 shape: line-horizontal.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape ...
分类:
移动开发 时间:
2021-03-09 13:55:09
阅读次数:
0
flag为1文件名前+Python_ flag为2删除Python_ import os flag = 2 # 获取当前目录下所有文件名并返回一个列表 filelist = os.listdir() # 遍历列表进行重命名 for i in filelist: if flag == 1: new_n ...
分类:
编程语言 时间:
2021-03-09 13:38:18
阅读次数:
0
转自:http://man-yutao.iteye.com/blog/1317446 ArrayList和Vector都是继承了相同的父类和实现了相同的接口。如下 Java代码 public class Vector<E> extends AbstractList<E> implements Lis ...
分类:
其他好文 时间:
2021-03-09 13:08:46
阅读次数:
0
代码表使用 与 Combo 控件结合用作下拉列表 在 Xml/Data 文件夹文件夹下的 xml 文件中使用: <tk:Field DataType="string"> <tk:FieldName>USER_SEX</tk:FieldName> <tk:DisplayName> <tk:Conten ...
分类:
其他好文 时间:
2021-03-09 13:05:51
阅读次数:
0
常用快捷键 Ctrl+C 复制 Ctrl+V 粘贴 Ctrl+A 全选 Ctrl+X 剪切 Ctrl+Z 撤销 Ctrl+S 保存 Alt+F4 关闭窗口 shift+Del 永久删除 Ctrl+shift+Esc 打开任务管理器 Win+R 打开运行 Win+E 打开我的电脑 Win+Tab 切换 ...
分类:
其他好文 时间:
2021-03-08 14:02:41
阅读次数:
0
概述类面试题 1. 请说一下Java容器集合的分类,各自的继承结构 Java集合分为两大类:Collection 和 Map Collection集合 Map集合 2. 请谈一谈Java集合中的fail-fast和fail-safe机制 fail-fast fail-fast也就是 “快速失败”,它 ...
分类:
编程语言 时间:
2021-03-08 13:09:40
阅读次数:
0
#include <bits/stdc++.h> using namespace std; int ans,a[1000],dp[1000],n; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",&a[i]); } for( ...
分类:
其他好文 时间:
2021-03-08 13:08:20
阅读次数:
0