编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:def LEAP_YEAR(y): return 'L' if (y % 4 == 0 and y % 100 != 0) or y % 400…… 题解列表 2023年12月01日 0 点赞 0 评论 306 浏览 评分:0.0
[编程入门]结构体之成绩统计 屎山代码 只会语法 摘要:解题思路:注意事项:参考代码:class Student: def input(self, student_id, name, score): self.student_i…… 题解列表 2023年12月01日 0 点赞 0 评论 275 浏览 评分:0.0
[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:class Student(): def input(self, student_id, name, score): self.student…… 题解列表 2023年11月30日 1 点赞 0 评论 223 浏览 评分:0.0
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 494 浏览 评分:8.0
石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): c = list(map(str,input().split())) if c[0]==…… 题解列表 2023年11月28日 0 点赞 0 评论 612 浏览 评分:9.9
统计数字字符个数 摘要:解题思路:注意事项:参考代码:n = input()c = 0b="".join(n)for i in b: if i.isdigit(): c=c+1print(c)…… 题解列表 2023年11月28日 0 点赞 0 评论 572 浏览 评分:0.0
计算书费写法 摘要:解题思路:注意事项:参考代码:ls1 = list(map(int,input().split()))ls2 = [28.9,32.7,45.6,78,35,86.2,27.8,43,56,65]su…… 题解列表 2023年11月27日 0 点赞 0 评论 294 浏览 评分:0.0
财务管理求月平均值 摘要:解题思路:注意事项:参考代码:sum=0for i in range(12): a=float(input()) sum+=aprint('${:.2f}'.format(…… 题解列表 2023年11月26日 1 点赞 0 评论 434 浏览 评分:9.9
字符串的修改(python) 摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B): m, n = len(A), len(B) # 创建一个二维数组来记录状态 dp = …… 题解列表 2023年11月26日 0 点赞 0 评论 302 浏览 评分:0.0
reverse倒序列表 摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums: pr…… 题解列表 2023年11月26日 0 点赞 0 评论 751 浏览 评分:9.9