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