Codeup 1172 - 세 수 정렬하기 http://codeup.kr/problem.php?id=1172 Codeup 1172 - 세 수 정렬하기 xxxxxxxxxxnumbers = list(map(int, input().split()))numbers.sort()print(str(numbers[0]) + ' ' + str(numbers[1]) + ' ' + str(numbers[2])) 장고 걸즈 튜토리얼 따라하기 6 - 장고 urls URL이란?URL은 웹 주소이다. 인터넷의 모든 페이지는 고유한 URL을 가지고 있어야 하고, 어플리케이션은 사용자가 URL을 입력하면 알고 있어야 한다. 장고는 URL과 일치하는 뷰를 찾기 위한 패턴들의 집합인 URLconf (URL configuration)을 사용한다. 장고 URL 작동 방식에디터에서 mysite/urls.py 파일을 열면 아래 내용이 보인다."""mysite URL Configuration[...]"""from django.conf.urls import urlfrom django.contrib import adminurlpatterns = [ url(r'^admin/', admin.site.urls),]여기서 아래 부분을 보면 url(r'^admin/', admin.site.u.. Codeup 1171 - 당신의 학번은 2 http://codeup.kr/problem.php?id=1171 Codeup 1171 - 당신의 학번은? 2 xxxxxxxxxxgrade, group, number = input().split()group = int(group)number = int(number)if(group Codeup 1170 - 당신의 학번은 1 http://codeup.kr/problem.php?id=1170 Codeup 1170 - 당신의 학번은? 1 xxxxxxxxxxgrade, group, number = input().split()number = int(number)if(number Codeup 1169 - 나이 계산 2 http://codeup.kr/problem.php?id=1169 Codeup 1169 - 나이 계산 2 xxxxxxxxxxage = input()age = int(age)birth_year = 2012 - age + 1if(birth_year 장고 걸즈 튜토리얼 따라하기 5 - 배포 Git 설치https://git-scm.com/ Git 저장소 만들기콘솔 창에서 아래 명령을 실행한다.$ git initInitialized empty Git repository in ~/djangogirls/.git/$ git config --global user.name "Your Name"$ git config --global user.email you@example.com위와 같은 저장소 초기화는 프로젝트를 시작할 때 한번만 하면 된다.git은 디렉토리에 모든 파일과 폴더들의 변경점을 추적하는데, 특정 파일들을 무시(ignore)하기 위해서 .gitignore이라는 파일을 만들고 아래와 같이 작성한다.xxxxxxxxxx*.pyc*~__pycache__myvenvdb.sqlite3/static.DS.. Codeup 1168 - 나이 계산 1 http://codeup.kr/problem.php?id=1168 Codeup 1168 - 나이 계산 1 xxxxxxxxxxbirth, gender = input().split()gender = int(gender)if(gender == 1): birth_year = int('19' + birth[0:2]) print(2012 - birth_year + 1)elif(gender == 2): birth_year = int('19' + birth[0:2]) print(2012 - birth_year + 1)elif(gender == 3): birth_year = int('20' + birth[0:2]) print(2012 - birth_year + 1)else: birth_year = int('20' +.. Codeup 1167 - 두 번째로 작은 수 http://codeup.kr/problem.php?id=1167 Codeup 1167 - 두 번째로 작은 수 xxxxxxxxxxnumbers = list(map(int, input().split()))numbers.sort()print(numbers[1]) 이전 1 ··· 28 29 30 31 32 33 34 ··· 36 다음