카테고리 없음 김우디 2017. 8. 8. 13:46
public class Main { public static void main(String[] args) { int koreanScore, mathScore, scienceScore, computerScore; double average; koreanScore =86; mathScore =94; scienceScore=87; computerScore=100; // 각 과목 점수 // 이곳에 코드를 작성하세요. average =(double)(koreanScore+mathScore+scienceScore+computerScore)/4; // 평균 점수 // 이곳에 코드를 작성하세요. System.out.println(average); }}
더 읽기
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello, World!"); }} public class HelloWorld - HelloWorld 라는 클래스를 정의한다. public static void main(String[] args) { ...} 메소드 - 클래스 안에 정의된 함수 System.out.println("Hello, World!"); - System이라는 자바에 내장되어 있는 클래스의, out이라는 클래스 변수의, println이라는 메소드를 호출하라는 뜻
카테고리 없음 김우디 2017. 8. 8. 00:13
numbers = []i = 0while i < 10: i = i + 1 numbers.append(i) print(numbers) i = 0while i < len(numbers): if numbers[i] % 2 != 0: del numbers[i] else: i = i + 1 print(numbers) numbers.insert(0, 20) print(numbers) numbers = sorted(numbers)print(numbers) primes = [2, 3, 5, 7, 11, 13, 17, 19, 23] print(7 in primes)print(12 in primes) TrueFalse 거꾸로 값이 없는지 확인하려면 in 앞에 not을 붙이기 primes = [2, 3, 5, 7, 11, ..
카테고리 없음 김우디 2017. 8. 7. 21:35
I watched Stranger things.It was so interesting. So I watched all episodes.I am glad that Season 2 will begin soon.
이전 글 모음/기타 김우디 2017. 8. 5. 22:46
[미드추천] 오자크 :: 마약상으로부터 가족을 지키려는 가장의 이야기. 오랜만에 미드 추천하러 왔어요~ 제가 오늘 추천해드릴 미국드라마는 넷플릭스에서 방영중인 오자크입니다. 시카고에서 재무 컨설턴트로 일하는 가장 마티. 바른 생활만 하는 마티로 보이지만 그에게는 은밀한 비밀이 있었습니다. 카르텔의 돈 세탁을 맡고 있었다는 것이죠. 마약 조직의 돈세탁을 해오던 마티는 어느날 조직에게 의심을 받게 되고 마약 조직으로부터 가족의 목숨을 지키기 위해 오자크로 이사하게 됩니다. 마약 조직으로부터 몸을 피하기 위해 오자크로 이사한 것이 아닌, 오자크에서 5억달러를 돈 세탁하라는 미션을 하기 위해서 오자크로 이사하게 된 마티는 가족을 지킬 수 있을까요? 직접 확인해보세요~ㅎㅎ 회차 정보 오자크시즌 1공개일: 2017..
카테고리 없음 김우디 2017. 8. 5. 22:17
Well, To be honest, I suppose, at the moment, It would be just great if it could help me get a girlfriend. Massive. Yeah. The Mothership. For me, It was always gonna be about love.
카테고리 없음 김우디 2017. 8. 2. 00:41
I am afraid that I can't watch movie today
카테고리 없음 김우디 2017. 8. 2. 00:01
greetings = ["안녕", "니하오", "곤니찌와", "올라", "싸와디캅", "헬로", "봉주르"]i = 0 while i < 7: print(greetings[i]) i = i + 1 ---------------------------------------------------------- len 함수 - 리스트 안의 원소 개수를 세준다. ex) alphabet = ["a","b","c","d"] print("리스트의 개수는 : %d" % len(alphabet)) alphabet.append(5) - 마지막에 5 추가 alphabet.insert(0, 5)- 인덱스 0 자리에 5 추가 del alphabet[3]- 인덱스 3자리 제거 리스트 연결하기.alphabet1 + alphabet2