2013/07 썸네일형 리스트형 버튼으로 탭 구현 package com.example.hacka; import android.os.Bundle;import android.app.Activity;import android.content.Intent;import android.view.*;import android.widget.*;import kr.pe.theeye.qrcode.R; public class MainActivity extends Activity implements View.OnClickListener{View page1,page2,page3;Button btn1, btn2, btn3, btn4;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedIns.. 더보기 수치 int 정수를 쓰면 10진수 정수로 인식>>> year = 2008>>> month = 12>>> print (year, month)2008 12 정수 앞에 '0o'는 8진수 '0b'는 2진수 '0x'는 16진수로 인식>>> 0o108>>> 0b102>>> 0x1016 10진수를 입력으로 받아서 원하는 진수로 변환>>> oct(38)'0o46'>>> hex(38)'0x26'>>> bin(38)'0b100110' type()함수를 자료형 변환>>> type(1)>>> type(2**31)>>> type(3.14)>>> type(3.14e-2) 복소수 표현법 >>> x = 3 - 4j>>> type(x)>>> x.imag 허수부분-4.0>>> x(3-4j)>>> x.real 실수부분3.0>>> x.conju.. 더보기 이전 1 ··· 5 6 7 8 다음