
100 Days of Code - The Complete Python Pro Bootcamp for 2021 Day 67 - Advanced - Blog Capstone Project Part 3 - RESTful Routing Goals: Building a RESTful Blog with Editing! CRUD로 글 수정 기능을 가진 블로그 만들기 set FLASK_APP=mian.py set FLASK_ENV=development (한번 지정해 놓으면 계속 사용가능) 서버 시작 flask run 서버 연결 끊기 ctrl + c Requirement 1 - Be Able to GET Blog Post Items 1. 데이터베이스에서 모든 데이터를 가져오려면 db.session.query(BlogPo..

유데미 파이썬 강의 Flask: Restful API 복습 Section 66: Day 66 - Advanced - Building Your Own API with RESTful Routing set FLASK_APP=mian.py set FLASK_ENV=development (한번 지정해 놓으면 계속 사용가능) 서버 시작 flask run 서버 연결 끊기 ctrl + c route("/random", methods=["GET"]) Normally, we've been returning HTML templates using render_template(), but this time, because our server is now acting as an API, we want to return a JSO..

5개월 전 Udemy Python API 토픽에서 진행한 프로젝트 "Flight Deal" 여행지 비행기 티켓 최저 가격을 설정해놓으면 이보다 낮은 가격이 떳을 때 메세지 알림을 보내주는 유용한 프로그램이다 :) 그런데...최근 Github 포트폴리오를 정리하다가 원본 파일을 삭제했다는 사실을 발견했다 ㅜㅜ 파이썬도 복습할 겸 처음부터 requirement를 보고 프로그램을 작성해봤다. Program Requirements Use the Flight Search and Sheety API to populate your own copy of the Google Sheet with International Air Transport Association (IATA) codes for each city. Mos..
벨로그 사이트 오류로 티스토리 블로그로 이동 Errors, Exceptions and JSON Data: Improving the Password Vault GUI app Catch exceptions Why?: To continue executing the whole script, even though there are errors. When there are errors in code, it simply terminates execution at the first error, before it reaches the end of the script; however, with exception handling, we can catch errors while executing the whole progra..
오랜만에 파이썬 언어 응용문제를 풀었다. 작년 9월 경 처음 파이썬을 접했을 때 어려워서 포기했던 문제였다. 9개월 후. 지금 까지 들었던 코드잇 강의들을 둘러보다가 학습 완료 체크가 안된게 눈에 걸려서 휘리릭 풀어보기로. 언뜻보고 쉬워보여서 5분만에 코드를 짤 수 있겠거니 했는데, 30분은 걸렸다 ㅜㅜ 요즘에 파이썬을 자주 안썼더니만... 디테일한 문법도 까먹었고, 코드 논리 짜는 데에서 버벅였다. '인간의 언어로 먼저 논리를 풀어내나가는 단계'를 거쳐야 하는데 바로 코드부터 짰다. thought process를 먼저 정리하고 코드를 짜야함, 계속해서 computational thinking을 연습하면서 익숙해져야함 (언젠가는 익숙해지겠지...) 다음은 실제 문제를 풀면서 고려한 사항. 반복문: whi..

벨로그에 기록한 65개의 파이썬 부트캠프 유데미 강의 TIL 시리즈 https://velog.io/@daylee/series/Udemy-Python-Course 시리즈 | Udemy Python Course - daylee.log Recap day Project: Hangman Flow chart Programming Hangman step 2 > range(len(word)) : if length was 5 , 0,1,2,3,4 range(1, 3) : 1,2 -> not including 2020년 11월 28일 velog.io