We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e9ed7f commit 082e5cdCopy full SHA for 082e5cd
exercicio-07/willidert/cgi-bin/index.py
@@ -0,0 +1,25 @@
1
+#!/usr/bin/python
2
+# -*- coding: utf-8 -*-
3
+
4
+from wsgiref.handlers import CGIHandler
5
6
7
+def app(environ, start_response):
8
+ start_response('200 OK', [('Content-Type', 'text/plain')])
9
+ reposta = get_html()
10
+ return reposta
11
12
13
+def get_html():
14
+ arr = [
15
+ 'Amor Proprio',
16
+ 'Amei uma pessoa que se foi',
17
+ 'Chorei por alguém especial demais',
18
+ 'Os dias que se seguiram, foram tristes',
19
+ 'Mas assim teve que ser para que ela pudesse sorrir.'
20
+ ]
21
22
+ return ['<p>' + i + '</p>' for i in arr]
23
24
25
+CGIHandler().run(app)
0 commit comments