自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 Decorators-Primer on Python Decorators 装饰器入门

Decorators-Primer on Python Decorators 装饰器入门

2024-04-23 00:43:14 860 3

原创 NetLogo :child process exited with code 1解决方案

NetLogo :child process exited with code 1 解决方案

2023-01-19 15:57:02 1248

原创 TypeError: ‘float‘ object is not subscriptable 原因

TypeError: 'float' object is not subscriptable 原因

2022-12-23 17:31:18 5334 1

原创 蓝桥杯 ALGO-30 入学考试 python 题解

经典背包问题T, M = map(int, input().split())dp = [[0 for i in range(T+1)] for j in range(M+1)]t = []v = []for i in range(0, M): a, b = map(int, input().split()) t.append(a) v.append(b)for i in range(0, M): for j in range(0, T+1): if j < t[i]: .

2021-12-27 23:30:18 525

原创 蓝桥杯ALGO-986 藏匿的刺客 python题解

贪心算法用嵌套列表储存数据先按ri排序(升序),取最小的r0为minr,在s(列表)中添加minr,删除list中包含minr的数据段,然后循环再取新的minr,再删,一直删到list中没有元素。然后s的长度就是所求的最小值。代码如下n = int(input())list = []for i in range(0, n): l, r = map(int, input().split()) list.append([l, r])list.sort(key=lambda

2021-12-27 17:59:25 8360

Mathorcup2023b题国家二等奖

Mathorcup2023b题国家二等奖

2023-06-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除