自定义函数之数字分离(适合新手理解) 摘要:解题思路:注意事项:参考代码:注意事项:一定要注意格式 和审题def person_pratice(n): for i in str(n): print(int(i),en…… 题解列表 2022年04月06日 0 点赞 0 评论 439 浏览 评分:9.9
全网最容易理解(自定义函数之字符提取) 摘要:解题思路:注意事项:参考代码:def person_pratice(n): s=['a','e','i','o','u…… 题解列表 2022年04月06日 0 点赞 0 评论 355 浏览 评分:9.0
将原有列表拆分为两个列表,将其中一个列表更换次序直到与原来相同,与另外一个列表进行比较 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) x=a[0] a=a[1:] xx=a[0:x] …… 题解列表 2022年04月06日 0 点赞 0 评论 403 浏览 评分:8.0
非常容易理解(自定义函数之字符串连接) 摘要:解题思路:注意事项:参考代码:def person(h,s):#输入的参数 h=h+s#拼接字符串 print(h) #类型都为字符串 h=input() s=inp…… 题解列表 2022年04月06日 0 点赞 0 评论 1011 浏览 评分:9.9
最简单(自定义函数之字符串反转) 摘要:解题思路:注意事项:参考代码:错误思路:对字符串进行降序正确思路:对字符串进行逆序操作def person(n): print(n[::-1]) n=input() person(n)…… 题解列表 2022年04月06日 0 点赞 0 评论 535 浏览 评分:9.9
python-摆花摆花 摘要:解题思路:注意事项:参考代码:def f(n,m): num = [0] + [int(i) for i in input().strip().split()] dp = …… 题解列表 2022年04月06日 0 点赞 0 评论 401 浏览 评分:9.9
1行代码直接ac 摘要:解题思路:注意事项:参考代码 : while True: print(sum([int(i) for i in input()]))…… 题解列表 2022年04月06日 0 点赞 0 评论 372 浏览 评分:0.0
2609: 蓝桥杯2021年第十二届省赛真题-时间显示 摘要:解题思路:注意事项:参考代码:num=int(input()) t=num//1000 ss=t%60 mm=t%(60*60)//60 hh=t%(60*60*24)//(60*60) i…… 题解列表 2022年04月06日 0 点赞 0 评论 387 浏览 评分:0.0
利用列表求得最大值 摘要:解题思路:注意事项:参考代码:while True: a=list(map(int,input().split())) if a==[0]: break a=a[1:]…… 题解列表 2022年04月06日 0 点赞 0 评论 288 浏览 评分:0.0
题解 1563: 蓝桥杯算法提高VIP-质因数 摘要:````python n = int(input()) x = n s = '' while x > 1: for i in range(2,x+1): if x%…… 题解列表 2022年04月06日 0 点赞 0 评论 341 浏览 评分:0.0