自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:def lmjp(a,b): print(a+b)a = input()b = input()lmjp(a,b)…… 题解列表 2024年06月03日 0 点赞 0 评论 309 浏览 评分:0.0
自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:def dcvi(m): for i in range(len(m)): print(m[len(m)-1-i],end='')m=i…… 题解列表 2024年06月03日 0 点赞 0 评论 372 浏览 评分:9.9
[编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def my_test(m): for i in range(2,m): if m%i==0: n = 1 …… 题解列表 2024年06月03日 0 点赞 0 评论 363 浏览 评分:9.9
简单易懂,看懂给个好评! 摘要:解题思路:注意事项:参考代码:n = int(input())s = 0result = 1for i in range(n): result *= (i+1) s += resultpr…… 题解列表 2024年06月03日 0 点赞 0 评论 582 浏览 评分:9.9
用函数写的 摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3): a,b =map(int,input().split()) sum = a%b print(sum)get_…… 题解列表 2024年06月02日 0 点赞 0 评论 520 浏览 评分:9.9
递归法(辗转相除法)求最大公约数 摘要:解题思路:用辗转相除法求最大公约数,在借助最大公约数求最小公倍数注意事项:参考代码:def yue(m,n): if n==0:return m else:return yue(n,m%n…… 题解列表 2024年06月01日 0 点赞 0 评论 454 浏览 评分:9.9
简单易懂,看懂给个好评! 摘要:解题思路:注意事项:参考代码:h = 0q = 0hours = []n = int(input())for i in range(n): q += 1 a, b = map(int, i…… 题解列表 2024年05月26日 2 点赞 0 评论 447 浏览 评分:9.9
无聊的星期六 摘要:n=[[0]*3]*3 for i in range(3): n[i]=list(map(int,input().split())) for i in range(3): pr…… 题解列表 2024年05月25日 0 点赞 0 评论 530 浏览 评分:0.0
无聊的星期六 摘要:n=input() for i in ['a','e','i','o','u']: print('&…… 题解列表 2024年05月25日 0 点赞 0 评论 409 浏览 评分:0.0
无聊的星期六 摘要:n=list(map(int,input().split())) tmp=n[n.index(max(n))] n[n.index(max(n))]=n[9] n[9]=tmp tmp=n[n…… 题解列表 2024年05月25日 1 点赞 0 评论 554 浏览 评分:2.0