윈도우 서버 환경 #!python print("Content-Type: text/html\n") 리눅스 서버 환경 #!/usr/local/bin/python3 print("Content-Type: text/html\n") 컨텐츠 타입 선언 서버 환경과 관계없이 현재 페이지 컨텐츠 타입이 어떤 타입인지를 선언하는 print("Content-Type: text/html\n") 문구는 반드시 들어가야 한다. 주위할것은 Content-Type: text/html 선언 시 반드시 다음 구문은 줄바꿈 구문이 존재해야 한다는 것이다. 그래서 선언 시 마지막에 \n 줄바꿈 기호를 넣어주거나, 공백의 print() 문을 넣어주어야 한다. print("Content-Type: text/html\n") print("Cont..