連載目次 n = 481 # bin関数で2進数に変換 result = bin(n) # 戻り値は文字列であることに注意 print(result) # 0b111100001 print(type(result)) #
もっと詳しく