输入:3 输出:0,1,1,2 法一 num=int(input()) numlist=[] reslist=[] #1.1输入0 if num==0: reslist.append(bin(0)) #1.2输入大于0 else: for i in