r5zyoon.log
로그인
r5zyoon.log
로그인
파이썬 int() 진법 변환
r5z Yoon
·
2023년 4월 1일
팔로우
0
10진수
python
파이썬
0
파이썬 내장 함수인 int() 함수로 n진수를 10진수로 변환할 수 있다.
int(string, base)
ex
)
print
(
int
(
'111'
,
2
)
)
#7
print
(
int
(
'fff'
,
16
)
)
#4095
r5z Yoon
_____ is a process </br> https://github.com/R5Z
팔로우
이전 포스트
파이썬 reverse(), reversed()
다음 포스트
파이썬 Thread
0개의 댓글
댓글 작성