일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Bolton
- sharonchoi
- 확진자수
- 우한 코로나
- 전염병
- 중국외교부
- 최성재
- red hearse
- 조현병
- 코로나바이러스
- everybody wants you
- 미중
- 필리핀사망
- 우한코로나바이러스
- 봉준호감독통역
- parasite
- 치앙마이
- 우한
- 창궐
- 어서와한국은처음이지
- 코로나
- 우한코로나
- 신종코로나
- cnn
- 정은경 본부장님
- 코로나19
- wuhan
- 웨일즈
- 봉준호감독통역사
- 진짜영웅
- Today
- Total
목록개발노트 (114)
오지's blog
https://medium.com/@hbayraktar/how-to-setup-lets-encrypt-ssl-for-apache-on-ubuntu-18-04-cfa97a83bc08 How to Setup Let’s Encrypt SSL for Apache on Ubuntu 18.04 1-Apache Vhost Configuration medium.com 2-Add Certbot PPA and Install Certbot You’ll need to add the Certbot PPA to your list of repositories. sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot sudo..
어디서 출발지 이고 어디가 목적지 인지만 정확히 하면 맥이든 ubuntu이든 어렵지 않다. 1. 맥북에서 ssh로 aws접속하는 방법 (맥 -> aws) ssh -i [pem파일 경로] [username@aws ip address] ssh -i ".../webserver.pem" ubuntu@1.1.1.1 2. scp로 맥북AWS같 파일 다운로드 업로드 방법 scp [option] 출발지(업로드하는 곳):도착지(다운로드하는 곳) 2-1. 맥북에서 aws로 파일 업로드하는 방법(AWS로 터미널 접속) (맥 -> aws) scp -i [pem파일 경로] [업로드 하는곳: 맥북] [다운로드하는 곳: AWS] 즉, scp -i [pem파일 경로] [맥 컴퓨터의 업로드할 파일 경로 및 파일 이름] [usernam..
간단한 텍스트 이메일 보내기 및 MIME을 구성하여 첨부파일도 함께 보내기 간단한 텍스트 이메일https://github.com/ojjy/pub_practice/blob/master/python/14_1_send_email_basic.py 첨부파일도 함께(문제: 한글은 인식이 안되고 폴더내 파일 모두 보내게됨)https://github.com/ojjy/pub_practice/blob/master/python/14_2_send_email_attach.py
try-except and raise 연습 에러 명을 알때try: 실행코드except 에러명: 에러가 발생할때 실행코드 ex.try: with open('text_file_name.txt', 'r') as fp: fp.readline()except FileNotFoundError: print("파일 미존재") 일부러 에러 발생 raise https://github.com/ojjy/pub_practice/blob/master/python/11_try_except.py
파이썬을 이용한 압축 풀기 및 압축 하기 코딩 https://github.com/ojjy/pub_practice/blob/master/python/10_zipunzip.pyhttps://github.com/ojjy/pub_practice/blob/master/python/10_1_ospractices.py
packing unpacking 복습 swapa,b=b,aenumerate(리스트명) => index, value딕트명.items()=>key, valueos.walk(경로) =>현재 경로, 현재경로에서 하위 폴더, 그 경로내 파일들 iteration 단 true인경우 top-down, false인경우 bottom-up https://github.com/ojjy/pub_practice/blob/master/python/9_packunpack.py
4자리수를 임의로 생성하고 사용자가 4자리수를 입력한다. 여기서 자리수와 같은수가 있음 cow 자리수는 다르지만 같은수면 bull로 판정한다. 예를들어 9876을 임의로 생성하고 사용자가 4866을 입력하면 세번째와 첫번째 자리 각각 8과 6은 자리수와 같은수 이므로 2 cow 두번째 자리의 6은 자리수는 다르지만 같은수를 입력했으므로 bull이 된다. 즉 , 2 cow and 1 bull이 된다. https://github.com/ojjy/pub_practice/blob/master/python/8_cow_and_bull.pyhttps://github.com/ojjy/pub_practice/blob/master/python/8_cow_and_bull.txt
복소수 클래스 https://github.com/ojjy/pub_practice/blob/master/python/7_complex_num.py
1-99까지 임의의 수를 생성하고 이 수를 유저에게 맞추게 하는 게임맞출때까지 계속되고 맞추기까지 시도 횟수와 닉네임을 파일에 저장하고 게임시작때 마다 랭킹 top10까지 보여준다. https://github.com/ojjy/pub_practice/blob/master/python/6_twenty_questions.pyhttps://github.com/ojjy/pub_practice/blob/master/python/6_twenty_questions.txt dictionary type 연습https://github.com/ojjy/pub_practice/blob/master/python/6_1_practice_dict.py 딕트데이터에서 이터레이션 중간에 딕트데이터가 변경되면 런타임 에러 발생딕트데이터에..
레벨: easy 어떤 문자열이 입력되었을때 palindrome 인지 여부 판단 코드 작성.palindrome 이란 문자열에서 앞으로 읽어도 뒤로 읽어도 같은 단어순으로 정렬되어 있는 문자열이다.예를들어, helloolleh라는 문자열이 있다고 가정했을때, 앞으로 읽던 뒤로 읽던 helloolleh라는 문자열이 완성된다.또다른 예를들어, "a santa at nasa"라는 문자열로 앞으로 읽던 뒤로 읽던 asanataatnasa가 된다.여기서, 띄어쓰기나 대문자 소문자는 무시된다. https://github.com/ojjy/pub_practice/blob/master/python/5_palindrome.py