https://wikidocs.net/book/4223
어제했던 내용
현재 컴퓨터의 구성
f"안녕 {name} 님" 으로 포멧팅 활용
message = "안녕하세요 {0} 회원님, 환영합니다."
print(message.format(input("이름을 입력하세요.")))
print("%s 님 %s"%(data,name))
if - elif - else
boolean - True/False
e **2 for e in a_list if type(e)==types.IntType
키-값 쌍, 키로 신속하게 값을 찾아낸다. 키는 중복을 허용하지 않는다.
선언
d={'daru':39,'goru':40}
이때 반복문으로 받는 것은 키 값이다.
for key in d:
value = d[key]
import random
print(random.randint(1,10))
서버는 넷리파이에
https://www.netlify.com/ 넷리파이
html 공식문서
https://developer.mozilla.org/ko/docs/Web/HTML/HTML5
콘텐츠 카테고리
https://developer.mozilla.org/ko/docs/Web/Guide/HTML/Content_categories
w3school
https://www.w3schools.com/
<!DOCTYPE html>
<html>
<head></head>
<body>
<u></u>
<strong></strong>
</body>
</html>
a 태그 속성들
href = "링크"
target = "문서를 어떻게 열지"
title : 문서에 마우스를 올리면 정보가 뜬다.
div 태그 속성들
id : css 적용 아이디
style 스타일
width 가로 크기
height 세로 크기
border 테두리 굵기
background-color 배경 색상
float 정렬
margin 여백
pre 태그
git add
git commit -am "version1"
git log
git status
git log --all
git init : 이제부터 파일을 관리하겠다.
tree .git
git add 파일명
git commit -m "feat"
git branch --list, create, delete
장고를 베이스로 돌아가는 프로그램들의 모음
pip
pip3 install django
그냥 설치하면 다른거랑 겹쳐서 깨질 수 있기 때문에 가상환경을 따로 만들어야 한다.
python3 -m venv .venv
.venv/Scripts/activate
python --version
pip install django
python -m django --version
django-admin : 장고의 명령어는 이걸 이용해서 사용됨
django-admin startproject 프로젝트 명
나는 beb 라고 할꺼임
tree beb
cd beb
python manage.py runserver
하면 서버 주소와 포트번호가 나오는데 그걸 그대로 주소창에 치자
하면 서버가 열림