일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- implicit
- db
- tas tac
- Linux
- vm
- CentOS
- 프로그래머스
- VMware
- VM 설정
- X11 forwarding
- 파이썬
- Python
- tac
- tablespace
- 암시적 커서
- OPEN CURSOR
- Tuple
- X11
- golang
- terraform
- oracle
- DDL 추출
- vm tac 구성
- python3.7
- 묵시적 커서
- tibero
- 티베로
- 코테
- 코딩테스트
- 리눅스
Archives
- Today
- Total
목록파이썬마스터 (1)
줄기세포
[Python3.7 / 파이썬 마스터 / Code] 천단위마다(3자리) 콤마(,) 찍기 코드
문제 숫자타입이 아니면 에러 3자리마다 콤마 찍기 코드(Code) def commathree(): num = '' while True: try: num = int(input("please enter number type: ")) num = str(num) break except ValueError: print("not a number type!") print(ValueError) for i in range(0,len(num)): print(num[i],end='') if (len(num)-i)%3== 1 and i !=len(num)-1: print(',',end='') else: continue print() 함수 실행 >>> commathree() please enter number type: 99 ..
Python
2023. 6. 22. 01:00