Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 카카오
- Alignments
- 프로그래머스
- RMES
- KAKAO
- 논문작성
- SMAPE
- Python
- Pycaret
- Overleaf
- 파이썬을파이썬답게
- knn
- TypeError
- 스택
- n_sample
- iNT
- Mae
- 논문editor
- mes
- mMAPE
- PAPER
- 평가지표
- Tire
- MAPE
- 코테
- 에러해결
- 논문
- python 갯수세기
- n_neighbors
- Scienceplots
Archives
- Today
- Total
목록iNT (1)
EunGyeongKim
[Python] int 진법 변환 시 에러
n진법 -> 10진법으로 변환시 에러 num, base = map(int, input().strip().split(' ')) int(num, base) 이런식으로 n진법을 10진법으로 변환해줄때 ----> print(int(num, base)) TypeError: int() can't convert non-string with explicit basetype에러가 나타난다. num이 string이 아니라서 생기는 문제! 걍 num을 str형태로 바꿔주면 된다! 에러 수정 코드 num, base = map(int, input().strip().split(' ')) int(str(num), base) 에러 해결 끝! :D
Language/Python
2022. 8. 5. 15:07