Python实现求平均数 摘要:解题思路:输入的分隔符是换行符注意事项:参考代码:i=1b=0.0while(i<=12): c=list(map(float, input().split()))&n…… 题解列表 2026年04月29日 0 点赞 0 评论 14 浏览 评分:0.0
编写题解 2785: 判断一个数能否同时被3和5整除 摘要:解题思路:注意事项:参考代码:n=int(input())if n%3==0 and n%5==0: print("YES")else : &…… 题解列表 2026年04月26日 0 点赞 0 评论 49 浏览 评分:0.0
编写题解 2779: 输出绝对值,python超简单 摘要:解题思路:注意事项:参考代码:x=float(input())if x>=0: print(f'{x:.2f}')else : …… 题解列表 2026年04月26日 0 点赞 0 评论 45 浏览 评分:0.0
函数嵌套jf语句 摘要:解题思路:注意事项:参考代码:def apple_number(n,x,y): if y>n*x: return …… 题解列表 2026年04月26日 0 点赞 0 评论 47 浏览 评分:0.0
欢迎借鉴,如有错误,望指点 摘要:解题思路:注意事项:参考代码:pi=3.14159def c_l(x,y): z=(pi*y*y*x)/1000 j =20 / z &…… 题解列表 2026年04月25日 0 点赞 0 评论 49 浏览 评分:0.0
Python质因数分解 摘要:非原创参考代码:n=int(input())i=mx=2while(i**2<n): if n%i==0: &nbs…… 题解列表 2026年04月23日 0 点赞 0 评论 43 浏览 评分:0.0
Python解决题目 摘要:解题思路:judge判断det正负值,f负责分类计算和输出注意事项:det是负数时,注意输出参考代码:def f(a,b,c): judge=b**2-4*a*c…… 题解列表 2026年04月23日 0 点赞 0 评论 45 浏览 评分:0.0
Python实现平均年龄 摘要:解题思路:表存储年龄,求和除个数注意事项:n作为n_age的元素不能重复命名给num,即n=int(input())n_age=list(map(int,input().split()))sumAge…… 题解列表 2026年04月23日 0 点赞 0 评论 28 浏览 评分:0.0
Python由边长判断三角形 摘要:解题思路:将三边两两之和与最常边比较,均大于最长边则是三角形的三边注意事项:表作为函数参数参考代码:def max_list(a): mx=a[0] …… 题解列表 2026年04月23日 0 点赞 0 评论 27 浏览 评分:0.0
Python解决最大值问题 摘要:解题思路:定义max函数,输入比较输出注意事项:参考代码:def mx( a, b): if a>=b:  …… 题解列表 2026年04月23日 0 点赞 0 评论 27 浏览 评分:0.0