1、

for i in range(1,101,2):
    print(i)        

 

2、

for i in range(1,101):
    if i%2 == 1:
        print(i)