题解列表
自定义函数处理最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:def function(a, b):
c = min(a, b)
max_GCD = 0
for i in range(1, c + 1)……
自定义函数之字符提取
摘要:解题思路:注意事项:参考代码:def function(x):
aeiou = "aeiou"
str = []
for i in x:
if i
自定义函数之数字分离
摘要:解题思路:注意事项:参考代码:def function(x):
return print(' '.join(x))
if __name__ == '__main……
自定义函数之字符类型统计
摘要:解题思路:注意事项:参考代码:def function(x):
a, b, c, d = 0, 0, 0, 0
for i in x:
if i.isalpha(……
自定义函数之整数处理
摘要:解题思路:注意事项:先交换大的,再交换小的。参考代码:arr = list(map(int, input().split()))
max_number = max(arr)
min_number ……
自定义函数之数字后移
摘要:解题思路:注意事项:参考代码:n = int(input())
arr = list(map(str, input().split()))
m = int(input())
print('……