[编程入门]自定义函数之整数处理 摘要:参考代码:def fun_1(ls): # 输入10个数 ls = list(map(int, input().split())) return lsdef fun_2(ls): # …… 题解列表 2021年04月07日 0 点赞 0 评论 401 浏览 评分:0.0
6行代码解决 摘要:解题思路:注意事项:参考代码:import sysmas=list(input().split())mas1=[abs(int(i))for i in mas]x=mas1.index(min(mas…… 题解列表 2021年04月07日 0 点赞 0 评论 575 浏览 评分:7.0
[编程入门]三个字符串的排序 摘要:参考代码:ls = []for i in range(3): ls.append(input())ls.sort()for i in ls: print(i)…… 题解列表 2021年04月07日 0 点赞 0 评论 361 浏览 评分:0.0
[编程入门]宏定义之找最大数 摘要:ls = list(map(int, input().split()))num = max(ls)print('%.3f' % num)print('%.3f' % n…… 题解列表 2021年04月07日 0 点赞 0 评论 512 浏览 评分:0.0
[编程入门]实数的打印 摘要:num = float(input())for i in range(1, 4): print(("%6.2f " % num)*i) …… 题解列表 2021年04月07日 0 点赞 0 评论 467 浏览 评分:0.0
python解决计算两点间的距离 摘要:解题思路:注意事项:参考代码:import math while 1: a = list(eval(input().replace(' ', ','))…… 题解列表 2021年04月07日 0 点赞 0 评论 480 浏览 评分:0.0
python解决蟠桃记 摘要:解题思路:递归即可参考代码:def PanTao(n, sum): if n == 1: return sum else: sum =&n 题解列表 2021年04月07日 0 点赞 0 评论 573 浏览 评分:6.0
python解决绝对值排序 摘要:注意事项:注意题目要求一行代码输入参考代码:while 1: a = list(eval((input()+' ').replace(' ', ',&…… 题解列表 2021年04月07日 0 点赞 0 评论 527 浏览 评分:0.0
[编程入门]宏定义之闰年判断 摘要:year = int(input())if year % 4 == 0 and year % 100 != 0: print("L")elif year % 400 == 0: print…… 题解列表 2021年04月07日 0 点赞 0 评论 500 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 摘要:from math import sqrta, b, c = map(float, input().split())S = (a + b + c) / 2area = sqrt(S*(S-a)*(S-…… 题解列表 2021年04月07日 0 点赞 0 评论 726 浏览 评分:0.0