TechNote.kr

  • 홈
  • 태그

long integer 1

Python - bin(), 10진수 숫자를 이진수(binary) 문자열로 바꾸는 함수

bin >>> bin(number) 전달받은 integer 혹은 long integer 자료형의 값을 이진수(binary) 문자열로 돌려준다. __builtin__ module에 포함된 function 이다. 예) integer를 이진수(binary) 문자열로 바꿀 경우 >>> bin(10) '0b1010' long integer를 이진수(binary) 문자열로 바꿀 경우 >>> bin(9223372036854775808) '0b1000000000000000000000000000000000000000000000000000000000000000' 참고> [integer 형과 long integer 형의 차이] >>> help(bin) Help on built-in function bin in module ..

Language/Python 2017.12.27
1
더보기
  • TechNote.
    • Android
    • Language
      • R
      • C
      • Java
      • Python
      • Kotlin
      • HTML
      • Javascript
      • nvd3.js
      • Node.js
    • OS
      • Windows
      • Linux
      • Mac
      • OpenWRT, LEDE
    • Network
      • Wi-Fi
    • Products & Services
      • Django
      • AmazonWebService (AWS)
      • VirtualBox
      • Adsense
      • WordPress
      • Tistory
      • VS Code
      • Docker
    • Database
    • Application
      • KidsTube
      • Notepad++
    • Computer architecture
    • Software architecture
    • ETC

최근글과 인기글

  • 최근글
  • 인기글

Copyright © Kakao Corp. All rights reserved.

티스토리툴바