[编程入门]数字插入处理-----利用函数------(Python) 摘要:Python append----在最末尾添加 sort-----将列表排序 ```python team=list(map(int,input().split())) n=int(inpu…… 题解列表 2021年11月05日 0 点赞 0 评论 351 浏览 评分: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 评论 577 浏览 评分:6.0
用c lass 和 循环一维 摘要:解题思路:注意事项:参考代码:class people: def __init__(self,num): self.num=num self.J=Truen=int(…… 题解列表 2021年11月05日 0 点赞 0 评论 715 浏览 评分: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 评论 1104 浏览 评分:9.9
计算数字个数---详细讲解---(Python) 摘要:Python 通过遍历字符串判断字符是否为数字 ```python n=input() s=0 for i in n: if i.isdigit(): s=s+1…… 题解列表 2021年11月04日 0 点赞 0 评论 654 浏览 评分:9.9
自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码: def yue(a,b): min =(a<b and a or b) i=min while i>0: if a%i==0 and…… 题解列表 2021年11月04日 0 点赞 1 评论 681 浏览 评分:9.9
[编程入门]三个数找最大值---两种方法---(Python) 摘要:Python 1.通过max求最大值: ```python list=list(map(int,input().split())) print(max(list)) ``` 2.通过if-…… 题解列表 2021年11月04日 0 点赞 0 评论 1520 浏览 评分:9.9
[编程入门]三个数最大值---两种方法---(Python) 摘要:Python 1.通过max求最大值: ```python list=list(map(int,input().split())) print(max(list)) ``` 2.通过if-…… 题解列表 2021年11月04日 0 点赞 0 评论 846 浏览 评分:8.0
1255: 蓝桥杯算法提高-能量项链 DP解决 摘要: n = int(input()) a = list(map(int, input().split())) a.extend(a) a.append(a…… 题解列表 2021年11月04日 0 点赞 0 评论 597 浏览 评分:9.9
2^k进制数代码详细说明 摘要:解题思路:找到规律即可注意事项:主要要注意分段后可能剩下的不能组成k位的数值取值情况参考代码:import mathk,w=map(int,input().split())a=math.ceil(w/…… 题解列表 2021年11月03日 0 点赞 0 评论 430 浏览 评分:9.9