2020-12-04 python

jsbak·2020년 12월 4일
0

PYTHON

목록 보기
20/24

html window.open

검색어 : html window.open
참고 : https://offbyone.tistory.com/312

var win = window.open("/popup.html", "PopupWin", "width=500,height=600");

setInterval

참고 : https://offbyone.tistory.com/241

<script>
    var timer = setInterval(function(){
        console.log("Hello!!");
    }, 1000)
</script>

예시

// 중지를 위해 ID 보관
var timerId = null;

// 시계 시작
function StartClock() {
    PrintTime();
    timerId = setInterval(PrintTime, 1000);
}

// 시계 중지
function StopClock() {
    if(timerId != null) {
     /* CLEARINTERVAL 해줘서 더이상 주기적으로 실행안되게끔 해준다.*/
        clearInterval(timerId);
    }
}

QR코드

참고 : https://blog.naver.com/chandong83/221767329995
pip install qrcode pillow
pip install qrcode[pil]

import qrcode

# Hello World! 로 QR 코드 생성
img = qrcode.make('Hello World!')

# 생성된 이미지를 helloworld_qrcode.png로 저장
img.save('static/qrcode.png')

회귀 곡선??

profile
끄적끄적 쓰는곳

0개의 댓글