IDE用的PyCharm(还是vs强大啊)。
项目结构:
2:页面:
<!doctype html> <html lang="zh"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>用户登录</title><link rel="shortcut icon" href="{ { url_for('static', filename='images/lock.png')}}"/> </head> <body> <div align="center"> <div> <div> <h1>Welcome</h1> <form class="form" method="post" action="" onsubmit="return Login();"> <input type="text" placeholder="Username" name="username" id="username"> <input type="password" placeholder="Password" name="password" id="password"> <button type="submit" i