"Hello.py"의 두 판 사이의 차이

DH 교육용 위키
이동: 둘러보기, 검색
(새 문서: <pre> #!/usr/bin/env python import cgi html = """ <html> <head> <title>Hello Word - First CGI Program</title> </head> <body> <h2>Hello Word! This is my first py CGI program</h2> </b...)
 
17번째 줄: 17번째 줄:
 
print html
 
print html
 
</pre>
 
</pre>
 +
 +
 +
==Result==
 +
 +
<iframe width=96% height=700px frameborder=0 src=http://dh.aks.ac.kr/~tutor/cgi-bin/Hello.py></iframe>

2020년 5월 21일 (목) 17:17 판

#!/usr/bin/env python

import cgi

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

<iframe width=96% height=700px frameborder=0 src=http://dh.aks.ac.kr/~tutor/cgi-bin/Hello.py></iframe>