Hello.py

DH 교육용 위키
이동: 둘러보기, 검색
#!/usr/bin/python
#-*- coding: utf-8 -*-

import cgi
import cgitb

html = """
<html>
<head>
<title>Hello Word - First CGI Program</title>
</head>
<body>
<h2>Hello Word! This is my first py CGI program</h2>
</body>
</html>"""

print "Content-type:text/html\n\n"
print html


Result