33

第一个flask应用代码详解-挨踢学霸

 6 years ago
source link: http://blog.51cto.com/12482328/2080144
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
上一篇我们创建了第一个简单的flask应用程序,这一篇我们来看一下,这个最简单的应用程序都做了哪些事第一行代码,导入了flask类fromflaskimportFlask第二步创建了Flask类的实例app=Flask(__name__)这行代码里有一个参数name,这个参数用到告诉flask你的application的名字,官方有一句话:Ifyouareusingasinglemodule,na

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK