일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- python3
- list.sorted()
- string
- set to list
- index
- 알고리즘 풀이
- Python 몫
- Boto3
- Split
- list to set
- COUNT
- permutations
- zip()
- Unknown command: cask
- list.pop(0)
- 프로그래머스
- 알고리즘
- homebrew-core is a shallow clone.
- Python
- List to String
- cask
- sting position
- RecursionError
- Algorithm
- sort()
- List
- Modified Date
- List 초기화
- 피보나치 수
- Python 나머지
- Today
- Total
목록Split (2)
데이터와 코드로 세상을 바라봅니다.
import json import boto3 from datetime import datetime, timedelta src_bucket = '{버킷 명}' file_upload_date = str(datetime(2020, 12, 14).strftime("%Y%m%d")) def check_data_form_yyyymm(yyyymm) : result = False if len(yyyymm) == 6 and yyyymm.isdigit(): result = True return result def get_s3_file_name_list(file_upload_date) : s3 = boto3.client('s3', region_name='ap-southeast-2') response = s3.list_obj..
def solution(s): answer = '' s_list = s.split() for i in range (0,len(s_list)): if i%2==0: answer = answer+s_list[i]+" " else : answer = answer+s_list[i][::-1]+" " return answer[:-1] [문제] - 암호 해독하기 [문제 설명] 갓 초등학교에 들어간 아들이 일기를 씁니다. 아빠가 보는 것이 싫어서 나름대로 암호문을 만들어서 쓰고 있네요. 다음과 같은 방법으로 암호문을 해독하여 평문으로 만들어보세요. 암호는 띄어쓰기로 구분된 단어별로 다르게 적용됩니다. 홀수번째 단어는 그대로 쓰고, 짝수번째 단어는 좌우를 반전하여 씁니다. 암호화 된 문장의 해독 예시) '나는 늘오 햄..