12 2025 档案

摘要:` n, x, q = map(int, input().split()) w = list(map(int, input().split())) cost1 = x cost2 = min(w) + q cost3 = min(w) + 10 print(min(cost1, cost2, cos 阅读全文
posted @ 2025-12-24 13:31 wdd200706 阅读(9) 评论(0) 推荐(1)
摘要:1.进制转换函数:bin, oct, hex 将整数(int) 转换为不同进制的字符串 o bin(x):转换为二进制(binary),前缀为Ob。 oct(x):转换为八进制(octal),前缀为0o``。 hex(x):转换为十六进制(hexadecimal),前缀为0x。 示例: x=12 转 阅读全文
posted @ 2025-12-16 23:01 wdd200706 阅读(13) 评论(0) 推荐(0)
摘要:示例代码 def calculate(data, func): """高阶函数:对数据列表中的每个元素应用指定函数""" result = [] for item in data: result.append(func(item)) return result numbers = [1, 2, 3, 阅读全文
posted @ 2025-12-09 20:00 wdd200706 阅读(27) 评论(1) 推荐(0)
摘要:一:感悟 1.学习蓝桥杯的课程后发现此课程与其他的课程有比较大的不同之处,这个课程更加注重实用性和比赛方面的应用,讲解了一般的知识在比赛中如何更好的使用。 2.刚看没多少我就发现了之前学习的时候所遗漏的知识,这让我有很大的收获感。 二:收获 1.逻辑运算符 Python 提供了三个逻辑运算符来组合布 阅读全文
posted @ 2025-12-03 13:05 wdd200706 阅读(14) 评论(0) 推荐(2)