fork download
  1. jin=2
  2. shu=16
  3. jieguo=[]
  4. while shu>0:
  5. k=shu%2
  6. jieguo=[k]+jieguo
  7. shu=shu//jin
  8. print(jieguo)
Success #stdin #stdout 0.07s 14100KB
stdin
Standard input is empty
stdout
[1, 0, 0, 0, 0]