-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.py
35 lines (32 loc) · 863 Bytes
/
server.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def welcome():
return '''
<html>
<head>
<title>Welcome Page</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 50px;
}
h1 {
color: #333;
}
p {
font-size: 20px;
color: #666;
}
</style>
</head>
<body>
<h1>Welcome to My Super Page</h1>
<p>This is a Python 3.9 powered web application using Flask!</p>
</body>
</html>
'''
if __name__ == '__main__':
app.run(debug=True)