编写题解 1017: [编程入门]完数的判断 摘要:解题思路:注意事项:参考代码:def get_factorial(number): son = [1] for i in range(2, int(number ** 0.5) +…… 题解列表 2023年12月02日 0 点赞 0 评论 398 浏览 评分:0.0
[字符串复制]Sn的公式求和 摘要:解题思路:注意事项:参考代码:n = int(input()) Sum = 0 for i in range(1, n + 1): Sum += int('2' * i)…… 题解列表 2023年12月01日 0 点赞 0 评论 1935 浏览 评分:0.0
[递归]阶乘求和 摘要:解题思路:递归注意事项:参考代码:def fact(n): if n == 0 or n == 1: return 1 else:   题解列表 2023年12月01日 0 点赞 0 评论 377 浏览 评分:0.0
报数问题的思路与代码 摘要:解题思路:使列表形成一个循环,每次报到3(列表的第2位)进行删除注意事项:参考代码:n=int(input())x=[i for i in range(1,n+1)]while n>2: for…… 题解列表 2023年12月01日 0 点赞 0 评论 422 浏览 评分:0.0
编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:def LEAP_YEAR(y): return 'L' if (y % 4 == 0 and y % 100 != 0) or y % 400…… 题解列表 2023年12月01日 0 点赞 0 评论 416 浏览 评分:0.0
[编程入门]结构体之成绩统计 屎山代码 只会语法 摘要:解题思路:注意事项:参考代码:class Student: def input(self, student_id, name, score): self.student_i…… 题解列表 2023年12月01日 0 点赞 0 评论 344 浏览 评分:0.0
[编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:class Student(): def input(self, student_id, name, score): self.student…… 题解列表 2023年11月30日 1 点赞 0 评论 331 浏览 评分:0.0
矩阵交换行 摘要:解题思路:注意事项:参考代码:for i in range(5): ls = list(map(int, input().split())) a.append(ls)b = list(ma…… 题解列表 2023年11月30日 0 点赞 0 评论 593 浏览 评分:8.0
石头剪子布 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): c = list(map(str,input().split())) if c[0]==…… 题解列表 2023年11月28日 0 点赞 0 评论 712 浏览 评分:9.9
统计数字字符个数 摘要:解题思路:注意事项:参考代码:n = input()c = 0b="".join(n)for i in b: if i.isdigit(): c=c+1print(c)…… 题解列表 2023年11月28日 0 点赞 0 评论 666 浏览 评分:0.0