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