일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Shell script
- Android
- namespace
- configmap
- Windows10
- Java
- macos
- nginx-media-server
- spring cloud config
- Python
- dart
- aws cli
- golang
- wireshark
- RTMP
- service
- aws
- 행정구역분류
- docker
- Pod
- HLS
- android studio
- Sysinternals
- VSCode
- ebpf
- Kubernetes
- ffmpeg
- kubectl
- deployment
- Flutter
Archives
- Today
- Total
목록recursion (1)
woonizzooni

샘플 코드 #!/usr/bin/python # -*- coding: utf-8 -*- import sys def f(n): try: f(n+1) except Exception as e: exc_type, exc_value, exc_traceback = sys.exc_info() print("%s : %s (%d)" % (exc_type.__name__, exc_value, n)) f(1) 실행결과 : RuntimeError : maximum recursion depth exceeded while getting the str of an object (998) 998번째 recursion에서 실행되지 못하고 종료됨. 이유는 python내부에서 무한 재귀 호출을 막기 위해 제한을 두기 때문.(this limi..
Programming/Python
2019. 7. 27. 21:55