• Home
  • About
    • 朱智博在Github上的Blog photo

      朱智博在Github上的Blog

      朱智博,朱智博的博客,zhuio,zhuio.github.io,

    • Learn More
    • Email
    • Github
    • Weibo
  • Posts
    • All Posts
    • All Tags
  • Projects

flask

15 Jan 2017

Reading time ~1 minute

Flask 的使用方法

Flask on youtube

Templates

<!DOCTYPE html>
<html lang="en">

<head>

</head>

<body class="body">
	<header>

	</header>
	 <body>
	   <h3></h3>
	   <br>
		
	 </body>

</html>

init

from flask import Flask,render_template

app = Flask(__name__)

@app.route('/')
def homepage():
   try:
       x += 5
       return "Hi there"
   except Exception, e:
       return str(e)

if __name__ == "__main__":
   app.run()

Flask tutor

做一个漂亮的Chart

make great charts

bootstrap

Bootstrap



flask Share Tweet +1