题解列表
1041: [编程入门]宏定义之找最大数-题解(python代码)
摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().split())d = max(a,b,c)print("{:.3f}".format(d))print("{:.3f}"……
1029: [编程入门]自定义函数处理素数
摘要:解题思路:注意事项:参考代码:a = int(input())for i in range(2,a//2+1): if a % i == 0: print("not prime")……
1039: [编程入门]宏定义之闰年判断-题解(python代码)
摘要:解题思路:注意事项:参考代码:a = int(input())if a%400 == 0 or (a%4 == 0 and a%100 != 0): print('L')else……
1033: [编程入门]自定义函数之字符提取-题解(python代码)
摘要:解题思路:注意事项:参考代码:a = input()for i in a: if i in 'aeiou': print(i,end='')……
1063: 二级C语言-统计字符-题解(python代码)
摘要:解题思路:注意事项:参考代码:a = input()b,c,d,e = 0,0,0,0for i in a: if i.isalpha(): b += 1 elif i.is……
1093: 字符逆序-题解(python代码)
摘要:解题思路:切片的使用注意事项:参考代码:a = input()for i in a[::-1]: print(i,end='')……