[编程入门]三个数字的排序-题解(Python代码) 摘要:解题思路: 排序函数 然后在用循环输出注意事项: 循环如果是列表类型则无需range 如果是数值类型要range参考代码:a=list(map(int,input().split())) a.…… 题解列表 2021年02月19日 0 点赞 0 评论 493 浏览 评分:8.8
[编程入门]三个数找最大值-题解(Python代码) 摘要:解题思路: 使用数列的自动排序函数sort 最后输出数列的最后一个就是最大的 参考代码:a=list(map(int,input().split())) a.sort() print(a[…… 题解列表 2021年02月19日 0 点赞 0 评论 1010 浏览 评分:8.4
求圆的面积-题解(Python代码) 摘要:解题思路: 使用**多次幂符号 注意事项:参考代码:a,b=map(int,input().split())# sum=a**2+b**2# print(sum)…… 题解列表 2021年02月19日 0 点赞 0 评论 552 浏览 评分:4.7
程序员的表白-题解(Python代码) 摘要:解题思路:'*' + n' ' +'*' (n行)(n+2)'*' (最后一行)注意事项:for i in range(n): 循环参…… 题解列表 2021年02月19日 0 点赞 0 评论 546 浏览 评分:6.0
蓝桥杯算法提高VIP-前10名-题解(Python代码) 摘要:注意事项:注释的那一行用了map函数好像就不能对列表用len和sorted函数了,map函数是返回一个新的列表参考代码:n = int(input())# num_list = map(int, in…… 题解列表 2021年02月19日 0 点赞 0 评论 246 浏览 评分:0.0
Hello, world!-题解(Python代码) 摘要:注意事项:输入有一个回车,写两次input参考代码:num_list1 = map(int, input().strip().split())num_list2 = map(int, input().…… 题解列表 2021年02月18日 0 点赞 0 评论 367 浏览 评分:6.7
[编程入门]数字的处理与判断-题解(Python代码) 摘要:解题思路:字符串逆序输出可以采用索引的方法参考代码:string = input()print(len(string))for i in string: print(i, end=' &…… 题解列表 2021年02月18日 0 点赞 0 评论 220 浏览 评分:0.0
数据结构-表达式求值-eval(Python代码) 摘要:# Part 1 本题目 发现没人发python题解,我来发一下。 首先我将代码放出来: ```python import sys for line in sys.stdin: …… 题解列表 2021年02月18日 0 点赞 1 评论 813 浏览 评分:9.9
[编程入门]三个数找最大值-题解(Python代码) 摘要:a, b, c = map(int, input().split())if a > b and a > c: print(a)elif b > a and b > c: print(b)e…… 题解列表 2021年02月18日 0 点赞 0 评论 385 浏览 评分:6.0
[竞赛入门]简单的a+b-题解(Python代码) 摘要:解题思路:注意事项:while True,让它能循环运行(自己就错在这里)参考代码:while True: a, b = map(int, input().split()) print(a…… 题解列表 2021年02月18日 0 点赞 0 评论 586 浏览 评分:5.5