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 |
Tags
- 파이썬 주식
- WAS WebServer 차이
- 변동성 돌파전략
- 파이썬 가상환경
- 프로그래머스 소수
- 리눅스 777
- spring
- JSON특징
- Python
- 리눅스 rwx
- 단순 반복 자동화
- 프로그래머스 SQL
- 오라클
- JSON 형식
- WAS란
- BigDecimal
- 리눅스
- 와스 웹서버의 차이
- 프로그래머스
- beautifulsoup
- 트레이딩 봇 만들기
- 빗썸 API 사용
- 파이썬
- Web Server란
- java
- 즐겨찾기가 가장 많은 식당 정보 출력하기
- pybithumb
- Web Service Architecture
- JavaScript Obejct Notation
- string format
Archives
- Today
- Total
목록해커랭크 TIMECONVERSION (1)
IT 개발자_S
해커랭크 TIME Conversion python
#!/bin/python3 import os import sys # # Complete the timeConversion function below. # def timeConversion(s): # # Write your code here. # time =0 if 'PM' in (s) : ## PM 일경구 time = abs(int(s[0:2]) +12) if(s[0:2] == '12') : time =12 s = s.replace(s[0:2], str(time)) return(s[0:-2].zfill(8)) else : if( int(s[0:2]) < 12): ## 12시 이전 값들은 동일하게 time = int(s[0:2]) else : ## 12시가 넘어가게되면 12를 빼줌 time = abs(in..
IT/알고리즘_Python
2020. 3. 12. 13:15