[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:class Student(): def input(self, student_id, name, score): self.student…… 题解列表 2023年11月30日 1 点赞 0 评论 241 浏览 评分:0.0
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 523 浏览 评分:8.0
石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): c = list(map(str,input().split())) if c[0]==…… 题解列表 2023年11月28日 0 点赞 0 评论 638 浏览 评分:9.9
统计数字字符个数 摘要:解题思路:注意事项:参考代码:n = input()c = 0b="".join(n)for i in b: if i.isdigit(): c=c+1print(c)…… 题解列表 2023年11月28日 0 点赞 0 评论 601 浏览 评分: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 评论 320 浏览 评分:0.0
财务管理求月平均值 摘要:解题思路:注意事项:参考代码:sum=0for i in range(12): a=float(input()) sum+=aprint('${:.2f}'.format(…… 题解列表 2023年11月26日 1 点赞 0 评论 455 浏览 评分:9.9
字符串的修改(python) 摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B): m, n = len(A), len(B) # 创建一个二维数组来记录状态 dp = …… 题解列表 2023年11月26日 0 点赞 0 评论 337 浏览 评分:0.0
reverse倒序列表 摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums: pr…… 题解列表 2023年11月26日 0 点赞 0 评论 786 浏览 评分:9.9
陶陶摘苹果 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))h = int(input())c = 0for i in range(0,len(ls)): …… 题解列表 2023年11月26日 0 点赞 0 评论 389 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:使用for循环遍历列表注意事项:参考代码:n = int(input())c=0ls = list(map(int,input().split()))m = int(input())for …… 题解列表 2023年11月26日 0 点赞 0 评论 647 浏览 评分:0.0