题解列表

筛选

利用ascii表求

摘要:解题思路:注意事项:参考代码:n=int(input())a1='A'a='A'for i in range(1,n):    a=chr(ord(a)+1)    a……

阶乘计算python

摘要:python自带大整数也可直接暴力求解 https://www.bilibili.com/video/BV1oq4y1w7RF?share_source=copy_web 这里还是用到列表,用一个……

定义函数用列表找最小输出

摘要:解题思路:注意事项:参考代码:list=list(map(int,input().split()))def listp(list):    if list:        a=min(list)   ……

求a,b,c的最小公倍数

摘要:解题思路:求a,b,c的最小公倍数注意事项:参考代码:a,b,c=map(int,input().split())for i in range(1,a*b*c+1):    if i%a==0 and……

字符与数字的转换,列表求和

摘要:解题思路:外层循环保证持续输入,列表d需要结束后恢复空列表注意事项:参考代码:while True:    a=int(input())    d=[]    for i in str(a):    ……

完美的骗过ac

摘要:解题思路:创建字典,因为for循环次数无法遍历完,所以使用try——except 注意事项:    d  的值参考代码:while True:     try:         li = "ABC……

两行超简单

摘要:解题思路:注意事项:参考代码:s=input() print(s[::-1])……