进制转换-python的EOF

  • Post author:
  • Post category:python


https://www.nowcoder.com/practice/0337e32b1e5543a19fa380e36d9343d7?tpId=60&tqId=29473&tPage=1&ru=/kaoyan/retest/1001&qru=/ta/tsing-kaoyan/question-ranking

try:
    while True:
        dec = int(input())
        ans = bin(dec)
        print(ans.split('b')[1])
except EOFError:
    pass



版权声明:本文为qq_42756072原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。