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 | 31 |
Tags
- 평가지표
- Scienceplots
- Overleaf
- SMAPE
- 논문작성
- Pycaret
- n_neighbors
- RMES
- 코테
- 에러해결
- KAKAO
- PAPER
- python 갯수세기
- Tire
- 파이썬을파이썬답게
- MAPE
- mes
- 스택
- 카카오
- iNT
- Alignments
- Mae
- 프로그래머스
- 논문editor
- Python
- TypeError
- mMAPE
- knn
- n_sample
- 논문
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