📜  olst = [] a = int(input()) b = int(input()) for ele in range(a,b+1): if ele%2 != 0: olst.append(ele) print(olst[ ::-1]) - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.521000             🧑  作者: Mango

代码示例1
olst = []
a = int(input())
b = int(input())
for ele in range(a,b+1):
        if ele%2 != 0:
                olst.append(ele)
                
print(olst[::-1])