일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- humble 도커
- nav2 설치
- humble docker
- nav2 dev contatiner
- ros2 foxy tutorial
- development guides
- CODEUP 6073
- nav2 development guides
- nav2 getting started
- ros2 getting started
- CodeUp
- nav2 development guides
- foxy nav2
- nav2 튜토리얼
- Python
- Foxy tutorial
- ros2 development guides
- humble development guides
- ROS FOXY 튜토리얼
- ros2 remapping
- docker foxy
- Nav2 document
- humble getting started
- 코드업
- ubuntu ros2 설치
- humble nav2
- ros2 foxy docker
- ubuntu humble 설치
- error
- ros2 튜토리얼
Archives
- Today
- Total
목록for문 (1)
BAN2ARU
[Python] for문에서 'int' object is not iterable 오류
TypeError: 'int' object is not iterable 오류가 발생한 경우에는 for i in 변수 : --> for i in range(변수) 로 변경하면 오류가 해결된다. 오류가 발생한 이유는 변수가 'int' 즉 숫자형이여서 발생한 것인데, for문은 list형에 있는 iterable 즉, 단계별로 수행할 수 있는 list의 형태가 필요하기 때문이다. range(변수)로 하면 해당 변수가 0~변수 값까지의 list형식으로 변환되어 오류가 해결된당!
Language/Python
2022. 2. 23. 15:31