출력

    이미지 blob으로 저장하고 출력하기

    # 이미지 파일크기 줄이기http://blog.habonyphp.com/entry/php-base64-%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%84-%EC%9E%91%EC%9D%80-%EC%9D%B4%EB%AF%B8%EC%A7%80%EB%A1%9C-%EB%B3%80%ED%99%98%ED%95%98%EC%97%AC-MySql%EC%97%90-%EC%A0%80%EC%9E%A5%ED%95%98%EA%B8%B0 # show image from mysql with phpTry Like this.For Inserting into DB$db = mysqli_connect("localhost","root","","DbName"); //keep your db name $image = addslashe..

    list에서 짝수 홀수 출력하기

    Reference : http://desk.stinkpot.org:8080/tricks/index.php/2007/10/extract-odd-or-even-elements-from-a-python-list/ 제가 채택한 방법은요, x = range(1, 10)x[::2]x[1::2]

    printf에서 %d %09d %19d의 차이에 대해서

    %d는 int 형을 출력하는 것인데, %와 d사이에 여러 옵션을 넣을 수 있다. 그중에 아래의 것들을 살펴본다. #include int main(int argc, char *argv[]) { int num = 123456; printf("%09d\n",num); printf("%9d\n",num); printf("%19d\n",num); printf("%d\n",num); return 0; } output은000123456 123456 123456123456 이다.