Skip to content

Commit 082e5cd

Browse files
committedApr 4, 2020
Resolução do exercicio 07
1 parent 6e9ed7f commit 082e5cd

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
 
+25
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.