파이썬 int() 진법 변환

r5z Yoon·2023년 4월 1일
0

파이썬 내장 함수인 int() 함수로 n진수를 10진수로 변환할 수 있다.

int(string, base)

ex) 
print(int('111', 2)) #7
print(int('fff', 16)) #4095
profile
_____ is a process </br> https://github.com/R5Z

0개의 댓글