二级c语言-计负均正--用Python求解----(Python) 摘要:遍历列表统计大于0的个数求平均值小于0的个数 ```python t=list(map(int,input().split())) s=list(map(int,input().split())…… 题解列表 2021年11月05日 0 点赞 0 评论 723 浏览 评分:9.9
二级c语言-偶数求和--用Python求解----(Python) 摘要:第一句输入可以不要,但是提交判断时需要 ```python s=int(input()) t=list(map(int,input().split())) n=0 for i in t: …… 题解列表 2021年11月05日 0 点赞 0 评论 286 浏览 评分:6.0
二级c语言-平均值计算--用Python求解----(Python) 摘要:通过sum函数求和用len计算个数同过for循环遍历判断大于平均值加1 ```python t=list(map(int,input().split())) n=0 avg=sum(t)/le…… 题解列表 2021年11月05日 0 点赞 0 评论 1160 浏览 评分:9.9
1234: 检查一个数是否为质数-题解 摘要:解题思路:注意事项:参考代码:a = int(input())if a <= 1: print("N")elif a == 2: print("Y")else: for i in r…… 题解列表 2021年11月05日 0 点赞 0 评论 960 浏览 评分:0.0
[编程入门]三个数字的排序------(Python) 摘要:利用Python函数: sort-----对列表进行排序 ```python team=list(map(int,input().split())) team.sort() for i in…… 题解列表 2021年11月05日 0 点赞 0 评论 942 浏览 评分:9.9
[编程入门]数字逆序输出-----详解(Python) 摘要:reverse---可以将列表逆序 ```python team=list(map(int,input().split())) team.reverse() for i in team: …… 题解列表 2021年11月05日 0 点赞 0 评论 740 浏览 评分:9.3
[编程入门]数字插入处理-----利用函数------(Python) 摘要:Python append----在最末尾添加 sort-----将列表排序 ```python team=list(map(int,input().split())) n=int(inpu…… 题解列表 2021年11月05日 0 点赞 0 评论 319 浏览 评分:0.0
[编程入门]矩阵对角线求和-------(Python) 摘要:```python a=[] sum1=sum2=0 for i in range(3): team=list(map(int,input().split())) a.app…… 题解列表 2021年11月05日 0 点赞 0 评论 529 浏览 评分:6.0
用c lass 和 循环一维 摘要:解题思路:注意事项:参考代码:class people: def __init__(self,num): self.num=num self.J=Truen=int(…… 题解列表 2021年11月05日 0 点赞 0 评论 669 浏览 评分:9.9
关于 str(input().split()) input().split()的区别 摘要:解题思路:注意事项:参考代码:s=str(input().split())s2=input().split()print(type(s))print(type(s2))j=1for i in s: …… 题解列表 2021年11月04日 0 点赞 0 评论 1056 浏览 评分:9.9