Python中While循环输出指定范围内2的N次方的数。要有input指定范围
m=int(input()) n=int(input()) N=0 while 2**N<=n: if 2**N>=m: print(2**N) N+=1