목록분류 전체보기 (155)
사자자리
목차 8.1 GUI 8.2 파일 처리 8.3 파일 처리 응용 8.4 모듈 8.1 GUI GUI - Graphic User Interface easygui 모듈 buttonbox(" ", choices = []) 버튼 박스 choicebox(" ", choices = []) 여러 항목 선택 박스 msgbox(" ") 메시지 출력 박스 enterbox(" ") 문자열을 입력받음 integerbox(" ") 정수를 입력받음 import easygui, random answer = random.randint(1, 10) times = int(easygui.buttonbox("도전 기회 선택", choices = ['3', '4'])) num = 0 while num != answer and times > 0: ..
목차 7.1 함수 7.2 매개변수 7.3 지역 변수와 전역 변수 7.4 라이브러리 함수 활용 7.5 재귀 함수 7.1 함수 def 함수이름(0개 이상의 매개변수 목록): 함수본체 7.2 매개변수 인수(argument) 함수를 호출할 때 전달하는 값 매개변수(parameter) 인수를 전달받는, 함수 내에서 선언된 변수 가변 인수 - *매개변수 - 개수 미정의 여러 인수를 tuple로 받을 수 있다. def average(*num): result = 0 for i in num: result += i print(result/len(num)) average(1,2,3,4,5) 3.0 7.3 지역 변수와 전역 변수 선언 유효 범위 지역 변수 (local) 함수 안 함수 내부 전역 변수 (global) 함수 밖 ..
목차 6.1 리스트 기초 6.2 리스트 연산 6.3 리스트 활용 6.4 tuple과 집합 6.5 dictionary 6.1 리스트 기초 list = [] 리스트 생성 list.append() 리스트에 항목 추가 list.extend() 리스트에 항목 여러 개 추가 list.insert(N, ) 리스트의 N번째 위치에 항목 추가 week = ['sun', 'mon'] week.append('tue') week.extend(['thu', 'fri', 'sat']) week.insert(3, 'wed') print(week) ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'] list.remove() 리스트의 항목 삭제 del list[N] 리스트의 N번째 항목 삭제 li..

Boolean - true, false - 단 2개의 데이터로 이루어져 있는 데이터 타입 비교 연산자 왼쪽 피연산자와 오른쪽 피연산자의 == 값이 같으면 true === 값, 타입이 같으면 true != 값이 다르면 true !== 값, 타입이 다르면 true HTML에서 꺽쇠()는 기본적으로 태그로 해석되기 때문에 다르게 입력해야 한다. 꺽쇠 HTML에서 뜻 > greater than if (boolean) - boolean의 값이 true면 실행되고, false면 실행되지 않는다. Conditional Statements if (true) if (false) if (condition) - 조건문의 boolean이 true면 실행되고 false면 실행되지 않는다. Conditional Statement..

6주차: 노래 페이지 만들기 ALBUM_NAME 01 SONGNAME LANA DEL REY ALBUMS https://renne1017.github.io/lanadelrey/album.html LANA DEL REY ALBUMS renne1017.github.io
#include #include struct student{//구조체 정의 char name[20];//구조체의 멤버들 int kor, eng, math; }s1;//변수명 정의 int main(){ strcpy(s1.name, "Sirius");//점(.)으로 구조체의 멤버에 접근하여 값 할당 s1.kor = 90; s1.eng = 95; s1.math = 100; struct student s2 = {"Regulus", 85, 90, 100};//새 구조체 변수 선언, 초기화 printf("%s의 성적: 국어 %d점, 영어 %d점, 수학 %d점\n", s1.name, s1.kor, s1.eng, s1.math); printf("%s의 성적: 국어 %d점, 영어 %d점, 수학 %d점\n", s2.nam..
해커스쿨 https://www.hackerschool.org/Sub_Html/HS_FTZ/html/ftz_menual.html [level1@ftz level1]$ ls -al total 88 drwxr-xr-x 4 root level1 4096 Jan 16 2009 . drwxr-xr-x 34 root root 4096 Sep 10 2011 .. -rw------- 1 root root 1 Jan 15 2010 .bash_history -rw-r--r-- 1 root root 24 Feb 24 2002 .bash_logout -rw-rw-r-- 1 root root 224 Feb 24 2002 .bash_profile -rw-r--r-x 1 root root 151 Feb 24 2002 .bashrc ..

CSS 기초: style 속성 https://www.youtube.com/watch?v=HQgNj50Xt9g&list=PLuHgQVnccGMBB348PWRN0fREzYcYgFybf&index=9 style 속성 - HTML의 문법 - style 속성의 값으로 CSS가 들어온다. - 특정 태그를 CSS 문법으로 꾸미고 싶을 때 사용한다. JavaScript CSS 기초 (style 태그) https://www.youtube.com/watch?v=H2eMtredsK4&list=PLuHgQVnccGMBB348PWRN0fREzYcYgFybf&index=10 - CSS, JS를 통해서 제어하고 싶은 어떤 내용을 감싸기 위한, 어떠한 기능도 의미도 없는 태그 - 화면 전체를 써서 자동으로 줄바꿈이 된다. - CSS..